[−][src]Struct pango::Attribute
Implementations
impl Attribute
[src]
impl Attribute
[src]
pub fn new_background_alpha(alpha: u16) -> Option<Attribute>
[src]
pub fn new_background(red: u16, green: u16, blue: u16) -> Option<Attribute>
[src]
pub fn new_fallback(enable_fallback: bool) -> Option<Attribute>
[src]
pub fn new_family(family: &str) -> Option<Attribute>
[src]
pub fn new_foreground_alpha(alpha: u16) -> Option<Attribute>
[src]
pub fn new_foreground(red: u16, green: u16, blue: u16) -> Option<Attribute>
[src]
pub fn new_gravity_hint(hint: GravityHint) -> Option<Attribute>
[src]
pub fn new_gravity(gravity: Gravity) -> Option<Attribute>
[src]
pub fn new_letter_spacing(letter_spacing: i32) -> Option<Attribute>
[src]
pub fn new_rise(rise: i32) -> Option<Attribute>
[src]
pub fn new_scale(scale_factor: f64) -> Option<Attribute>
[src]
pub fn new_size(size: i32) -> Option<Attribute>
[src]
pub fn new_size_absolute(size: i32) -> Option<Attribute>
[src]
pub fn new_stretch(stretch: Stretch) -> Option<Attribute>
[src]
pub fn new_strikethrough_color(
red: u16,
green: u16,
blue: u16
) -> Option<Attribute>
[src]
red: u16,
green: u16,
blue: u16
) -> Option<Attribute>
pub fn new_strikethrough(strikethrough: bool) -> Option<Attribute>
[src]
pub fn new_style(style: Style) -> Option<Attribute>
[src]
pub fn new_underline_color(red: u16, green: u16, blue: u16) -> Option<Attribute>
[src]
pub fn new_underline(underline: Underline) -> Option<Attribute>
[src]
pub fn new_variant(variant: Variant) -> Option<Attribute>
[src]
pub fn new_weight(weight: Weight) -> Option<Attribute>
[src]
pub fn get_attr_class(&self) -> AttrClass
[src]
pub fn get_start_index(&self) -> u32
[src]
pub fn get_end_index(&self) -> u32
[src]
pub fn set_start_index(&mut self, index: u32)
[src]
pub fn set_end_index(&mut self, index: u32)
[src]
Trait Implementations
impl Clone for Attribute
[src]
impl Debug for Attribute
[src]
impl Eq for Attribute
[src]
impl Hash for Attribute
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Attribute
[src]
fn cmp(&self, other: &Attribute) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Attribute> for Attribute
[src]
impl PartialOrd<Attribute> for Attribute
[src]
fn partial_cmp(&self, other: &Attribute) -> Option<Ordering>
[src]
fn lt(&self, other: &Attribute) -> bool
[src]
fn le(&self, other: &Attribute) -> bool
[src]
fn gt(&self, other: &Attribute) -> bool
[src]
fn ge(&self, other: &Attribute) -> bool
[src]
impl StaticType for Attribute
[src]
fn static_type() -> Type
[src]
Auto Trait Implementations
impl RefUnwindSafe for Attribute
impl !Send for Attribute
impl !Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToValue for T where
T: SetValue + ?Sized,
[src]
T: SetValue + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,