SourceClass Tooltip
from egui import Tooltipclass Tooltip:Properties§
@property
def popup(self, /) -> Popup§
Methods§
Source@staticmethod
def always_open(ctx: Context, parent_layer: LayerId, parent_widget: Id, anchor: PopupAnchor) -> Tooltip§
Show a tooltip that is always open.
Sourcedef at_pointer(self, /) -> Tooltip§
Show the tooltip at the pointer position.
Source@staticmethod
def for_disabled(response: Response) -> Tooltip§
Show a tooltip when hovering a disabled widget.
Source@staticmethod
def for_enabled(response: Response) -> Tooltip§
Show a tooltip when hovering an enabled widget.
Source@staticmethod
def for_widget(response: Response) -> Tooltip§
Show a tooltip for a widget. Always open (as long as this function is called).
Sourcedef gap(self, /, gap: float) -> Tooltip§
Set the gap between the tooltip and the anchor
Default: 5.0
Sourcedef layout(self, /, layout: Layout) -> Tooltip§
Set the layout of the tooltip
Source@staticmethod
def next_tooltip_id(ctx: Context, widget_id: Id) -> Id§
What is the id of the next tooltip for this widget?
Source@staticmethod
def seconds_since_last_tooltip(ctx: Context) -> float§
Source@staticmethod
def should_show_tooltip(response: Response, allow_interactive_tooltip: bool) -> bool§
Should we show a tooltip for this response?
Argument allow_interactive_tooltip controls whether mouse can interact with tooltip that
contains interactive widgets
Sourcedef show(self, /) -> Any§
Show the tooltip
def to_popup(self, /) -> Popup§
Source@staticmethod
def tooltip_id(widget_id: Id, tooltip_count: int) -> Id§
Source@staticmethod
def was_tooltip_open_last_frame(ctx: Context, widget_id: Id) -> bool§
Was this tooltip visible last frame?
Sourcedef width(self, /, width: float) -> Tooltip§
Set the width of the tooltip