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.Gridinstead- classmethod new()¶
- Returns:
the newly created
Endless.FlexyGridwidget- Return type:
Creates a new
Endless.FlexyGridwidget.Deprecated since version 0.2: Use a
Gtk.Gridinstead
- get_cell_at_coords(x_pos, y_pos)¶
- Parameters:
- Returns:
the cell at the given coordinates, or
None- Return type:
Retrieves the
Endless.FlexyGridCellat the given coordinates.The coordinates to test must be in widget-relative space.
Deprecated since version 0.2: Use a
Gtk.Gridinstead
- 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.Gridinstead
- 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.Gridinstead
- insert(child, index_)¶
- Parameters:
child (
Gtk.Widget) – aGtk.Widgetindex (
int) – the position of the child
Inserts child inside self, at the given index_. If child is not a
Endless.FlexyGridCellwidget, 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.Gridinstead
- 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.Gridinstead
- 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.Gridinstead
- set_sort_func(sort_func, *data)¶
- Parameters:
sort_func (
Endless.FlexyGridSortFuncorNone) – a sorting function, orNoneto unset an existing onedata (
objectorNone) – 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.Gridinstead
- 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.FlexyGridCellthat was activated
The
::cell-activatedsignal 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.Gridinstead
- 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.FlexyGridCellthat was selected
The
::cell-selectedsignal 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.Gridinstead
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.Gridinstead