typerig.proxy.gs3.gui.thumbnail.TRThumbGrid
TRThumbGrid
Scrolling grid of thumbnail toggle buttons.
callback : function(grid) on every selection change captions : draw ThumbItem.caption under each cell fit : shared fit box for every cell (see thumb_image)
Click selects one cell; Shift- or Cmd-click adds / removes. Cells wrap to the width and reflow when the view is resized.
Source bases
vanilla.Group(not resolved from selected source)
Complete member index
Every captured member retains its own identity. Identical captured declaration text is linked once; this does not establish native inheritance or interchangeable objects.
| Member | Kind | Signature | Summary |
|---|---|---|---|
__init__ |
function | (self, posSize, callback=None, captions=True, fit=None, size_index=None) |
|
add |
function | (self, item, select=False) |
Append one cell; select=True makes it the only selected cell. |
cell_size |
function | (self) |
|
cycle_size |
function | (self) |
|
get_selection |
function | (self) |
Selected keys, in grid order. |
item |
function | (self, key) |
|
items |
function | (self) |
|
reflow |
function | (self, to_top=False) |
Wrap the cells to the current width. |
remove |
function | (self, keys) |
|
set_fit |
function | (self, fit) |
Shared fit box for every cell (see thumb_image); None = each its own. |
set_items |
function | (self, items) |
Replace every cell. |
set_selection |
function | (self, keys) |
|
set_size_index |
function | (self, index) |
|
update_item |
function | (self, key, **changes) |
Change ThumbItem fields (source, caption, tone, ...) and redraw the cell. |