pub enum VariableScope {
Show 23 variants
AllScopes,
TextContent,
CornerRadius,
WidthHeight,
Gap,
AllFills,
FrameFill,
ShapeFill,
TextFill,
StrokeColor,
StrokeFloat,
EffectFloat,
EffectColor,
Opacity,
FontFamily,
FontStyle,
FontWeight,
FontSize,
LineHeight,
LetterSpacing,
ParagraphSpacing,
ParagraphIndent,
FontVariations,
}
Expand description
VariableScope : Scopes allow a variable to be shown or hidden in the variable picker for various fields. This declutters the Figma UI if you have a large number of variables. Variable scopes are currently supported on FLOAT
, STRING
, and COLOR
variables. ALL_SCOPES
is a special scope that means that the variable will be shown in the variable picker for all variable fields. If ALL_SCOPES
is set, no additional scopes can be set. ALL_FILLS
is a special scope that means that the variable will be shown in the variable picker for all fill fields. If ALL_FILLS
is set, no additional fill scopes can be set. Valid scopes for FLOAT
variables: - ALL_SCOPES
- TEXT_CONTENT
- WIDTH_HEIGHT
- GAP
- STROKE_FLOAT
- EFFECT_FLOAT
- OPACITY
- FONT_WEIGHT
- FONT_SIZE
- LINE_HEIGHT
- LETTER_SPACING
- PARAGRAPH_SPACING
- PARAGRAPH_INDENT
Valid scopes for STRING
variables: - ALL_SCOPES
- TEXT_CONTENT
- FONT_FAMILY
- FONT_STYLE
Valid scopes for COLOR
variables: - ALL_SCOPES
- ALL_FILLS
- FRAME_FILL
- SHAPE_FILL
- TEXT_FILL
- STROKE_COLOR
- EFFECT_COLOR
Scopes allow a variable to be shown or hidden in the variable picker for various fields. This declutters the Figma UI if you have a large number of variables. Variable scopes are currently supported on FLOAT
, STRING
, and COLOR
variables. ALL_SCOPES
is a special scope that means that the variable will be shown in the variable picker for all variable fields. If ALL_SCOPES
is set, no additional scopes can be set. ALL_FILLS
is a special scope that means that the variable will be shown in the variable picker for all fill fields. If ALL_FILLS
is set, no additional fill scopes can be set. Valid scopes for FLOAT
variables: - ALL_SCOPES
- TEXT_CONTENT
- WIDTH_HEIGHT
- GAP
- STROKE_FLOAT
- EFFECT_FLOAT
- OPACITY
- FONT_WEIGHT
- FONT_SIZE
- LINE_HEIGHT
- LETTER_SPACING
- PARAGRAPH_SPACING
- PARAGRAPH_INDENT
Valid scopes for STRING
variables: - ALL_SCOPES
- TEXT_CONTENT
- FONT_FAMILY
- FONT_STYLE
Valid scopes for COLOR
variables: - ALL_SCOPES
- ALL_FILLS
- FRAME_FILL
- SHAPE_FILL
- TEXT_FILL
- STROKE_COLOR
- EFFECT_COLOR
Variants§
AllScopes
TextContent
CornerRadius
WidthHeight
Gap
AllFills
FrameFill
ShapeFill
TextFill
StrokeColor
StrokeFloat
EffectFloat
EffectColor
Opacity
FontFamily
FontStyle
FontWeight
FontSize
LineHeight
LetterSpacing
ParagraphSpacing
ParagraphIndent
FontVariations
Trait Implementations§
Source§impl Clone for VariableScope
impl Clone for VariableScope
Source§fn clone(&self) -> VariableScope
fn clone(&self) -> VariableScope
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for VariableScope
impl Debug for VariableScope
Source§impl Default for VariableScope
impl Default for VariableScope
Source§fn default() -> VariableScope
fn default() -> VariableScope
Source§impl<'de> Deserialize<'de> for VariableScope
impl<'de> Deserialize<'de> for VariableScope
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for VariableScope
impl Display for VariableScope
Source§impl Hash for VariableScope
impl Hash for VariableScope
Source§impl Ord for VariableScope
impl Ord for VariableScope
Source§fn cmp(&self, other: &VariableScope) -> Ordering
fn cmp(&self, other: &VariableScope) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for VariableScope
impl PartialEq for VariableScope
Source§impl PartialOrd for VariableScope
impl PartialOrd for VariableScope
Source§impl Serialize for VariableScope
impl Serialize for VariableScope
impl Copy for VariableScope
impl Eq for VariableScope
impl StructuralPartialEq for VariableScope
Auto Trait Implementations§
impl Freeze for VariableScope
impl RefUnwindSafe for VariableScope
impl Send for VariableScope
impl Sync for VariableScope
impl Unpin for VariableScope
impl UnwindSafe for VariableScope
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.