Trait gtk4::prelude::CellAreaExtManual
source · pub trait CellAreaExtManual {
// Required methods
fn add_with_properties(
&self,
renderer: &impl IsA<CellRenderer>,
properties: &[(&str, &dyn ToValue)]
);
fn cell_get_value(
&self,
renderer: &impl IsA<CellRenderer>,
property_name: impl IntoGStr
) -> Value;
fn cell_get<V: for<'b> FromValue<'b> + 'static>(
&self,
renderer: &impl IsA<CellRenderer>,
property_name: impl IntoGStr
) -> V;
fn cell_set(
&self,
renderer: &impl IsA<CellRenderer>,
property_name: impl IntoGStr,
value: impl Into<Value>
);
}
Expand description
Trait containing manually implemented methods of CellArea
.
Required Methods§
sourcefn add_with_properties(
&self,
renderer: &impl IsA<CellRenderer>,
properties: &[(&str, &dyn ToValue)]
)
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.
Deprecated since 4.10
renderer
a CellRenderer
to be placed inside @self
first_prop_name
the name of the first cell property to set
fn cell_get_value( &self, renderer: &impl IsA<CellRenderer>, property_name: impl IntoGStr ) -> Value
sourcefn cell_get<V: for<'b> FromValue<'b> + 'static>(
&self,
renderer: &impl IsA<CellRenderer>,
property_name: impl IntoGStr
) -> V
fn cell_get<V: for<'b> FromValue<'b> + 'static>( &self, renderer: &impl IsA<CellRenderer>, property_name: impl IntoGStr ) -> V
Similar to Self::cell_get_value
but panics if the value is of a different type.