tessella package
Subpackages
- tessella.observer package
- tessella.overlay package
- Submodules
- tessella.overlay.overlay_manager module
OverlayManagerOverlayManager._overlaysOverlayManager._in_render_cycleOverlayManager._processing_eventOverlayManager._active_rendersOverlayManager._root_constraintsOverlayManager.set_root_constraints()OverlayManager.get_root_constraints()OverlayManager.start_render()OverlayManager.end_render()OverlayManager.add_widget()OverlayManager.process_event()OverlayManager.remove_widget()OverlayManager.render()
- tessella.widgets package
- Subpackages
- tessella.widgets.style package
- Submodules
- tessella.widgets.style.border_radius module
- tessella.widgets.style.border_style module
- tessella.widgets.style.button_style module
- tessella.widgets.style.checkbox_style module
- tessella.widgets.style.container_style module
- tessella.widgets.style.dropdown_style module
- tessella.widgets.style.font_style module
- tessella.widgets.style.palette module
- tessella.widgets.style.radio_style module
- tessella.widgets.style.slider_style module
- tessella.widgets.style.switch_style module
- tessella.widgets.style.text_style module
- tessella.widgets.style.text_field_style module
- tessella.widgets.style.text_wrap_style module
- tessella.widgets.style package
- Submodules
- tessella.widgets.align module
- tessella.widgets.button module
- tessella.widgets.center module
- tessella.widgets.checkbox module
- tessella.widgets.column module
- tessella.widgets.container module
- tessella.widgets.dropdown module
DropdownItemDropdownStateDropdownDropdown.itemsDropdown._widthDropdown._heightDropdown.overlayDropdown.keysDropdown.main_keyDropdown.styleDropdown.create_state()Dropdown.open_or_close()Dropdown.on_entry_hover()Dropdown.on_hover_start()Dropdown.on_hover_end()Dropdown.calculate_size()Dropdown.on_click_outside()Dropdown.build_overlay()Dropdown.set_position()Dropdown.on_entry_selected()Dropdown.build()
- tessella.widgets.enums module
- tessella.widgets.flexible module
- tessella.widgets.gesture_detector module
GestureDetectorStateGestureDetectorGestureDetector.on_clickGestureDetector.on_hover_startGestureDetector.on_hover_endGestureDetector.on_click_outsideGestureDetector.on_drag_startGestureDetector.on_draggingGestureDetector.on_drag_endGestureDetector.childGestureDetector.create_state()GestureDetector.build()GestureDetector.process_event()
- tessella.widgets.image module
- tessella.widgets.listener module
- tessella.widgets.multi_child_widget module
- tessella.widgets.overlay module
- tessella.widgets.padding module
- tessella.widgets.placeholder module
- tessella.widgets.positioned module
- tessella.widgets.radio module
- tessella.widgets.row module
- tessella.widgets.scrollable module
- tessella.widgets.single_child_widget module
- tessella.widgets.sized_box module
- tessella.widgets.slider module
- tessella.widgets.stack module
- tessella.widgets.stateful_widget module
WidgetKeyWidgetStateStatefulWidgetStatefulWidget.class.__state_registryStatefulWidget.keyStatefulWidget._childStatefulWidget.stateStatefulWidget.get_state()StatefulWidget.create_state()StatefulWidget.childStatefulWidget.invalidate_child()StatefulWidget.calculate_size()StatefulWidget.depends_on_parent_size()StatefulWidget.depends_on_child_size()
- tessella.widgets.stateless_widget module
- tessella.widgets.switch module
- tessella.widgets.text module
- tessella.widgets.text_field module
- tessella.widgets.text_wrap module
- tessella.widgets.widget module
WidgetWidget.boundsWidget.surfaceWidget.contraintsWidget.flex_factorWidget.__is_drawnWidget.__is_laidWidget.in_update_cycleWidget.parentWidget.bitmaskWidget.get_bitmask()Widget.collidepoint()Widget.request_redraw()Widget.is_drawn()Widget.mark_as_drawn()Widget.request_relayout()Widget.is_laid()Widget.mark_as_laid()Widget.build()Widget.calculate_layout()Widget.process_event()Widget.update()Widget.render()Widget.dispose()Widget.set_position()Widget.apply_layout_constraints()Widget.get_bounds()Widget.calculate_size()Widget.depends_on_parent_size()
- Subpackages
Submodules
tessella.constraints module
- class tessella.constraints.WidgetConstraints(position_x=0, position_y=0, min_width=0, min_height=0, max_width=0, max_height=0)[source]
Bases:
objectDescribes the layout constraints passed down from a parent widget to its child during the layout pass, bounding the position and the minimum/maximum size a widget is allowed to take.
- Parameters:
position_x (int)
position_y (int)
min_width (int)
min_height (int)
max_width (int)
max_height (int)
- position_x
The X coordinate available to the widget, in pixels.
- Type:
int
- position_y
The Y coordinate available to the widget, in pixels.
- Type:
int
- min_width
The minimum width the widget is allowed to take, in pixels.
- Type:
int
- min_height
The minimum height the widget is allowed to take, in pixels.
- Type:
int
- max_width
The maximum width the widget is allowed to take, in pixels.
- Type:
int
- max_height
The maximum height the widget is allowed to take, in pixels.
- Type:
int
- rect
The rect described by position_x, position_y, max_width and max_height.
- Type:
pygame.Rect
- classmethod from_rect(rect)[source]
A constructor for this class which derives the constraints from a pygame.Rect, using its position as the origin and its size as the maximum bounds, with no minimum size.
- Parameters:
rect (pygame.Rect) – The rect to derive the constraints from.
- Returns:
A new WidgetConstraints instance.
- Return type:
tessella.offset_surface module
- class tessella.offset_surface.OffsetSurface(offset, size, flags=0)[source]
Bases:
SurfaceA pygame.Surface that translates every blit destination by a fixed offset, allowing content to be drawn using coordinates relative to a point other than the surface’s own origin.
- Parameters:
offset (Vector2)
size (tuple[int, int])
flags (int)
- offset
The offset subtracted from every blit destination.
- Type:
pygame.Vector2
- blit(source, dest, area=None, special_flags=0)[source]
Draws source onto this surface at dest, after subtracting offset from it.
- Parameters:
source (pygame.Surface) – The surface to draw.
dest (tuple[int, int]) – The destination coordinates, before the offset is applied.
area (pygame.Rect | None) – The portion of source to draw. Draws the whole surface if None. Defaults to None.
special_flags (int) – The pygame.Surface special flags to blit with. Defaults to 0.