Trait gtk4::prelude::CellAreaExt
source · pub trait CellAreaExt: IsA<CellArea> + Sealed + '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: FnMut(&CellRenderer) -> bool>(&self, callback: P) { ... }
fn foreach_alloc<P: FnMut(&CellRenderer, &Rectangle, &Rectangle) -> bool>(
&self,
context: &impl IsA<CellAreaContext>,
widget: &impl IsA<Widget>,
cell_area: &Rectangle,
background_area: &Rectangle,
callback: P
) { ... }
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: Fn(&Self, &CellRenderer, &CellEditable, &Rectangle, TreePath) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_apply_attributes<F: Fn(&Self, &TreeModel, &TreeIter, bool, bool) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_focus_changed<F: Fn(&Self, &CellRenderer, TreePath) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_remove_editable<F: Fn(&Self, &CellRenderer, &CellEditable) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_edit_widget_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_edited_cell_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
fn connect_focus_cell_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId { ... }
}
Expand description
Provided Methods§
sourcefn activate(
&self,
context: &impl IsA<CellAreaContext>,
widget: &impl IsA<Widget>,
cell_area: &Rectangle,
flags: CellRendererState,
edit_only: bool
) -> bool
👎Deprecated: Since 4.10
fn activate( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, cell_area: &Rectangle, flags: CellRendererState, edit_only: bool ) -> bool
Activates @self, usually by activating the currently focused cell, however some subclasses which embed widgets in the area can also activate a widget if it currently has the focus.
§Deprecated since 4.10
§context
the CellArea
Context in context with the current row data
§widget
the Widget
that @self is rendering on
§cell_area
the size and location of @self relative to @widget’s allocation
§flags
the CellRenderer
State flags for @self for this row of data.
§edit_only
if true
then only cell renderers that are CellRendererMode::Editable
will be activated.
§Returns
Whether @self was successfully activated.
sourcefn 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
fn activate_cell( &self, widget: &impl IsA<Widget>, renderer: &impl IsA<CellRenderer>, event: impl AsRef<Event>, cell_area: &Rectangle, flags: CellRendererState ) -> bool
This is used by CellArea
subclasses when handling events
to activate cells, the base CellArea
class activates cells
for keyboard events for free in its own GtkCellArea->activate()
implementation.
§Deprecated since 4.10
§widget
the Widget
that @self is rendering onto
§renderer
the CellRenderer
in @self to activate
§event
the gdk::Event
for which cell activation should occur
§cell_area
the gdk::Rectangle
in @widget relative coordinates
of @renderer for the current row.
§flags
the CellRenderer
State for @renderer
§Returns
whether cell activation was successful
sourcefn add(&self, renderer: &impl IsA<CellRenderer>)
👎Deprecated: Since 4.10
fn add(&self, renderer: &impl IsA<CellRenderer>)
Adds @renderer to @self with the default child cell properties.
§Deprecated since 4.10
§renderer
the CellRenderer
to add to @self
sourcefn add_focus_sibling(
&self,
renderer: &impl IsA<CellRenderer>,
sibling: &impl IsA<CellRenderer>
)
👎Deprecated: Since 4.10
fn add_focus_sibling( &self, renderer: &impl IsA<CellRenderer>, sibling: &impl IsA<CellRenderer> )
Adds @sibling to @renderer’s focusable area, focus will be drawn around @renderer and all of its siblings if @renderer can focus for a given row.
Events handled by focus siblings can also activate the given focusable @renderer.
§Deprecated since 4.10
§renderer
the CellRenderer
expected to have focus
§sibling
the CellRenderer
to add to @renderer’s focus area
sourcefn apply_attributes(
&self,
tree_model: &impl IsA<TreeModel>,
iter: &TreeIter,
is_expander: bool,
is_expanded: bool
)
👎Deprecated: Since 4.10
fn apply_attributes( &self, tree_model: &impl IsA<TreeModel>, iter: &TreeIter, is_expander: bool, is_expanded: bool )
Applies any connected attributes to the renderers in @self by pulling the values from @tree_model.
§Deprecated since 4.10
§tree_model
the TreeModel
to pull values from
§iter
the TreeIter
in @tree_model to apply values for
§is_expander
whether @iter has children
§is_expanded
whether @iter is expanded in the view and children are visible
sourcefn attribute_connect(
&self,
renderer: &impl IsA<CellRenderer>,
attribute: &str,
column: i32
)
👎Deprecated: Since 4.10
fn attribute_connect( &self, renderer: &impl IsA<CellRenderer>, attribute: &str, column: i32 )
sourcefn attribute_disconnect(
&self,
renderer: &impl IsA<CellRenderer>,
attribute: &str
)
👎Deprecated: Since 4.10
fn attribute_disconnect( &self, renderer: &impl IsA<CellRenderer>, attribute: &str )
Disconnects @attribute for the @renderer in @self so that attribute will no longer be updated with values from the model.
§Deprecated since 4.10
§renderer
the CellRenderer
to disconnect an attribute for
§attribute
the attribute name
sourcefn attribute_get_column(
&self,
renderer: &impl IsA<CellRenderer>,
attribute: &str
) -> i32
👎Deprecated: Since 4.10
fn attribute_get_column( &self, renderer: &impl IsA<CellRenderer>, attribute: &str ) -> i32
sourcefn copy_context(&self, context: &impl IsA<CellAreaContext>) -> CellAreaContext
👎Deprecated: Since 4.10
fn copy_context(&self, context: &impl IsA<CellAreaContext>) -> CellAreaContext
This is sometimes needed for cases where rows need to share alignments in one orientation but may be separately grouped in the opposing orientation.
For instance, IconView
creates all icons (rows) to have
the same width and the cells theirin to have the same
horizontal alignments. However each row of icons may have
a separate collective height. IconView
uses this to
request the heights of each row based on a context which
was already used to request all the row widths that are
to be displayed.
§Deprecated since 4.10
§context
the CellArea
Context to copy
§Returns
a newly created CellArea
Context copy of @context.
sourcefn create_context(&self) -> CellAreaContext
👎Deprecated: Since 4.10
fn create_context(&self) -> CellAreaContext
Creates a CellArea
Context to be used with @self for
all purposes. CellArea
Context stores geometry information
for rows for which it was operated on, it is important to use
the same context for the same row of data at all times (i.e.
one should render and handle events with the same CellArea
Context
which was used to request the size of those rows of data).
§Deprecated since 4.10
§Returns
a newly created CellArea
Context which can be used with @self.
sourcefn event(
&self,
context: &impl IsA<CellAreaContext>,
widget: &impl IsA<Widget>,
event: impl AsRef<Event>,
cell_area: &Rectangle,
flags: CellRendererState
) -> i32
👎Deprecated: Since 4.10
fn event( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, event: impl AsRef<Event>, cell_area: &Rectangle, flags: CellRendererState ) -> i32
Delegates event handling to a CellArea
.
§Deprecated since 4.10
§context
the CellArea
Context for this row of data.
§widget
the Widget
that @self is rendering to
§event
the gdk::Event
to handle
§cell_area
the @widget relative coordinates for @self
§flags
the CellRenderer
State for @self in this row.
§Returns
true
if the event was handled by @self.
sourcefn focus(&self, direction: DirectionType) -> bool
👎Deprecated: Since 4.10
fn focus(&self, direction: DirectionType) -> bool
This should be called by the @self’s owning layout widget when focus is to be passed to @self, or moved within @self for a given @direction and row data.
Implementing CellArea
classes should implement this
method to receive and navigate focus in its own way particular
to how it lays out cells.
§Deprecated since 4.10
§direction
the DirectionType
§Returns
true
if focus remains inside @self as a result of this call.
sourcefn foreach<P: FnMut(&CellRenderer) -> bool>(&self, callback: P)
👎Deprecated: Since 4.10
fn foreach<P: FnMut(&CellRenderer) -> bool>(&self, callback: P)
Calls @callback for every CellRenderer
in @self.
§Deprecated since 4.10
§callback
the GtkCellCallback
to call
§callback_data
user provided data pointer
sourcefn foreach_alloc<P: FnMut(&CellRenderer, &Rectangle, &Rectangle) -> bool>(
&self,
context: &impl IsA<CellAreaContext>,
widget: &impl IsA<Widget>,
cell_area: &Rectangle,
background_area: &Rectangle,
callback: P
)
👎Deprecated: Since 4.10
fn foreach_alloc<P: FnMut(&CellRenderer, &Rectangle, &Rectangle) -> bool>( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, cell_area: &Rectangle, background_area: &Rectangle, callback: P )
Calls @callback for every CellRenderer
in @self with the
allocated rectangle inside @cell_area.
§context
the CellArea
Context for this row of data.
§widget
the Widget
that @self is rendering to
§cell_area
the @widget relative coordinates and size for @self
§background_area
the @widget relative coordinates of the background area
§callback
the GtkCellAllocCallback
to call
§callback_data
user provided data pointer
sourcefn cell_allocation(
&self,
context: &impl IsA<CellAreaContext>,
widget: &impl IsA<Widget>,
renderer: &impl IsA<CellRenderer>,
cell_area: &Rectangle
) -> Rectangle
👎Deprecated: Since 4.10
fn cell_allocation( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, renderer: &impl IsA<CellRenderer>, cell_area: &Rectangle ) -> Rectangle
Derives the allocation of @renderer inside @self if @self were to be rendered in @cell_area.
§Deprecated since 4.10
§context
the CellArea
Context used to hold sizes for @self.
§widget
the Widget
that @self is rendering on
§renderer
the CellRenderer
to get the allocation for
§cell_area
the whole allocated area for @self in @widget for this row
§Returns
§allocation
where to store the allocation for @renderer
sourcefn 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
fn cell_at_position( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, cell_area: &Rectangle, x: i32, y: i32 ) -> (CellRenderer, Rectangle)
Gets the CellRenderer
at @x and @y coordinates inside @self and optionally
returns the full cell allocation for it inside @cell_area.
§Deprecated since 4.10
§context
the CellArea
Context used to hold sizes for @self.
§widget
the Widget
that @self is rendering on
§cell_area
the whole allocated area for @self in @widget for this row
§x
the x position
§y
the y position
§Returns
the CellRenderer
at @x and @y.
§alloc_area
where to store the inner allocated area of the returned cell renderer
sourcefn current_path_string(&self) -> GString
👎Deprecated: Since 4.10
fn current_path_string(&self) -> GString
Gets the current TreePath
string for the currently
applied TreeIter
, this is implicitly updated when
gtk_cell_area_apply_attributes() is called and can be
used to interact with renderers from CellArea
subclasses.
§Returns
The current TreePath
string for the current
attributes applied to @self. This string belongs to the area and
should not be freed.
sourcefn edit_widget(&self) -> Option<CellEditable>
👎Deprecated: Since 4.10
fn edit_widget(&self) -> Option<CellEditable>
Gets the CellEditable
widget currently used
to edit the currently edited cell.
§Deprecated since 4.10
§Returns
The currently active CellEditable
widget
sourcefn edited_cell(&self) -> Option<CellRenderer>
👎Deprecated: Since 4.10
fn edited_cell(&self) -> Option<CellRenderer>
Gets the CellRenderer
in @self that is currently
being edited.
§Deprecated since 4.10
§Returns
The currently edited CellRenderer
sourcefn focus_cell(&self) -> Option<CellRenderer>
👎Deprecated: Since 4.10
fn focus_cell(&self) -> Option<CellRenderer>
sourcefn focus_from_sibling(
&self,
renderer: &impl IsA<CellRenderer>
) -> Option<CellRenderer>
👎Deprecated: Since 4.10
fn focus_from_sibling( &self, renderer: &impl IsA<CellRenderer> ) -> Option<CellRenderer>
Gets the CellRenderer
which is expected to be focusable
for which @renderer is, or may be a sibling.
This is handy for CellArea
subclasses when handling events,
after determining the renderer at the event location it can
then chose to activate the focus cell for which the event
cell may have been a sibling.
§Deprecated since 4.10
§renderer
the CellRenderer
§Returns
the CellRenderer
for which @renderer is a sibling
sourcefn focus_siblings(&self, renderer: &impl IsA<CellRenderer>) -> Vec<CellRenderer>
👎Deprecated: Since 4.10
fn focus_siblings(&self, renderer: &impl IsA<CellRenderer>) -> Vec<CellRenderer>
Gets the focus sibling cell renderers for @renderer.
§Deprecated since 4.10
§renderer
the CellRenderer
expected to have focus
§Returns
A GList
of CellRenderer
s.
The returned list is internal and should not be freed.
sourcefn preferred_height(
&self,
context: &impl IsA<CellAreaContext>,
widget: &impl IsA<Widget>
) -> (i32, i32)
👎Deprecated: Since 4.10
fn preferred_height( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget> ) -> (i32, i32)
Retrieves a cell area’s initial minimum and natural height.
@self will store some geometrical information in @context along the way; when requesting sizes over an arbitrary number of rows, it’s not important to check the @minimum_height and @natural_height of this call but rather to consult gtk_cell_area_context_get_preferred_height() after a series of requests.
§Deprecated since 4.10
§context
the CellArea
Context to perform this request with
§widget
the Widget
where @self will be rendering
§Returns
§minimum_height
location to store the minimum height
§natural_height
location to store the natural height
sourcefn preferred_height_for_width(
&self,
context: &impl IsA<CellAreaContext>,
widget: &impl IsA<Widget>,
width: i32
) -> (i32, i32)
👎Deprecated: Since 4.10
fn preferred_height_for_width( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, width: i32 ) -> (i32, i32)
Retrieves a cell area’s minimum and natural height if it would be given the specified @width.
@self stores some geometrical information in @context along the way while calling gtk_cell_area_get_preferred_width(). It’s important to perform a series of gtk_cell_area_get_preferred_width() requests with @context first and then call gtk_cell_area_get_preferred_height_for_width() on each cell area individually to get the height for width of each fully requested row.
If at some point, the width of a single row changes, it should be requested with gtk_cell_area_get_preferred_width() again and then the full width of the requested rows checked again with gtk_cell_area_context_get_preferred_width().
§Deprecated since 4.10
§context
the CellArea
Context which has already been requested for widths.
§widget
the Widget
where @self will be rendering
§width
the width for which to check the height of this area
§Returns
§minimum_height
location to store the minimum height
§natural_height
location to store the natural height
sourcefn preferred_width(
&self,
context: &impl IsA<CellAreaContext>,
widget: &impl IsA<Widget>
) -> (i32, i32)
👎Deprecated: Since 4.10
fn preferred_width( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget> ) -> (i32, i32)
Retrieves a cell area’s initial minimum and natural width.
@self will store some geometrical information in @context along the way; when requesting sizes over an arbitrary number of rows, it’s not important to check the @minimum_width and @natural_width of this call but rather to consult gtk_cell_area_context_get_preferred_width() after a series of requests.
§Deprecated since 4.10
§context
the CellArea
Context to perform this request with
§widget
the Widget
where @self will be rendering
§Returns
§minimum_width
location to store the minimum width
§natural_width
location to store the natural width
sourcefn preferred_width_for_height(
&self,
context: &impl IsA<CellAreaContext>,
widget: &impl IsA<Widget>,
height: i32
) -> (i32, i32)
👎Deprecated: Since 4.10
fn preferred_width_for_height( &self, context: &impl IsA<CellAreaContext>, widget: &impl IsA<Widget>, height: i32 ) -> (i32, i32)
Retrieves a cell area’s minimum and natural width if it would be given the specified @height.
@self stores some geometrical information in @context along the way while calling gtk_cell_area_get_preferred_height(). It’s important to perform a series of gtk_cell_area_get_preferred_height() requests with @context first and then call gtk_cell_area_get_preferred_width_for_height() on each cell area individually to get the height for width of each fully requested row.
If at some point, the height of a single row changes, it should be requested with gtk_cell_area_get_preferred_height() again and then the full height of the requested rows checked again with gtk_cell_area_context_get_preferred_height().
§Deprecated since 4.10
§context
the CellArea
Context which has already been requested for widths.
§widget
the Widget
where @self will be rendering
§height
the height for which to check the width of this area
§Returns
§minimum_width
location to store the minimum width
§natural_width
location to store the natural width
sourcefn request_mode(&self) -> SizeRequestMode
👎Deprecated: Since 4.10
fn request_mode(&self) -> SizeRequestMode
Gets whether the area prefers a height-for-width layout or a width-for-height layout.
§Returns
The SizeRequestMode
preferred by @self.
sourcefn has_renderer(&self, renderer: &impl IsA<CellRenderer>) -> bool
👎Deprecated: Since 4.10
fn has_renderer(&self, renderer: &impl IsA<CellRenderer>) -> bool
Checks if @self contains @renderer.
§Deprecated since 4.10
§renderer
the CellRenderer
to check
§Returns
true
if @renderer is in the @self.
sourcefn inner_cell_area(
&self,
widget: &impl IsA<Widget>,
cell_area: &Rectangle
) -> Rectangle
👎Deprecated: Since 4.10
fn inner_cell_area( &self, widget: &impl IsA<Widget>, cell_area: &Rectangle ) -> Rectangle
This is a convenience function for CellArea
implementations
to get the inner area where a given CellRenderer
will be
rendered. It removes any padding previously added by gtk_cell_area_request_renderer().
§Deprecated since 4.10
§widget
the Widget
that @self is rendering onto
§cell_area
the @widget relative coordinates where one of @self’s cells is to be placed
§Returns
§inner_area
the return location for the inner cell area
sourcefn is_activatable(&self) -> bool
👎Deprecated: Since 4.10
fn is_activatable(&self) -> bool
sourcefn is_focus_sibling(
&self,
renderer: &impl IsA<CellRenderer>,
sibling: &impl IsA<CellRenderer>
) -> bool
👎Deprecated: Since 4.10
fn is_focus_sibling( &self, renderer: &impl IsA<CellRenderer>, sibling: &impl IsA<CellRenderer> ) -> bool
Returns whether @sibling is one of @renderer’s focus siblings (see gtk_cell_area_add_focus_sibling()).
§Deprecated since 4.10
§renderer
the CellRenderer
expected to have focus
§sibling
the CellRenderer
to check against @renderer’s sibling list
§Returns
true
if @sibling is a focus sibling of @renderer
sourcefn remove(&self, renderer: &impl IsA<CellRenderer>)
👎Deprecated: Since 4.10
fn remove(&self, renderer: &impl IsA<CellRenderer>)
sourcefn remove_focus_sibling(
&self,
renderer: &impl IsA<CellRenderer>,
sibling: &impl IsA<CellRenderer>
)
👎Deprecated: Since 4.10
fn remove_focus_sibling( &self, renderer: &impl IsA<CellRenderer>, sibling: &impl IsA<CellRenderer> )
Removes @sibling from @renderer’s focus sibling list (see gtk_cell_area_add_focus_sibling()).
§Deprecated since 4.10
§renderer
the CellRenderer
expected to have focus
§sibling
the CellRenderer
to remove from @renderer’s focus area
sourcefn request_renderer(
&self,
renderer: &impl IsA<CellRenderer>,
orientation: Orientation,
widget: &impl IsA<Widget>,
for_size: i32
) -> (i32, i32)
👎Deprecated: Since 4.10
fn request_renderer( &self, renderer: &impl IsA<CellRenderer>, orientation: Orientation, widget: &impl IsA<Widget>, for_size: i32 ) -> (i32, i32)
This is a convenience function for CellArea
implementations
to request size for cell renderers. It’s important to use this
function to request size and then use gtk_cell_area_inner_cell_area()
at render and event time since this function will add padding
around the cell for focus painting.
§Deprecated since 4.10
§renderer
the CellRenderer
to request size for
§orientation
the Orientation
in which to request size
§widget
the Widget
that @self is rendering onto
§for_size
the allocation contextual size to request for, or -1 if the base request for the orientation is to be returned.
§Returns
§minimum_size
location to store the minimum size
§natural_size
location to store the natural size
sourcefn set_focus_cell(&self, renderer: Option<&impl IsA<CellRenderer>>)
👎Deprecated: Since 4.10
fn set_focus_cell(&self, renderer: Option<&impl IsA<CellRenderer>>)
Explicitly sets the currently focused cell to @renderer.
This is generally called by implementations of
GtkCellAreaClass.focus()
or GtkCellAreaClass.event()
,
however it can also be used to implement functions such
as gtk_tree_view_set_cursor_on_cell().
§Deprecated since 4.10
§renderer
the CellRenderer
to give focus to
sourcefn 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
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 )
Snapshots @self’s cells according to @self’s layout onto at the given coordinates.
§Deprecated since 4.10
§context
the CellArea
Context for this row of data.
§widget
the Widget
that @self is rendering to
§snapshot
the Snapshot
to draw to
§background_area
the @widget relative coordinates for @self’s background
§cell_area
the @widget relative coordinates for @self
§flags
the CellRenderer
State for @self in this row.
§paint_focus
whether @self should paint focus on focused cells for focused rows or not.
sourcefn stop_editing(&self, canceled: bool)
👎Deprecated: Since 4.10
fn stop_editing(&self, canceled: bool)
Explicitly stops the editing of the currently edited cell.
If @canceled is true
, the currently edited cell renderer
will emit the ::editing-canceled signal, otherwise the
the ::editing-done signal will be emitted on the current
edit widget.
See gtk_cell_area_get_edited_cell() and gtk_cell_area_get_edit_widget().
§Deprecated since 4.10
§canceled
whether editing was canceled.
sourcefn connect_add_editable<F: Fn(&Self, &CellRenderer, &CellEditable, &Rectangle, TreePath) + 'static>(
&self,
f: F
) -> SignalHandlerId
👎Deprecated: Since 4.10
fn connect_add_editable<F: Fn(&Self, &CellRenderer, &CellEditable, &Rectangle, TreePath) + 'static>( &self, f: F ) -> SignalHandlerId
Indicates that editing has started on @renderer and that @editable should be added to the owning cell-layouting widget at @cell_area.
§renderer
the CellRenderer
that started the edited
§editable
the CellEditable
widget to add
§cell_area
the Widget
relative gdk::Rectangle
coordinates
where @editable should be added
§path
the TreePath
string this edit was initiated for
sourcefn connect_apply_attributes<F: Fn(&Self, &TreeModel, &TreeIter, bool, bool) + 'static>(
&self,
f: F
) -> SignalHandlerId
👎Deprecated: Since 4.10
fn connect_apply_attributes<F: Fn(&Self, &TreeModel, &TreeIter, bool, bool) + 'static>( &self, f: F ) -> SignalHandlerId
This signal is emitted whenever applying attributes to @area from @model
§model
the TreeModel
to apply the attributes from
§iter
the TreeIter
indicating which row to apply the attributes of
§is_expander
whether the view shows children for this row
§is_expanded
whether the view is currently showing the children of this row
sourcefn connect_focus_changed<F: Fn(&Self, &CellRenderer, TreePath) + 'static>(
&self,
f: F
) -> SignalHandlerId
👎Deprecated: Since 4.10
fn connect_focus_changed<F: Fn(&Self, &CellRenderer, TreePath) + 'static>( &self, f: F ) -> SignalHandlerId
Indicates that focus changed on this @area. This signal is emitted either as a result of focus handling or event handling.
It’s possible that the signal is emitted even if the currently focused renderer did not change, this is because focus may change to the same renderer in the same cell area for a different row of data.
§renderer
the CellRenderer
that has focus
§path
the current TreePath
string set for @area
sourcefn connect_remove_editable<F: Fn(&Self, &CellRenderer, &CellEditable) + 'static>(
&self,
f: F
) -> SignalHandlerId
👎Deprecated: Since 4.10
fn connect_remove_editable<F: Fn(&Self, &CellRenderer, &CellEditable) + 'static>( &self, f: F ) -> SignalHandlerId
Indicates that editing finished on @renderer and that @editable should be removed from the owning cell-layouting widget.
§renderer
the CellRenderer
that finished editeding
§editable
the CellEditable
widget to remove