euporie.core.layout.controls
Miscellaneous control fields.
Classes
A dummy control object that doesn't paint any content. |
|
A dummy control object that doesn't paint any content. |
|
|
Content generated by a user control. |
Base class for all user interface controls. |
- class euporie.core.layout.controls.DummyControl
Bases:
UIControl
A dummy control object that doesn’t paint any content.
- get_invalidate_events() Iterable[Event[object]]
Return a list of Event objects. This can be a generator. (The application collects all these events, in order to bind redraw handlers to these events.)
- get_key_bindings() KeyBindingsBase | None
The key bindings that are specific for this user control.
Return a
KeyBindings
object if some key bindings are specified, or None otherwise.
- mouse_handler(mouse_event: MouseEvent) NotImplementedOrNone
Handle mouse events.
When NotImplemented is returned, it means that the given event is not handled by the UIControl itself. The Window or key bindings can decide to handle this event as scrolling or changing focus.
- Parameters:
mouse_event – MouseEvent instance.
- move_cursor_down() None
Request to move the cursor down. This happens when scrolling down and the cursor is completely at the top.
- class euporie.core.layout.controls.FocusableDummyControl
Bases:
DummyControl
A dummy control object that doesn’t paint any content.
- get_invalidate_events() Iterable[Event[object]]
Return a list of Event objects. This can be a generator. (The application collects all these events, in order to bind redraw handlers to these events.)
- get_key_bindings() KeyBindingsBase | None
The key bindings that are specific for this user control.
Return a
KeyBindings
object if some key bindings are specified, or None otherwise.
- mouse_handler(mouse_event: MouseEvent) NotImplementedOrNone
Handle mouse events.
When NotImplemented is returned, it means that the given event is not handled by the UIControl itself. The Window or key bindings can decide to handle this event as scrolling or changing focus.
- Parameters:
mouse_event – MouseEvent instance.
- move_cursor_down() None
Request to move the cursor down. This happens when scrolling down and the cursor is completely at the top.