euporie.core.widgets.toc
Define a table-of-contents display widget.
Functions
|
Typed version of namedtuple. |
|
Get the current active (running) Application. |
|
Wrap a single paragraph of text, returning a list of wrapped lines. |
Classes
|
Draw a border around any container. |
|
Control for visualizing the content of a |
|
A dropdown widget, allowing selection of an item from a menu of options. |
|
Fast, lightweight cache which keeps at most size items. |
|
Several layouts, one stacked above/under the other. |
|
A container which renders a stand-alone margin. |
|
|
|
|
|
|
|
Margin displaying a scrollbar. |
|
State of the current selection. |
|
Thread safe version of :py:`SimpleCache`. |
A table of contents widget, which allows switching between TOC types. |
|
|
A control to render the current tab's table of contents. |
|
Entry for tab table of contents. |
|
Content generated by a user control. |
Base class for all user interface controls. |
|
|
Several layouts, one stacked left/right of the other. |
|
Mapping class that references keys weakly. |
|
Container that holds a control. |
- class euporie.core.widgets.toc.TableOfContents
Bases:
objectA table of contents widget, which allows switching between TOC types.
- class euporie.core.widgets.toc.TocControl(kind: str = 'contents')
Bases:
UIControlA control to render the current tab’s table of contents.
Get list of current windows
store buffer -> window map
Retrieve entries for each buffer from entry cache
When buffer content changes, update entry list in cache
- get_key_bindings() KeyBindingsBase | None
Key bindings that are specific for this user control.
- mouse_handler(mouse_event: MouseEvent) NotImplementedOrNone
Handle mouse events.
- class euporie.core.widgets.toc.TocEntry(level: int, text: str, token: str, lines: slice, window: Window)
Bases:
NamedTupleEntry for tab table of contents.
- count(value, /)
Return number of occurrences of value.
- index(value, start=0, stop=9223372036854775807, /)
Return first index of value.
Raises ValueError if the value is not present.