[−]Struct pango::Attribute
Methods
impl Attribute
[src]
impl 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(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_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 Eq for Attribute
[src]
impl Ord for Attribute
[src]
fn cmp(&self, other: &Attribute) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
🔬 This is a nightly-only experimental API. (
clamp
)Restrict a value to a certain interval. Read more
impl PartialEq<Attribute> for Attribute
[src]
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Clone for Attribute
fn clone(&self) -> Attribute
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
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 Debug for Attribute
[src]
impl Hash for Attribute
[src]
Auto Trait Implementations
Blanket Implementations
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,