[]Struct pango::Attribute

pub struct Attribute(_);

Methods

impl Attribute[src]

pub fn init(&mut self, klass: &AttrClass)[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]

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 max(self, other: Self) -> Self1.21.0[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self1.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]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl Clone for 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]

impl Debug for Attribute[src]

impl Hash for Attribute[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl !Send for Attribute

impl !Sync for Attribute

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]