nodesnim/nodes2d/ysort

    Dark Mode
Search:
Group by:

Sorts children by its Y position.

Types

YSortObj = object of Node2DObj
  for_all_childs*: bool
YSortRef = ref YSortObj

Procs

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

Creates a new YSort.

Arguments:

  • name is a node name.

Example:

var node = YSort("YSort")

Methods

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