nodesnim/nodescontrol/popup

    Dark Mode
Search:
Group by:

By default popup visibility is false. Popup, unlike other nodes, changes children visibility when calling show() and hide().

Procs

proc Popup(name: string = "Popup"): PopupRef {...}{.raises: [], tags: [].}

Creates a new Popup.

Arguments:

  • name is a node name.

Example:

var p = Popup("Popup")

Methods

method hide(self: PopupRef) {...}{.raises: [Exception], tags: [RootEffect].}
Hides popup.
method show(self: PopupRef) {...}{.raises: [Exception], tags: [RootEffect].}
Shws popup.
method toggle(self: PopupRef) {...}{.base, raises: [Exception], tags: [RootEffect].}
method calcPositionAnchor(self: PopupRef) {...}{.raises: [Exception],
    tags: [RootEffect].}
This uses in the scene.nim.
method duplicate(self: PopupRef): PopupRef {...}{.base, raises: [], tags: [].}
Duplicates Popup object and create a new Popup.