Struct gtk::TextAttributes
source · [−]#[repr(transparent)]pub struct TextAttributes { /* private fields */ }
Expand description
Using TextAttributes
directly should rarely be necessary.
It’s primarily useful with TextIter::is_attributes()
.
As with most GTK+ structs, the fields in this struct should only
be read, never modified directly.
Implementations
sourceimpl TextAttributes
impl TextAttributes
pub fn as_ptr(&self) -> *mut GtkTextAttributes
sourceimpl TextAttributes
impl TextAttributes
sourcepub fn new() -> TextAttributes
pub fn new() -> TextAttributes
Creates a TextAttributes
, which describes
a set of properties on some text.
Returns
a new TextAttributes
,
free with gtk_text_attributes_unref()
.
pub fn copy(&self) -> Option<TextAttributes>
sourcepub fn copy_values(&self, dest: &TextAttributes)
pub fn copy_values(&self, dest: &TextAttributes)
Copies the values from self
to dest
so that dest
has
the same values as self
. Frees existing values in dest
.
dest
another TextAttributes
Trait Implementations
sourceimpl Clone for TextAttributes
impl Clone for TextAttributes
sourceimpl Debug for TextAttributes
impl Debug for TextAttributes
sourceimpl Default for TextAttributes
impl Default for TextAttributes
sourceimpl Hash for TextAttributes
impl Hash for TextAttributes
sourceimpl Ord for TextAttributes
impl Ord for TextAttributes
sourcefn cmp(&self, other: &TextAttributes) -> Ordering
fn cmp(&self, other: &TextAttributes) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<TextAttributes> for TextAttributes
impl PartialEq<TextAttributes> for TextAttributes
sourcefn eq(&self, other: &TextAttributes) -> bool
fn eq(&self, other: &TextAttributes) -> bool
sourceimpl PartialOrd<TextAttributes> for TextAttributes
impl PartialOrd<TextAttributes> for TextAttributes
sourcefn partial_cmp(&self, other: &TextAttributes) -> Option<Ordering>
fn partial_cmp(&self, other: &TextAttributes) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl StaticType for TextAttributes
impl StaticType for TextAttributes
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for TextAttributes
impl StructuralEq for TextAttributes
impl StructuralPartialEq for TextAttributes
Auto Trait Implementations
impl RefUnwindSafe for TextAttributes
impl !Send for TextAttributes
impl !Sync for TextAttributes
impl Unpin for TextAttributes
impl UnwindSafe for TextAttributes
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
sourcefn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.