S or /

SourceClass LabelSelectionState

from egui import LabelSelectionState
class LabelSelectionState:

Handles text selection in labels (NOT in egui.TextEdit)s.

Each viewport has its own state, because viewports are rendered in separate passes.

Methods§

Sourcedef clear_selection(self, /) -> None§

Clear all label text selections in all viewports.

@staticmethod def default() -> LabelSelectionState§
Sourcedef has_selection(self, /) -> bool§

Is there a label text selection in any viewport?

@staticmethod def load(ctx: Context) -> LabelSelectionState§
def store(self, /, ctx: Context) -> None§