Endless.FlexyGrid

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget Endless.FlexyGrid Endless.FlexyGrid GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Endless.FlexyGrid Gtk.Widget->Gtk.Container

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

new ()

get_cell_at_coords (x_pos, y_pos)

get_cell_size ()

get_cell_spacing ()

insert (child, index_)

set_cell_size (size)

set_cell_spacing (spacing)

set_sort_func (sort_func, *data)

Virtual Methods

Inherited:

Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

do_cell_activated (cell)

do_cell_selected (cell)

Properties

Inherited:

Gtk.Container (3), Gtk.Widget (39)

Name

Type

Flags

Short Description

cell-size

int

r/w

The minimum size of each cell deprecated

cell-spacing

int

r/w

The spacing between each cell deprecated

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Short Description

cell-activated

The ::cell-activated signal is emitted each time a cell inside grid is activated. deprecated

cell-selected

The ::cell-selected signal is emitted each time a cell inside grid is selected. deprecated

Fields

Inherited:

Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Type

Access

Description

parent_instance

Gtk.Container

r

Class Details

class Endless.FlexyGrid(**kwargs)
Bases:

Gtk.Container

Abstract:

No

Structure:

Endless.FlexyGridClass

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:

Gtk.Widget

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:
  • x_pos (float) – X coordinate to test, in widget-relative space

  • y_pos (float) – Y coordinate to test, in widget-relative space

Returns:

the cell at the given coordinates, or None

Return type:

Endless.FlexyGridCell

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:

int

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:

int

Retrieves the cell spacing of self.

Deprecated since version 0.2: Use a Gtk.Grid instead

insert(child, index_)
Parameters:

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:

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:

RUN_LAST

Parameters:

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:

RUN_LAST

Parameters:

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
Name:

cell-size

Type:

int

Default Value:

-1

Flags:

READABLE, WRITABLE

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

Endless.FlexyGrid.props.cell_spacing
Name:

cell-spacing

Type:

int

Default Value:

-1

Flags:

READABLE, WRITABLE

The spacing between each cell inside a Endless.FlexyGrid, or -1 for the default.

Deprecated since version 0.2: Use a Gtk.Grid instead