glooey.drawing.grid.Grid¶
- class glooey.drawing.grid.Grid(*, bounding_rect=None, min_cell_rects=None, num_rows=0, num_cols=0, padding=None, inner_padding=None, outer_padding=None, row_heights=None, col_widths=None, default_row_height='expand', default_col_width='expand')[source]¶
Bases:
object
Public Properties
Public Methods:
__init__
(*[, bounding_rect, min_cell_rects, ...])make_claim
([min_cell_rects])make_cells
([bounding_rect])find_cell_under_mouse
(x, y)get_rect
()set_bounding_rect
(new_rect)get_min_cell_rect
(i, j)set_min_cell_rect
(i, j, new_rect)del_min_cell_rect
(i, j)set_min_cell_rects
(new_rects)set_num_rows
(new_num)set_num_cols
(new_num)set_padding
(new_padding)set_inner_padding
(new_padding)set_outer_padding
(new_padding)set_row_height
(i, new_height)set_row_heights
(new_heights)set_col_width
(j, new_width)set_col_widths
(new_widths)set_default_row_height
(new_height)set_default_col_width
(new_width)Private Methods:
Find the tallest and widest cell in each dimension.
- __dict__ = mappingproxy({'__module__': 'glooey.drawing.grid', '__init__': <function Grid.__init__>, 'make_claim': <function Grid.make_claim>, 'make_cells': <function Grid.make_cells>, 'find_cell_under_mouse': <function Grid.find_cell_under_mouse>, 'get_width': <function Grid.get_width>, 'get_height': <function Grid.get_height>, 'get_rect': <function Grid.get_rect>, 'get_min_width': <function Grid.get_min_width>, 'get_min_height': <function Grid.get_min_height>, 'min_height': <property object>, 'get_min_bounding_rect': <function Grid.get_min_bounding_rect>, 'get_cell_rects': <function Grid.get_cell_rects>, 'cell_rects': <property object>, 'get_bounding_rect': <function Grid.get_bounding_rect>, 'set_bounding_rect': <function Grid.set_bounding_rect>, 'get_min_cell_rect': <function Grid.get_min_cell_rect>, 'set_min_cell_rect': <function Grid.set_min_cell_rect>, 'del_min_cell_rect': <function Grid.del_min_cell_rect>, 'get_min_cell_rects': <function Grid.get_min_cell_rects>, 'set_min_cell_rects': <function Grid.set_min_cell_rects>, 'del_min_cell_rects': <function Grid.del_min_cell_rects>, 'get_num_rows': <function Grid.get_num_rows>, 'set_num_rows': <function Grid.set_num_rows>, 'get_num_cols': <function Grid.get_num_cols>, 'set_num_cols': <function Grid.set_num_cols>, 'get_padding': <function Grid.get_padding>, 'set_padding': <function Grid.set_padding>, 'get_inner_padding': <function Grid.get_inner_padding>, 'set_inner_padding': <function Grid.set_inner_padding>, 'get_outer_padding': <function Grid.get_outer_padding>, 'set_outer_padding': <function Grid.set_outer_padding>, 'get_row_height': <function Grid.get_row_height>, 'set_row_height': <function Grid.set_row_height>, 'del_row_height': <function Grid.del_row_height>, 'get_row_heights': <function Grid.get_row_heights>, 'set_row_heights': <function Grid.set_row_heights>, 'del_row_heights': <function Grid.del_row_heights>, 'get_col_width': <function Grid.get_col_width>, 'set_col_width': <function Grid.set_col_width>, 'del_col_width': <function Grid.del_col_width>, 'get_col_widths': <function Grid.get_col_widths>, 'set_col_widths': <function Grid.set_col_widths>, 'del_col_widths': <function Grid.del_col_widths>, 'get_default_row_height': <function Grid.get_default_row_height>, 'set_default_row_height': <function Grid.set_default_row_height>, 'get_default_col_width': <function Grid.get_default_col_width>, 'set_default_col_width': <function Grid.set_default_col_width>, 'get_requested_num_rows': <function Grid.get_requested_num_rows>, 'get_requested_num_cols': <function Grid.get_requested_num_cols>, 'requested_num_cols': <property object>, 'get_requested_row_height': <function Grid.get_requested_row_height>, 'get_requested_row_heights': <function Grid.get_requested_row_heights>, 'get_requested_col_width': <function Grid.get_requested_col_width>, 'get_requested_col_widths': <function Grid.get_requested_col_widths>, '_invalidate_shape': <function Grid._invalidate_shape>, '_invalidate_claim': <function Grid._invalidate_claim>, '_invalidate_cells': <function Grid._invalidate_cells>, '_update_shape': <function Grid._update_shape>, '_update_claim': <function Grid._update_claim>, '_update_cells': <function Grid._update_cells>, '_find_num_rows': <function Grid._find_num_rows>, '_find_num_cols': <function Grid._find_num_cols>, '_find_max_cell_dimensions': <function Grid._find_max_cell_dimensions>, '_find_which_rows_expand': <function Grid._find_which_rows_expand>, '_find_which_cols_expand': <function Grid._find_which_cols_expand>, '_find_fixed_row_heights': <function Grid._find_fixed_row_heights>, '_find_fixed_col_widths': <function Grid._find_fixed_col_widths>, '_find_min_expandable_row_heights': <function Grid._find_min_expandable_row_heights>, '_find_min_expandable_col_widths': <function Grid._find_min_expandable_col_widths>, '_find_padding_height': <function Grid._find_padding_height>, '_find_padding_width': <function Grid._find_padding_width>, '_find_min_height': <function Grid._find_min_height>, '_find_min_width': <function Grid._find_min_width>, '_find_row_heights': <function Grid._find_row_heights>, '_find_col_widths': <function Grid._find_col_widths>, '_find_cell_rects': <function Grid._find_cell_rects>, '_get_requested_row_height': <function Grid._get_requested_row_height>, '_get_requested_col_width': <function Grid._get_requested_col_width>, '_get_row_padding': <function Grid._get_row_padding>, '_get_col_padding': <function Grid._get_col_padding>, '__dict__': <attribute '__dict__' of 'Grid' objects>, '__weakref__': <attribute '__weakref__' of 'Grid' objects>, '__doc__': None, 'width': <property object>, 'height': <property object>, 'rect': <property object>, 'min_width': <property object>, 'min_bounding_rect': <property object>, 'bounding_rect': <property object>, 'min_cell_rects': <property object>, 'num_rows': <property object>, 'num_cols': <property object>, 'padding': <property object>, 'inner_padding': <property object>, 'outer_padding': <property object>, 'row_heights': <property object>, 'col_widths': <property object>, 'default_row_height': <property object>, 'default_col_width': <property object>, 'requested_num_rows': <property object>, 'requested_row_heights': <property object>, 'requested_col_widths': <property object>, '__annotations__': {}})¶
- __init__(*, bounding_rect=None, min_cell_rects=None, num_rows=0, num_cols=0, padding=None, inner_padding=None, outer_padding=None, row_heights=None, col_widths=None, default_row_height='expand', default_col_width='expand')[source]¶
- __module__ = 'glooey.drawing.grid'¶
- __weakref__¶
list of weak references to the object (if defined)
- property bounding_rect¶
- property cell_rects¶
- property col_widths¶
- property default_col_width¶
- property default_row_height¶
- property height¶
- property inner_padding¶
- property min_bounding_rect¶
- property min_cell_rects¶
- property min_height¶
- property min_width¶
- property num_cols¶
- property num_rows¶
- property outer_padding¶
- property padding¶
- property rect¶
- property requested_col_widths¶
- property requested_num_cols¶
- property requested_num_rows¶
- property requested_row_heights¶
- property row_heights¶
- property width¶