Endless.FlexyGrid¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10)
- Structs:
Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class |
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w |
The minimum size of each cell |
||
r/w |
The spacing between each cell |
Style Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Endless.FlexyGrid(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
This structure contains no public members.
Deprecated since version 0.2: Use a
Gtk.Grid
instead- classmethod new()¶
- Returns:
the newly created
Endless.FlexyGrid
widget- Return type:
Creates a new
Endless.FlexyGrid
widget.Deprecated since version 0.2: Use a
Gtk.Grid
instead
- get_cell_at_coords(x_pos, y_pos)¶
- Parameters:
- Returns:
the cell at the given coordinates, or
None
- Return type:
Retrieves the
Endless.FlexyGridCell
at the given coordinates.The coordinates to test must be in widget-relative space.
Deprecated since version 0.2: Use a
Gtk.Grid
instead
- get_cell_size()¶
- Returns:
the size of the cells
- Return type:
Retrieves the size of the cells of self.
Deprecated since version 0.2: Use a
Gtk.Grid
instead
- get_cell_spacing()¶
- Returns:
the spacing between each cell
- Return type:
Retrieves the cell spacing of self.
Deprecated since version 0.2: Use a
Gtk.Grid
instead
- insert(child, index_)¶
- Parameters:
child (
Gtk.Widget
) – aGtk.Widget
index (
int
) – the position of the child
Inserts child inside self, at the given index_. If child is not a
Endless.FlexyGridCell
widget, one will be implicitly created, and child added to it.If self has a sort function, the index_ is ignored.
If index_ is less than 0, the child is appended at the end of the grid.
If index_ is 0, the child is prepended at the beginning of the grid.
Deprecated since version 0.2: Use a
Gtk.Grid
instead
- set_cell_size(size)¶
- Parameters:
size (
int
) – the size of the cell
Sets the size of the cells of self.
If size is less than 0, the default size will be used.
Deprecated since version 0.2: Use a
Gtk.Grid
instead
- set_cell_spacing(spacing)¶
- Parameters:
spacing (
int
) – the spacing between each cell
Sets the spacing between each cell of self.
If spacing is less than 0, the default value will be used.
Deprecated since version 0.2: Use a
Gtk.Grid
instead
- set_sort_func(sort_func, *data)¶
- Parameters:
sort_func (
Endless.FlexyGridSortFunc
orNone
) – a sorting function, orNone
to unset an existing onedata (
object
orNone
) – data to pass to sort_func and notify
Sets the sorting function for self.
The sort_func function compares two children of self, and must return -1 if the first child should precede the second; 1, if the first child should follow the second; or 0, if the children are identical.
The notify function will be called when this function is called with a different sort_func (or
None
); or when the self widget is destroyed.Deprecated since version 0.2: Use a
Gtk.Grid
instead
- do_cell_activated(cell) virtual¶
- Parameters:
cell (
Endless.FlexyGridCell
) –
- do_cell_selected(cell) virtual¶
- Parameters:
cell (
Endless.FlexyGridCell
) –
Signal Details¶
- Endless.FlexyGrid.signals.cell_activated(flexy_grid, cell)¶
- Signal Name:
cell-activated
- Flags:
- Parameters:
flexy_grid (
Endless.FlexyGrid
) – The object which received the signalcell (
Endless.FlexyGridCell
) – theEndless.FlexyGridCell
that was activated
The
::cell-activated
signal is emitted each time a cell inside grid is activated. Activation happens by clicking on a cell.Deprecated since version 0.2: Use a
Gtk.Grid
instead
- Endless.FlexyGrid.signals.cell_selected(flexy_grid, cell)¶
- Signal Name:
cell-selected
- Flags:
- Parameters:
flexy_grid (
Endless.FlexyGrid
) – The object which received the signalcell (
Endless.FlexyGridCell
) – theEndless.FlexyGridCell
that was selected
The
::cell-selected
signal is emitted each time a cell inside grid is selected. Selection happens by hovering on a cell.Deprecated since version 0.2: Use a
Gtk.Grid
instead
Property Details¶
- Endless.FlexyGrid.props.cell_size¶
-
The minimum size of each cell inside a
Endless.FlexyGrid
, or -1 for the default.Deprecated since version 0.2: Use a
Gtk.Grid
instead