-
Notifications
You must be signed in to change notification settings - Fork 24.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HierarchicTextAttributeProvider
: Delegate most properties to the no…
…de itself
- Loading branch information
Showing
4 changed files
with
61 additions
and
86 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
...ndroid/src/main/java/com/facebook/react/internal/views/text/BasicTextAttributeProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.facebook.react.internal.views.text | ||
|
||
import com.facebook.react.uimanager.ReactAccessibilityDelegate | ||
|
||
/** | ||
* Interface for an entity providing basic text attributes of a text node/fragment. "Basic" means | ||
* that they can be provided trivially, without processing the parent element. | ||
*/ | ||
interface BasicTextAttributeProvider { | ||
val role: ReactAccessibilityDelegate.Role? | ||
|
||
val accessibilityRole: ReactAccessibilityDelegate.AccessibilityRole? | ||
|
||
val isBackgroundColorSet: Boolean | ||
|
||
val backgroundColor: Int | ||
|
||
val isColorSet: Boolean | ||
|
||
val color: Int | ||
|
||
val fontStyle: Int | ||
|
||
val fontWeight: Int | ||
|
||
val fontFamily: String? | ||
|
||
val fontFeatureSettings: String? | ||
|
||
val isUnderlineTextDecorationSet: Boolean | ||
|
||
val isLineThroughTextDecorationSet: Boolean | ||
|
||
val textShadowOffsetDx: Float | ||
|
||
val textShadowOffsetDy: Float | ||
|
||
val textShadowRadius: Float | ||
|
||
val textShadowColor: Int | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters