Trait gtk4::prelude::CellAreaExtManual[][src]

pub trait CellAreaExtManual {
    fn activate_cell<P: IsA<Widget>, Q: IsA<CellRenderer>, R: AsRef<Event>>(
        &self,
        widget: &P,
        renderer: &Q,
        event: &R,
        cell_area: &Rectangle,
        flags: CellRendererState
    ) -> bool;
fn event<P: IsA<CellAreaContext>, Q: IsA<Widget>, R: AsRef<Event>>(
        &self,
        context: &P,
        widget: &Q,
        event: &R,
        cell_area: &Rectangle,
        flags: CellRendererState
    ) -> i32;
fn cell_get<P: IsA<CellRenderer>>(
        &self,
        renderer: &P,
        property_name: &str
    ) -> Value;
fn cell_set<P: IsA<CellRenderer>>(
        &self,
        renderer: &P,
        property_name: &str,
        value: &dyn ToValue
    ); }

Required methods

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.

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 CellRendererState for renderer

Returns

whether cell activation was successful

Delegates event handling to a CellArea.

context

the CellAreaContext 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 CellRendererState for self in this row.

Returns

true if the event was handled by self.

Gets the values of one or more cell properties for renderer in self.

renderer

a CellRenderer which is inside self

first_prop_name

the name of the first cell property to get

Sets one or more cell properties for cell in self.

renderer

a CellRenderer which is a cell inside self

first_prop_name

the name of the first cell property to set

Implementors