Gtk.CellAreaClass¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
activate |
r |
This is called when the layouting widget rendering the |
|
add |
r |
adds a |
|
apply_attributes |
r |
Apply the cell attributes to the cells. This is implemented as a signal and generally |
|
copy_context |
r |
Creates a new |
|
create_context |
r |
Creates and returns a class specific |
|
event |
r |
Handle an event in the area, this is generally used to activate a cell at the event location for button events but can also be used to generically pass events to |
|
focus |
r |
This virtual method should be implemented to navigate focus from cell to cell inside the |
|
foreach |
r |
calls the |
|
foreach_alloc |
r |
Calls the |
|
get_cell_property |
r |
This should be implemented to report the values of child cell properties for a given child |
|
get_preferred_height |
r |
Calculates the minimum and natural height of the areas cells with the current attributes applied. Essentially this is the same as |
|
get_preferred_height_for_width |
r |
Calculates the minimum and natural height for the area if the passed context would be allocated the given width. When implementing this virtual method it is safe to assume that context has already stored the aligned cell widths for every |
|
get_preferred_width |
r |
Calculates the minimum and natural width of the areas cells with the current attributes applied while considering the particular layouting details of the said |
|
get_preferred_width_for_height |
r |
Calculates the minimum and natural width for the area if the passed context would be allocated the given height. The same as |
|
get_request_mode |
r |
This allows an area to tell its layouting widget whether it prefers to be allocated in |
|
is_activatable |
r |
Returns whether the |
|
parent_class |
r |
||
remove |
r |
removes a |
|
render |
r |
Actually render the area’s cells to the specified rectangle, background_area should be correctly distributed to the cells corresponding background areas. |
|
set_cell_property |
r |
This should be implemented to handle changes in child cell properties for a given |
Methods¶
|
|
|
|
Details¶
- class Gtk.CellAreaClass¶
- find_cell_property(property_name)[source]¶
- Parameters:
property_name (
str
) – the name of the child property to find- Returns:
the
GObject.ParamSpec
of the child property orNone
if self has no child property with that name.- Return type:
Finds a cell property of a cell area class by name.
New in version 3.0.
- install_cell_property(property_id, pspec)[source]¶
- Parameters:
property_id (
int
) – the id for the propertypspec (
GObject.ParamSpec
) – theGObject.ParamSpec
for the property
Installs a cell property on a cell area class.
New in version 3.0.
- list_cell_properties()[source]¶
- Returns:
a newly allocated
None
-terminated array ofGObject.ParamSpec
. The array must be freed withGLib.free
().- Return type:
Returns all cell properties of a cell area class.
New in version 3.0.