nodesnim/nodescontrol/popup

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

Procs

proc Popup(name: string; variable: var PopupObj): PopupPtr {...}{.raises: [], tags: [].}

Creates a new Popup pointer.

Arguments:

  • name is a node name.
  • variable is a PopupObj variable.

Examples:

var
  pobj: PopupObj
  p = Popup("Popup", pobj)
proc Popup(obj: var PopupObj): PopupPtr {...}{.inline, raises: [], tags: [].}

Creates a new Popup pointer with default node name "Popup".

Arguments:

  • variable is a PopupObj variable.

Examples:

var
  pobj: PopupObj
  p = Popup(pobj)

Methods

method hide(self: PopupPtr) {...}{.raises: [Exception], tags: [RootEffect].}
Hides popup.
method show(self: PopupPtr) {...}{.raises: [Exception], tags: [RootEffect].}
Shws popup.
method calcPositionAnchor(self: PopupPtr) {...}{.raises: [Exception], tags: [RootEffect].}
This uses in the scene.nim.
method draw(self: PopupPtr; w, h: GLfloat) {...}{.raises: [GLerror, Exception],
                                       tags: [RootEffect].}
This uses in the window.nim.
method duplicate(self: PopupPtr; obj: var PopupObj): PopupPtr {...}{.base, raises: [], tags: [].}
Duplicates Popup object and create a new Popup pointer.