Trait CellAreaExt

Source
pub trait CellAreaExt: IsA<CellArea> + 'static {
Show 44 methods // Provided methods fn activate( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, cell_area: &Rectangle, flags: CellRendererState, edit_only: bool, ) -> bool { ... } fn activate_cell( &self, widget: &impl IsA<Widget>, renderer: &impl IsA<CellRenderer>, event: impl AsRef<Event>, cell_area: &Rectangle, flags: CellRendererState, ) -> bool { ... } fn add(&self, renderer: &impl IsA<CellRenderer>) { ... } fn add_focus_sibling( &self, renderer: &impl IsA<CellRenderer>, sibling: &impl IsA<CellRenderer>, ) { ... } fn apply_attributes( &self, tree_model: &impl IsA<TreeModel>, iter: &TreeIter, is_expander: bool, is_expanded: bool, ) { ... } fn attribute_connect( &self, renderer: &impl IsA<CellRenderer>, attribute: &str, column: i32, ) { ... } fn attribute_disconnect( &self, renderer: &impl IsA<CellRenderer>, attribute: &str, ) { ... } fn attribute_get_column( &self, renderer: &impl IsA<CellRenderer>, attribute: &str, ) -> i32 { ... } fn copy_context( &self, context: &impl IsA<CellAreaContext>, ) -> CellAreaContext { ... } fn create_context(&self) -> CellAreaContext { ... } fn event( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, event: impl AsRef<Event>, cell_area: &Rectangle, flags: CellRendererState, ) -> i32 { ... } fn focus(&self, direction: DirectionType) -> bool { ... } fn foreach<P>(&self, callback: P) where P: FnMut(&CellRenderer) -> bool { ... } fn foreach_alloc<P>( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, cell_area: &Rectangle, background_area: &Rectangle, callback: P, ) where P: FnMut(&CellRenderer, &Rectangle, &Rectangle) -> bool { ... } fn cell_allocation( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, renderer: &impl IsA<CellRenderer>, cell_area: &Rectangle, ) -> Rectangle { ... } fn cell_at_position( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, cell_area: &Rectangle, x: i32, y: i32, ) -> (CellRenderer, Rectangle) { ... } fn current_path_string(&self) -> GString { ... } fn edit_widget(&self) -> Option<CellEditable> { ... } fn edited_cell(&self) -> Option<CellRenderer> { ... } fn focus_cell(&self) -> Option<CellRenderer> { ... } fn focus_from_sibling( &self, renderer: &impl IsA<CellRenderer>, ) -> Option<CellRenderer> { ... } fn focus_siblings( &self, renderer: &impl IsA<CellRenderer>, ) -> Vec<CellRenderer> { ... } fn preferred_height( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, ) -> (i32, i32) { ... } fn preferred_height_for_width( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, width: i32, ) -> (i32, i32) { ... } fn preferred_width( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, ) -> (i32, i32) { ... } fn preferred_width_for_height( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, height: i32, ) -> (i32, i32) { ... } fn request_mode(&self) -> SizeRequestMode { ... } fn has_renderer(&self, renderer: &impl IsA<CellRenderer>) -> bool { ... } fn inner_cell_area( &self, widget: &impl IsA<Widget>, cell_area: &Rectangle, ) -> Rectangle { ... } fn is_activatable(&self) -> bool { ... } fn is_focus_sibling( &self, renderer: &impl IsA<CellRenderer>, sibling: &impl IsA<CellRenderer>, ) -> bool { ... } fn remove(&self, renderer: &impl IsA<CellRenderer>) { ... } fn remove_focus_sibling( &self, renderer: &impl IsA<CellRenderer>, sibling: &impl IsA<CellRenderer>, ) { ... } fn request_renderer( &self, renderer: &impl IsA<CellRenderer>, orientation: Orientation, widget: &impl IsA<Widget>, for_size: i32, ) -> (i32, i32) { ... } fn set_focus_cell(&self, renderer: Option<&impl IsA<CellRenderer>>) { ... } fn snapshot( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot>, background_area: &Rectangle, cell_area: &Rectangle, flags: CellRendererState, paint_focus: bool, ) { ... } fn stop_editing(&self, canceled: bool) { ... } fn connect_add_editable<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self, &CellRenderer, &CellEditable, &Rectangle, TreePath) + 'static { ... } fn connect_apply_attributes<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self, &TreeModel, &TreeIter, bool, bool) + 'static { ... } fn connect_focus_changed<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self, &CellRenderer, TreePath) + 'static { ... } fn connect_remove_editable<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self, &CellRenderer, &CellEditable) + 'static { ... } fn connect_edit_widget_notify<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self) + 'static { ... } fn connect_edited_cell_notify<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self) + 'static { ... } fn connect_focus_cell_notify<F>(&self, f: F) -> SignalHandlerId where F: Fn(&Self) + 'static { ... }
}
๐Ÿ‘ŽDeprecated: Since 4.10

