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 = "YSort"): YSortPtr {...}{.raises: [], tags: [].}

Creates a new YSort pointer.

Arguments:

  • name is a node name.

Examples:

var node = YSort("YSort")

Methods

method draw(self: YSortPtr; w, h: GLfloat) {...}{.raises: [Exception], tags: [RootEffect].}
this method uses in the window.nim.
method duplicate(self: YSortPtr): YSortPtr {...}{.base, raises: [], tags: [].}
Duplicates YSort object and create a new YSort pointer.