#[repr(transparent)]pub struct AttrInt { /* private fields */ }
Implementations
sourceimpl AttrInt
impl AttrInt
pub fn new_line_height_absolute(height: i32) -> Self
Available on crate feature
v1_50
only.pub fn new_font_scale(scale: FontScale) -> Self
Available on crate feature
v1_50
only.pub fn new_allow_breaks(allow_breaks: bool) -> Self
Available on crate feature
v1_44
only.pub fn new_background_alpha(alpha: u16) -> Self
pub fn new_fallback(enable_fallback: bool) -> Self
pub fn new_foreground_alpha(alpha: u16) -> Self
pub fn new_gravity_hint(hint: GravityHint) -> Self
pub fn new_weight(weight: Weight) -> Self
pub fn new_gravity(gravity: Gravity) -> Self
pub fn new_insert_hyphens(insert_hyphens: bool) -> Self
Available on crate feature
v1_44
only.pub fn new_letter_spacing(letter_spacing: i32) -> Self
pub fn new_overline(overline: Overline) -> Self
Available on crate feature
v1_46
only.pub fn new_rise(rise: i32) -> Self
pub fn new_show(flags: ShowFlags) -> Self
Available on crate feature
v1_44
only.pub fn new_stretch(stretch: Stretch) -> Self
pub fn new_strikethrough(strikethrough: bool) -> Self
pub fn new_style(style: Style) -> Self
pub fn new_underline(underline: Underline) -> Self
pub fn new_variant(variant: Variant) -> Self
pub fn value(&self) -> i32
Methods from Deref<Target = Attribute>
pub fn attr_class(&self) -> AttrClass
pub fn type_(&self) -> AttrType
pub fn start_index(&self) -> u32
pub fn end_index(&self) -> u32
pub fn set_start_index(&mut self, index: u32)
pub fn set_end_index(&mut self, index: u32)
pub fn downcast_ref<T: IsAttribute>(&self) -> Option<&T>
Trait Implementations
sourceimpl IsAttribute for AttrInt
impl IsAttribute for AttrInt
const ATTR_TYPES: &'static [AttrType] = _
fn upcast(self) -> Attribute
fn upcast_ref(&self) -> &Attribute
sourceimpl PartialEq<AttrInt> for AttrInt
impl PartialEq<AttrInt> for AttrInt
sourceimpl StaticType for AttrInt
impl StaticType for AttrInt
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of Self
.
impl Eq for AttrInt
impl Send for AttrInt
impl Sync for AttrInt
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> StaticTypeExt for T where
T: StaticType,
impl<T> StaticTypeExt for T where
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
sourceimpl<T> ToClosureReturnValue for T where
T: ToValue,
impl<T> ToClosureReturnValue for T where
T: ToValue,
fn to_closure_return_value(&self) -> Option<Value>
sourceimpl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for T where
T: Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a SendValue
clone of self
.