pub trait CellRendererExt: IsA<CellRenderer> + 'static {
Show 63 methods
// Provided methods
fn activate(
&self,
event: impl AsRef<Event>,
widget: &impl IsA<Widget>,
path: &str,
background_area: &Rectangle,
cell_area: &Rectangle,
flags: CellRendererState,
) -> bool { ... }
fn aligned_area(
&self,
widget: &impl IsA<Widget>,
flags: CellRendererState,
cell_area: &Rectangle,
) -> Rectangle { ... }
fn alignment(&self) -> (f32, f32) { ... }
fn fixed_size(&self) -> (i32, i32) { ... }
fn is_expanded(&self) -> bool { ... }
fn is_expander(&self) -> bool { ... }
fn padding(&self) -> (i32, i32) { ... }
fn preferred_height(&self, widget: &impl IsA<Widget>) -> (i32, i32) { ... }
fn preferred_height_for_width(
&self,
widget: &impl IsA<Widget>,
width: i32,
) -> (i32, i32) { ... }
fn preferred_size(
&self,
widget: &impl IsA<Widget>,
) -> (Requisition, Requisition) { ... }
fn preferred_width(&self, widget: &impl IsA<Widget>) -> (i32, i32) { ... }
fn preferred_width_for_height(
&self,
widget: &impl IsA<Widget>,
height: i32,
) -> (i32, i32) { ... }
fn request_mode(&self) -> SizeRequestMode { ... }
fn is_sensitive(&self) -> bool { ... }
fn state(
&self,
widget: Option<&impl IsA<Widget>>,
cell_state: CellRendererState,
) -> StateFlags { ... }
fn is_visible(&self) -> bool { ... }
fn is_activatable(&self) -> bool { ... }
fn set_alignment(&self, xalign: f32, yalign: f32) { ... }
fn set_fixed_size(&self, width: i32, height: i32) { ... }
fn set_is_expanded(&self, is_expanded: bool) { ... }
fn set_is_expander(&self, is_expander: bool) { ... }
fn set_padding(&self, xpad: i32, ypad: i32) { ... }
fn set_sensitive(&self, sensitive: bool) { ... }
fn set_visible(&self, visible: bool) { ... }
fn snapshot(
&self,
snapshot: &impl IsA<Snapshot>,
widget: &impl IsA<Widget>,
background_area: &Rectangle,
cell_area: &Rectangle,
flags: CellRendererState,
) { ... }
fn start_editing(
&self,
event: Option<impl AsRef<Event>>,
widget: &impl IsA<Widget>,
path: &str,
background_area: &Rectangle,
cell_area: &Rectangle,
flags: CellRendererState,
) -> Option<CellEditable> { ... }
fn stop_editing(&self, canceled: bool) { ... }
fn set_cell_background(&self, cell_background: Option<&str>) { ... }
fn cell_background_rgba(&self) -> Option<RGBA> { ... }
fn set_cell_background_rgba(&self, cell_background_rgba: Option<&RGBA>) { ... }
fn is_cell_background_set(&self) -> bool { ... }
fn is_editing(&self) -> bool { ... }
fn height(&self) -> i32 { ... }
fn set_height(&self, height: i32) { ... }
fn mode(&self) -> CellRendererMode { ... }
fn set_mode(&self, mode: CellRendererMode) { ... }
fn width(&self) -> i32 { ... }
fn set_width(&self, width: i32) { ... }
fn xalign(&self) -> f32 { ... }
fn set_xalign(&self, xalign: f32) { ... }
fn xpad(&self) -> u32 { ... }
fn set_xpad(&self, xpad: u32) { ... }
fn yalign(&self) -> f32 { ... }
fn set_yalign(&self, yalign: f32) { ... }
fn ypad(&self) -> u32 { ... }
fn set_ypad(&self, ypad: u32) { ... }
fn connect_editing_canceled<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_editing_started<F: Fn(&Self, &CellEditable, TreePath) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_cell_background_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_cell_background_rgba_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_cell_background_set_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_editing_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_height_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_is_expanded_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_is_expander_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_mode_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_sensitive_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_visible_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_width_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_xalign_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_xpad_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_yalign_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
fn connect_ypad_notify<F: Fn(&Self) + 'static>(
&self,
f: F,
) -> SignalHandlerId { ... }
}๐Deprecated: Since 4.10
Provided Methodsยง
fn activate( &self, event: impl AsRef<Event>, widget: &impl IsA<Widget>, path: &str, background_area: &Rectangle, cell_area: &Rectangle, flags: CellRendererState, ) -> bool
๐Deprecated: Since 4.10
fn aligned_area( &self, widget: &impl IsA<Widget>, flags: CellRendererState, cell_area: &Rectangle, ) -> Rectangle
๐Deprecated: Since 4.10
fn alignment(&self) -> (f32, f32)
๐Deprecated: Since 4.10
fn fixed_size(&self) -> (i32, i32)
๐Deprecated: Since 4.10
fn is_expanded(&self) -> bool
๐Deprecated: Since 4.10
fn is_expander(&self) -> bool
๐Deprecated: Since 4.10
fn padding(&self) -> (i32, i32)
๐Deprecated: Since 4.10
fn preferred_height(&self, widget: &impl IsA<Widget>) -> (i32, i32)
๐Deprecated: Since 4.10
fn preferred_height_for_width( &self, widget: &impl IsA<Widget>, width: i32, ) -> (i32, i32)
๐Deprecated: Since 4.10
fn preferred_size( &self, widget: &impl IsA<Widget>, ) -> (Requisition, Requisition)
๐Deprecated: Since 4.10
fn preferred_width(&self, widget: &impl IsA<Widget>) -> (i32, i32)
๐Deprecated: Since 4.10
fn preferred_width_for_height( &self, widget: &impl IsA<Widget>, height: i32, ) -> (i32, i32)
๐Deprecated: Since 4.10
fn request_mode(&self) -> SizeRequestMode
๐Deprecated: Since 4.10
fn is_sensitive(&self) -> bool
๐Deprecated: Since 4.10
fn state( &self, widget: Option<&impl IsA<Widget>>, cell_state: CellRendererState, ) -> StateFlags
๐Deprecated: Since 4.10
fn is_visible(&self) -> bool
๐Deprecated: Since 4.10
fn is_activatable(&self) -> bool
๐Deprecated: Since 4.10
fn set_alignment(&self, xalign: f32, yalign: f32)
๐Deprecated: Since 4.10
fn set_fixed_size(&self, width: i32, height: i32)
๐Deprecated: Since 4.10
fn set_is_expanded(&self, is_expanded: bool)
๐Deprecated: Since 4.10
fn set_is_expander(&self, is_expander: bool)
๐Deprecated: Since 4.10
fn set_padding(&self, xpad: i32, ypad: i32)
๐Deprecated: Since 4.10
fn set_sensitive(&self, sensitive: bool)
๐Deprecated: Since 4.10
fn set_visible(&self, visible: bool)
๐Deprecated: Since 4.10
fn snapshot( &self, snapshot: &impl IsA<Snapshot>, widget: &impl IsA<Widget>, background_area: &Rectangle, cell_area: &Rectangle, flags: CellRendererState, )
๐Deprecated: Since 4.10
fn start_editing( &self, event: Option<impl AsRef<Event>>, widget: &impl IsA<Widget>, path: &str, background_area: &Rectangle, cell_area: &Rectangle, flags: CellRendererState, ) -> Option<CellEditable>
๐Deprecated: Since 4.10
fn stop_editing(&self, canceled: bool)
๐Deprecated: Since 4.10
fn set_cell_background(&self, cell_background: Option<&str>)
๐Deprecated: Since 4.10
fn cell_background_rgba(&self) -> Option<RGBA>
๐Deprecated: Since 4.10
fn set_cell_background_rgba(&self, cell_background_rgba: Option<&RGBA>)
๐Deprecated: Since 4.10
fn is_cell_background_set(&self) -> bool
๐Deprecated: Since 4.10
fn is_editing(&self) -> bool
๐Deprecated: Since 4.10
fn height(&self) -> i32
๐Deprecated: Since 4.10
fn set_height(&self, height: i32)
๐Deprecated: Since 4.10
fn mode(&self) -> CellRendererMode
๐Deprecated: Since 4.10
fn set_mode(&self, mode: CellRendererMode)
๐Deprecated: Since 4.10
fn width(&self) -> i32
๐Deprecated: Since 4.10
fn set_width(&self, width: i32)
๐Deprecated: Since 4.10
fn xalign(&self) -> f32
๐Deprecated: Since 4.10
fn set_xalign(&self, xalign: f32)
๐Deprecated: Since 4.10
fn xpad(&self) -> u32
๐Deprecated: Since 4.10
fn set_xpad(&self, xpad: u32)
๐Deprecated: Since 4.10
fn yalign(&self) -> f32
๐Deprecated: Since 4.10
fn set_yalign(&self, yalign: f32)
๐Deprecated: Since 4.10
fn ypad(&self) -> u32
๐Deprecated: Since 4.10
fn set_ypad(&self, ypad: u32)
๐Deprecated: Since 4.10
fn connect_editing_canceled<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_editing_started<F: Fn(&Self, &CellEditable, TreePath) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_cell_background_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_cell_background_rgba_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_cell_background_set_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_editing_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_height_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_is_expanded_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_is_expander_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_mode_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_sensitive_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_visible_notify<F: Fn(&Self) + 'static>( &self, f: F, ) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_width_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_xalign_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_xpad_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_yalign_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
๐Deprecated: Since 4.10
fn connect_ypad_notify<F: Fn(&Self) + 'static>(&self, f: F) -> SignalHandlerId
๐Deprecated: Since 4.10
Dyn Compatibilityยง
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.