Trait gtk4::prelude::CellAreaExtManual
source · [−]pub trait CellAreaExtManual {
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
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
Similar to Self::cell_get_value
but panics if the value is of a different type.