nodesnim/nodes2d/ysort

    Dark Mode
Search:
Group by:

Sorts children by its Y position.

Types

YSortObj = object of Node2DObj
  for_all_childs*: bool
YSortPtr = ptr YSortObj

Procs

proc YSort(name: string; variable: var YSortObj): YSortPtr {...}{.raises: [], tags: [].}

Creates a new YSort pointer.

Arguments:

  • name is a node name.
  • variable is a YSortObj variable.

Examples:

var
  node_obj: YSortObj
  node = YSort("YSort", node_obj)
proc YSort(obj: var YSortObj): YSortPtr {...}{.inline, raises: [], tags: [].}

Creates a new YSort pointer with deffault node name "YSort".

Arguments:

  • variable is a YSortObj variable.

Examples:

var
  node_obj: YSortObj
  node = YSort(node_obj)

Methods

method draw(self: YSortPtr; w, h: GLfloat) {...}{.raises: [Exception], tags: [RootEffect].}
this method uses in the window.nim.