Module item_list

Consts

ICON_MODE_TOP = 0'i64
ICON_MODE_LEFT = 1'i64
SELECT_SINGLE = 0'i64
SELECT_MULTI = 1'i64

Procs

proc items(self: ItemList): Array {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc items=(self: ItemList; val: Array) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc selectMode(self: ItemList): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc selectMode=(self: ItemList; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc allowReselect(self: ItemList): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc allowReselect=(self: ItemList; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc allowRmbSelect(self: ItemList): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc allowRmbSelect=(self: ItemList; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc maxTextLines(self: ItemList): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc maxTextLines=(self: ItemList; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc autoHeight(self: ItemList): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc autoHeight=(self: ItemList; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc maxColumns(self: ItemList): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc maxColumns=(self: ItemList; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc sameColumnWidth(self: ItemList): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc sameColumnWidth=(self: ItemList; val: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc fixedColumnWidth(self: ItemList): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc fixedColumnWidth=(self: ItemList; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc iconMode(self: ItemList): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc iconMode=(self: ItemList; val: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc iconScale(self: ItemList): float64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc iconScale=(self: ItemList; val: float64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc fixedIconSize(self: ItemList): Vector2 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc fixedIconSize=(self: ItemList; val: Vector2) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc addItem(self: ItemList; text: string; icon: Texture = nil; selectable: bool = true) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc addIconItem(self: ItemList; icon: Texture; selectable: bool = true) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setItemText(self: ItemList; idx: int64; text: string) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getItemText(self: ItemList; idx: int64): string {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setItemIcon(self: ItemList; idx: int64; icon: Texture) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getItemIcon(self: ItemList; idx: int64): Texture {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc setItemIconRegion(self: ItemList; idx: int64; rect: Rect2) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getItemIconRegion(self: ItemList; idx: int64): Rect2 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setItemIconModulate(self: ItemList; idx: int64; modulate: Color) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getItemIconModulate(self: ItemList; idx: int64): Color {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setItemSelectable(self: ItemList; idx: int64; selectable: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc isItemSelectable(self: ItemList; idx: int64): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setItemDisabled(self: ItemList; idx: int64; disabled: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc isItemDisabled(self: ItemList; idx: int64): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setItemMetadata(self: ItemList; idx: int64; metadata: Variant) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getItemMetadata(self: ItemList; idx: int64): Variant {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setItemCustomBgColor(self: ItemList; idx: int64; customBgColor: Color) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getItemCustomBgColor(self: ItemList; idx: int64): Color {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setItemTooltipEnabled(self: ItemList; idx: int64; enable: bool) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc isItemTooltipEnabled(self: ItemList; idx: int64): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc setItemTooltip(self: ItemList; idx: int64; tooltip: string) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getItemTooltip(self: ItemList; idx: int64): string {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc select(self: ItemList; idx: int64; single: bool = true) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc unselect(self: ItemList; idx: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc unselectAll(self: ItemList) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc isSelected(self: ItemList; idx: int64): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getSelectedItems(self: ItemList): PoolIntArray {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}
proc moveItem(self: ItemList; fromIdx: int64; toIdx: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getItemCount(self: ItemList): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc removeItem(self: ItemList; idx: int64) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc clear(self: ItemList) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc sortItemsByText(self: ItemList) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc isAnythingSelected(self: ItemList): bool {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getItemAtPosition(self: ItemList; position: Vector2; exact: bool = false): int64 {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc ensureCurrentIsVisible(self: ItemList) {.
gcsafe, locks: 0, raises: [], tags: []
.}
proc getVScroll(self: ItemList): VScrollBar {.
gcsafe, locks: 0, raises: [Exception], tags: [RootEffect]
.}

Methods

method scrollChanged(self: ItemList; arg0: float64) {.
gcsafe, locks: 0, base, raises: [], tags: []
.}
method guiInput(self: ItemList; event: InputEvent) {.
gcsafe, locks: 0, raises: [], tags: []
.}