pub trait CellAreaExtManual {
    // Required methods
    fn add_with_properties(
        &self,
        renderer: &impl IsA<CellRenderer>,
        properties: &[(&str, &dyn ToValue)]
    );
    fn activate_cell(
        &self,
        widget: &impl IsA<Widget>,
        renderer: &impl IsA<CellRenderer>,
        event: &impl AsRef<Event>,
        cell_area: &Rectangle,
        flags: CellRendererState
    ) -> bool;
    fn event(
        &self,
        context: &impl IsA<CellAreaContext>,
        widget: &impl IsA<Widget>,
        event: &impl AsRef<Event>,
        cell_area: &Rectangle,
        flags: CellRendererState
    ) -> i32;
    fn cell_get_value(
        &self,
        renderer: &impl IsA<CellRenderer>,
        property_name: &str
    ) -> Value;
    fn cell_get<V: for<'b> FromValue<'b> + 'static>(
        &self,
        renderer: &impl IsA<CellRenderer>,
        property_name: &str
    ) -> V;
    fn cell_set(
        &self,
        renderer: &impl IsA<CellRenderer>,
        property_name: &str,
        value: &dyn ToValue
    );
}
Expand description

Trait containing manually implemented methods of CellArea.

Required Methods§

source

fn add_with_properties( &self, renderer: &impl IsA<CellRenderer>, properties: &[(&str, &dyn ToValue)] )

Adds @renderer to @self, setting cell properties at the same time. See gtk_cell_area_add() and gtk_cell_area_cell_set() for more details.

renderer

a CellRenderer to be placed inside @self

first_prop_name

the name of the first cell property to set

source

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.

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

source

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.

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.

source

fn cell_get_value( &self, renderer: &impl IsA<CellRenderer>, property_name: &str ) -> Value

source

fn cell_get<V: for<'b> FromValue<'b> + 'static>( &self, renderer: &impl IsA<CellRenderer>, property_name: &str ) -> V

Similar to Self::cell_get_value but panics if the value is of a different type.

source

fn cell_set( &self, renderer: &impl IsA<CellRenderer>, property_name: &str, value: &dyn ToValue )

Implementors§