glooey.drawing.artists.Tile¶
- class glooey.drawing.artists.Tile(rect, image, *, htile=False, vtile=False, blend_src=770, blend_dest=771, batch=None, group=None, usage='static', hidden=False)[source]¶
Bases:
glooey.drawing.artists.Artist
Public Properties
Public Methods:
__init__
(rect, image, *[, htile, vtile, ...])get_rect
()set_rect
(new_rect)Call this method to update the tile after you've made an in-place change to its rectangle.
set_image
(new_image[, htile, vtile])set_htile
(new_htile)set_vtile
(new_vtile)set_blend_src
(new_blend_src)set_blend_dest
(new_blend_dest)Inherited from
Artist
__init__
(rect, image, *[, htile, vtile, ...])set_batch
(new_batch)set_group
(new_group)get_mode
()hide
()show
()Inherited from
HoldUpdatesMixin
__init__
(rect, image, *[, htile, vtile, ...])Private Methods:
_group_factory
(parent)Inherited from
Artist
_group_factory
(parent)Inherited from
HoldUpdatesMixin
Return all the updates that need to be applied, from a list of all the updates that were called while the hold was active.
- __annotations__ = {}¶
- __dict__ = mappingproxy({'__module__': 'glooey.drawing.artists', '__init__': <function Tile.__init__>, 'get_rect': <function Tile.get_rect>, 'set_rect': <function Tile.set_rect>, 'update_rect': <function Tile.update_rect>, 'get_image': <function Tile.get_image>, 'set_image': <function Tile.set_image>, 'get_htile': <function Tile.get_htile>, 'set_htile': <function Tile.set_htile>, 'get_vtile': <function Tile.get_vtile>, 'set_vtile': <function Tile.set_vtile>, 'get_blend_src': <function Tile.get_blend_src>, 'set_blend_src': <function Tile.set_blend_src>, 'get_blend_dest': <function Tile.get_blend_dest>, 'set_blend_dest': <function Tile.set_blend_dest>, '_update_vertex_list': <function Tile._update_vertex_list>, '_group_factory': <function Tile._group_factory>, '__doc__': None, 'rect': <property object>, 'image': <property object>, 'htile': <property object>, 'vtile': <property object>, 'blend_src': <property object>, 'blend_dest': <property object>, '__annotations__': {}})¶
- __init__(rect, image, *, htile=False, vtile=False, blend_src=770, blend_dest=771, batch=None, group=None, usage='static', hidden=False)[source]¶
- __module__ = 'glooey.drawing.artists'¶
- __weakref__¶
list of weak references to the object (if defined)
- _create_vertex_list()¶
- _filter_pending_updates()¶
Return all the updates that need to be applied, from a list of all the updates that were called while the hold was active. This method is meant to be overridden by subclasses that want to customize how held updates are applied.
The
self._pending_updates
member variable is a list containing a (method, args, kwargs) tuple for each update that was called while updates were being held. This list is in the order that the updates were actually called, and any updates that were called more than once will appear in this list more than once.This method should yield or return a list of the tuples in the same format representing the updates that should be applied, in the order they should be applied. The default implementation filters out duplicate updates without changing their order. In cases where it matters, the last call to each update is used to determine the order.
- _update_group()¶
- property batch¶
- property blend_dest¶
- property blend_src¶
- property count¶
- discard_updates()¶
- get_batch()¶
- get_count()¶
- get_group()¶
- get_mode()¶
- get_vertex_list()¶
- property group¶
- hide()¶
- hold_updates()¶
- property htile¶
- property image¶
- property mode¶
- pause_updates()¶
- property rect¶
- resume_updates()¶
- set_batch(new_batch)¶
- set_group(new_group)¶
- show()¶
- suppress_updates()¶
- update_rect()[source]¶
Call this method to update the tile after you’ve made an in-place change to its rectangle.
- property vertex_list¶
- property vtile¶