Provided Methodsยง

Source

fn activate( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, cell_area: &Rectangle, flags: CellRendererState, edit_only: bool, ) -> bool

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn activate_cell( &self, widget: &impl IsA<Widget>, renderer: &impl IsA<CellRenderer>, event: impl AsRef<Event>, cell_area: &Rectangle, flags: CellRendererState, ) -> bool

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn add(&self, renderer: &impl IsA<CellRenderer>)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn add_focus_sibling( &self, renderer: &impl IsA<CellRenderer>, sibling: &impl IsA<CellRenderer>, )

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn apply_attributes( &self, tree_model: &impl IsA<TreeModel>, iter: &TreeIter, is_expander: bool, is_expanded: bool, )

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn attribute_connect( &self, renderer: &impl IsA<CellRenderer>, attribute: &str, column: i32, )

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn attribute_disconnect( &self, renderer: &impl IsA<CellRenderer>, attribute: &str, )

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn attribute_get_column( &self, renderer: &impl IsA<CellRenderer>, attribute: &str, ) -> i32

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn copy_context(&self, context: &impl IsA<CellAreaContext>) -> CellAreaContext

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn create_context(&self) -> CellAreaContext

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn event( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, event: impl AsRef<Event>, cell_area: &Rectangle, flags: CellRendererState, ) -> i32

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn focus(&self, direction: DirectionType) -> bool

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn foreach<P>(&self, callback: P)
where P: FnMut(&CellRenderer) -> bool,

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn foreach_alloc<P>( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, cell_area: &Rectangle, background_area: &Rectangle, callback: P, )

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn cell_allocation( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, renderer: &impl IsA<CellRenderer>, cell_area: &Rectangle, ) -> Rectangle

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn cell_at_position( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, cell_area: &Rectangle, x: i32, y: i32, ) -> (CellRenderer, Rectangle)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn current_path_string(&self) -> GString

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn edit_widget(&self) -> Option<CellEditable>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn edited_cell(&self) -> Option<CellRenderer>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn focus_cell(&self) -> Option<CellRenderer>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn focus_from_sibling( &self, renderer: &impl IsA<CellRenderer>, ) -> Option<CellRenderer>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn focus_siblings(&self, renderer: &impl IsA<CellRenderer>) -> Vec<CellRenderer>

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn preferred_height( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, ) -> (i32, i32)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn preferred_height_for_width( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, width: i32, ) -> (i32, i32)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn preferred_width( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, ) -> (i32, i32)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn preferred_width_for_height( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, height: i32, ) -> (i32, i32)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn request_mode(&self) -> SizeRequestMode

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn has_renderer(&self, renderer: &impl IsA<CellRenderer>) -> bool

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn inner_cell_area( &self, widget: &impl IsA<Widget>, cell_area: &Rectangle, ) -> Rectangle

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn is_activatable(&self) -> bool

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn is_focus_sibling( &self, renderer: &impl IsA<CellRenderer>, sibling: &impl IsA<CellRenderer>, ) -> bool

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn remove(&self, renderer: &impl IsA<CellRenderer>)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn remove_focus_sibling( &self, renderer: &impl IsA<CellRenderer>, sibling: &impl IsA<CellRenderer>, )

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn request_renderer( &self, renderer: &impl IsA<CellRenderer>, orientation: Orientation, widget: &impl IsA<Widget>, for_size: i32, ) -> (i32, i32)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn set_focus_cell(&self, renderer: Option<&impl IsA<CellRenderer>>)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn snapshot( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, snapshot: &impl IsA<Snapshot>, background_area: &Rectangle, cell_area: &Rectangle, flags: CellRendererState, paint_focus: bool, )

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn stop_editing(&self, canceled: bool)

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_add_editable<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self, &CellRenderer, &CellEditable, &Rectangle, TreePath) + 'static,

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_apply_attributes<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self, &TreeModel, &TreeIter, bool, bool) + 'static,

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_focus_changed<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self, &CellRenderer, TreePath) + 'static,

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_remove_editable<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self, &CellRenderer, &CellEditable) + 'static,

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_edit_widget_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static,

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_edited_cell_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static,

๐Ÿ‘ŽDeprecated: Since 4.10
Source

fn connect_focus_cell_notify<F>(&self, f: F) -> SignalHandlerId
where F: Fn(&Self) + 'static,

๐Ÿ‘Ž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.

Implementorsยง

Sourceยง

impl<O> CellAreaExt for O
where O: IsA<CellArea>,