pub struct CellRendererText(/* private fields */);
Implementations§
Source§impl CellRendererText
impl CellRendererText
pub fn new() -> CellRendererText
Trait Implementations§
Source§impl Clone for CellRendererText
impl Clone for CellRendererText
Source§fn clone(&self) -> CellRendererText
fn clone(&self) -> CellRendererText
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CellRendererText
impl Debug for CellRendererText
Source§impl Default for CellRendererText
impl Default for CellRendererText
Source§impl Display for CellRendererText
impl Display for CellRendererText
Source§impl Hash for CellRendererText
impl Hash for CellRendererText
Source§impl Ord for CellRendererText
impl Ord for CellRendererText
Source§fn cmp(&self, other: &CellRendererText) -> Ordering
fn cmp(&self, other: &CellRendererText) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: ObjectType> PartialEq<T> for CellRendererText
impl<T: ObjectType> PartialEq<T> for CellRendererText
Source§impl<T: ObjectType> PartialOrd<T> for CellRendererText
impl<T: ObjectType> PartialOrd<T> for CellRendererText
Source§impl StaticType for CellRendererText
impl StaticType for CellRendererText
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Eq for CellRendererText
impl IsA<CellRenderer> for CellRendererText
impl IsA<CellRendererText> for CellRendererAccel
impl IsA<CellRendererText> for CellRendererCombo
impl IsA<CellRendererText> for CellRendererSpin
Auto Trait Implementations§
impl Freeze for CellRendererText
impl RefUnwindSafe for CellRendererText
impl !Send for CellRendererText
impl !Sync for CellRendererText
impl Unpin for CellRendererText
impl UnwindSafe for CellRendererText
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Cast for Twhere
T: ObjectType,
impl<T> Cast for Twhere
T: ObjectType,
Source§fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast<T>(self) -> Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a superclass or interface
T
. Read moreSource§fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
fn upcast_ref<T>(&self) -> &Twhere
T: ObjectType,
Self: IsA<T>,
Upcasts an object to a reference of its superclass or interface
T
. Read moreSource§fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast<T>(self) -> Result<T, Self>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a subclass or interface implementor
T
. Read moreSource§fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
fn downcast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Self: CanDowncast<T>,
Tries to downcast to a reference of its subclass or interface implementor
T
. Read moreSource§fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
fn dynamic_cast<T>(self) -> Result<T, Self>where
T: ObjectType,
Tries to cast to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
fn dynamic_cast_ref<T>(&self) -> Option<&T>where
T: ObjectType,
Tries to cast to reference to an object of type
T
. This handles upcasting, downcasting
and casting between interface and interface implementors. All checks are performed at
runtime, while downcast
and upcast
will do many checks at compile-time already. Read moreSource§unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
unsafe fn unsafe_cast<T>(self) -> Twhere
T: ObjectType,
Casts to
T
unconditionally. Read moreSource§unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
unsafe fn unsafe_cast_ref<T>(&self) -> &Twhere
T: ObjectType,
Casts to
&T
unconditionally. Read moreSource§impl<O> CellRendererExt for Owhere
O: IsA<CellRenderer>,
impl<O> CellRendererExt for Owhere
O: IsA<CellRenderer>,
fn activate<P>( &self, event: &Event, widget: &P, path: &str, background_area: &Rectangle, cell_area: &Rectangle, flags: CellRendererState, ) -> bool
fn get_aligned_area<P>( &self, widget: &P, flags: CellRendererState, cell_area: &Rectangle, ) -> Rectangle
fn get_alignment(&self) -> (f32, f32)
fn get_fixed_size(&self) -> (i32, i32)
fn get_padding(&self) -> (i32, i32)
fn get_preferred_height<P>(&self, widget: &P) -> (i32, i32)
fn get_preferred_height_for_width<P>( &self, widget: &P, width: i32, ) -> (i32, i32)
fn get_preferred_size<P>(&self, widget: &P) -> (Requisition, Requisition)
fn get_preferred_width<P>(&self, widget: &P) -> (i32, i32)
fn get_preferred_width_for_height<P>( &self, widget: &P, height: i32, ) -> (i32, i32)
fn get_request_mode(&self) -> SizeRequestMode
fn get_sensitive(&self) -> bool
fn get_state<P>( &self, widget: Option<&P>, cell_state: CellRendererState, ) -> StateFlags
fn get_visible(&self) -> bool
fn is_activatable(&self) -> bool
fn render<P>( &self, cr: &Context, widget: &P, background_area: &Rectangle, cell_area: &Rectangle, flags: CellRendererState, )
fn set_alignment(&self, xalign: f32, yalign: f32)
fn set_fixed_size(&self, width: i32, height: i32)
fn set_padding(&self, xpad: i32, ypad: i32)
fn set_sensitive(&self, sensitive: bool)
fn set_visible(&self, visible: bool)
fn start_editing<P>( &self, event: Option<&Event>, widget: &P, path: &str, background_area: &Rectangle, cell_area: &Rectangle, flags: CellRendererState, ) -> Option<CellEditable>
fn stop_editing(&self, canceled: bool)
fn set_property_cell_background(&self, cell_background: Option<&str>)
fn get_property_cell_background_rgba(&self) -> Option<RGBA>
fn set_property_cell_background_rgba(&self, cell_background_rgba: Option<&RGBA>)
fn get_property_cell_background_set(&self) -> bool
fn set_property_cell_background_set(&self, cell_background_set: bool)
fn get_property_editing(&self) -> bool
fn get_property_height(&self) -> i32
fn set_property_height(&self, height: i32)
fn get_property_is_expanded(&self) -> bool
fn set_property_is_expanded(&self, is_expanded: bool)
fn get_property_is_expander(&self) -> bool
fn set_property_is_expander(&self, is_expander: bool)
fn get_property_mode(&self) -> CellRendererMode
fn set_property_mode(&self, mode: CellRendererMode)
fn get_property_width(&self) -> i32
fn set_property_width(&self, width: i32)
fn get_property_xalign(&self) -> f32
fn set_property_xalign(&self, xalign: f32)
fn get_property_xpad(&self) -> u32
fn set_property_xpad(&self, xpad: u32)
fn get_property_yalign(&self) -> f32
fn set_property_yalign(&self, yalign: f32)
fn get_property_ypad(&self) -> u32
fn set_property_ypad(&self, ypad: u32)
fn connect_editing_canceled<F>(&self, f: F) -> SignalHandlerId
fn connect_editing_started<F>(&self, f: F) -> SignalHandlerId
fn connect_property_cell_background_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_cell_background_rgba_notify<F>( &self, f: F, ) -> SignalHandlerId
fn connect_property_cell_background_set_notify<F>( &self, f: F, ) -> SignalHandlerId
fn connect_property_editing_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_height_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_is_expanded_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_is_expander_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_mode_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_sensitive_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_visible_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_width_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_xalign_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_xpad_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_yalign_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_ypad_notify<F>(&self, f: F) -> SignalHandlerId
Source§impl<O> CellRendererTextExt for Owhere
O: IsA<CellRendererText>,
impl<O> CellRendererTextExt for Owhere
O: IsA<CellRendererText>,
fn set_fixed_height_from_font(&self, number_of_rows: i32)
fn get_property_align_set(&self) -> bool
fn set_property_align_set(&self, align_set: bool)
fn get_property_alignment(&self) -> Alignment
fn set_property_alignment(&self, alignment: Alignment)
fn set_property_background(&self, background: Option<&str>)
fn get_property_background_rgba(&self) -> Option<RGBA>
fn set_property_background_rgba(&self, background_rgba: Option<&RGBA>)
fn get_property_background_set(&self) -> bool
fn set_property_background_set(&self, background_set: bool)
fn get_property_editable(&self) -> bool
fn set_property_editable(&self, editable: bool)
fn get_property_editable_set(&self) -> bool
fn set_property_editable_set(&self, editable_set: bool)
fn get_property_ellipsize(&self) -> EllipsizeMode
fn set_property_ellipsize(&self, ellipsize: EllipsizeMode)
fn get_property_ellipsize_set(&self) -> bool
fn set_property_ellipsize_set(&self, ellipsize_set: bool)
fn get_property_family(&self) -> Option<GString>
fn set_property_family(&self, family: Option<&str>)
fn get_property_family_set(&self) -> bool
fn set_property_family_set(&self, family_set: bool)
fn get_property_font(&self) -> Option<GString>
fn set_property_font(&self, font: Option<&str>)
fn set_property_foreground(&self, foreground: Option<&str>)
fn get_property_foreground_rgba(&self) -> Option<RGBA>
fn set_property_foreground_rgba(&self, foreground_rgba: Option<&RGBA>)
fn get_property_foreground_set(&self) -> bool
fn set_property_foreground_set(&self, foreground_set: bool)
fn get_property_language(&self) -> Option<GString>
fn set_property_language(&self, language: Option<&str>)
fn get_property_language_set(&self) -> bool
fn set_property_language_set(&self, language_set: bool)
fn set_property_markup(&self, markup: Option<&str>)
fn get_property_max_width_chars(&self) -> i32
fn set_property_max_width_chars(&self, max_width_chars: i32)
fn get_property_placeholder_text(&self) -> Option<GString>
fn set_property_placeholder_text(&self, placeholder_text: Option<&str>)
fn get_property_rise(&self) -> i32
fn set_property_rise(&self, rise: i32)
fn get_property_rise_set(&self) -> bool
fn set_property_rise_set(&self, rise_set: bool)
fn get_property_scale(&self) -> f64
fn set_property_scale(&self, scale: f64)
fn get_property_scale_set(&self) -> bool
fn set_property_scale_set(&self, scale_set: bool)
fn get_property_single_paragraph_mode(&self) -> bool
fn set_property_single_paragraph_mode(&self, single_paragraph_mode: bool)
fn get_property_size(&self) -> i32
fn set_property_size(&self, size: i32)
fn get_property_size_points(&self) -> f64
fn set_property_size_points(&self, size_points: f64)
fn get_property_size_set(&self) -> bool
fn set_property_size_set(&self, size_set: bool)
fn get_property_stretch(&self) -> Stretch
fn set_property_stretch(&self, stretch: Stretch)
fn get_property_stretch_set(&self) -> bool
fn set_property_stretch_set(&self, stretch_set: bool)
fn get_property_strikethrough(&self) -> bool
fn set_property_strikethrough(&self, strikethrough: bool)
fn get_property_strikethrough_set(&self) -> bool
fn set_property_strikethrough_set(&self, strikethrough_set: bool)
fn get_property_style(&self) -> Style
fn set_property_style(&self, style: Style)
fn get_property_style_set(&self) -> bool
fn set_property_style_set(&self, style_set: bool)
fn get_property_text(&self) -> Option<GString>
fn set_property_text(&self, text: Option<&str>)
fn get_property_underline(&self) -> Underline
fn set_property_underline(&self, underline: Underline)
fn get_property_underline_set(&self) -> bool
fn set_property_underline_set(&self, underline_set: bool)
fn get_property_variant(&self) -> Variant
fn set_property_variant(&self, variant: Variant)
fn get_property_variant_set(&self) -> bool
fn set_property_variant_set(&self, variant_set: bool)
fn get_property_weight(&self) -> i32
fn set_property_weight(&self, weight: i32)
fn get_property_weight_set(&self) -> bool
fn set_property_weight_set(&self, weight_set: bool)
fn get_property_width_chars(&self) -> i32
fn set_property_width_chars(&self, width_chars: i32)
fn get_property_wrap_mode(&self) -> WrapMode
fn set_property_wrap_mode(&self, wrap_mode: WrapMode)
fn get_property_wrap_width(&self) -> i32
fn set_property_wrap_width(&self, wrap_width: i32)
fn connect_edited<F>(&self, f: F) -> SignalHandlerId
fn connect_property_align_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_alignment_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_background_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_background_rgba_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_background_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_editable_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_editable_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_ellipsize_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_ellipsize_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_family_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_family_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_font_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_foreground_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_foreground_rgba_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_foreground_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_language_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_language_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_markup_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_max_width_chars_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_placeholder_text_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_rise_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_rise_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_scale_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_scale_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_single_paragraph_mode_notify<F>( &self, f: F, ) -> SignalHandlerId
fn connect_property_size_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_size_points_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_size_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_stretch_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_stretch_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_strikethrough_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_strikethrough_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_style_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_style_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_text_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_underline_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_underline_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_variant_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_variant_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_weight_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_weight_set_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_width_chars_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_wrap_mode_notify<F>(&self, f: F) -> SignalHandlerId
fn connect_property_wrap_width_notify<F>(&self, f: F) -> SignalHandlerId
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *const GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
impl<T> FromGlibPtrArrayContainerAsVec<<T as GlibPtrDefault>::GlibType, *mut GSList> for Twhere
T: GlibPtrDefault + FromGlibPtrNone<<T as GlibPtrDefault>::GlibType> + FromGlibPtrFull<<T as GlibPtrDefault>::GlibType>,
Source§impl<T> ObjectExt for Twhere
T: ObjectType,
impl<T> ObjectExt for Twhere
T: ObjectType,
Source§fn is<U>(&self) -> boolwhere
U: StaticType,
fn is<U>(&self) -> boolwhere
U: StaticType,
Returns
true
if the object is an instance of (can be cast to) T
.