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
.}
proc `items =`*(self: ItemList; val: Array) {.
gcsafe, locks: 0
.}
proc selectMode*(self: ItemList): int64 {.
gcsafe, locks: 0
.}
proc `selectMode =`*(self: ItemList; val: int64) {.
gcsafe, locks: 0
.}
proc allowRmbSelect*(self: ItemList): bool {.
gcsafe, locks: 0
.}
proc `allowRmbSelect =`*(self: ItemList; val: bool) {.
gcsafe, locks: 0
.}
proc maxTextLines*(self: ItemList): int64 {.
gcsafe, locks: 0
.}
proc `maxTextLines =`*(self: ItemList; val: int64) {.
gcsafe, locks: 0
.}
proc autoHeight*(self: ItemList): bool {.
gcsafe, locks: 0
.}
proc `autoHeight =`*(self: ItemList; val: bool) {.
gcsafe, locks: 0
.}
proc maxColumns*(self: ItemList): int64 {.
gcsafe, locks: 0
.}
proc `maxColumns =`*(self: ItemList; val: int64) {.
gcsafe, locks: 0
.}
proc sameColumnWidth*(self: ItemList): bool {.
gcsafe, locks: 0
.}
proc `sameColumnWidth =`*(self: ItemList; val: bool) {.
gcsafe, locks: 0
.}
proc fixedColumnWidth*(self: ItemList): int64 {.
gcsafe, locks: 0
.}
proc `fixedColumnWidth =`*(self: ItemList; val: int64) {.
gcsafe, locks: 0
.}
proc iconMode*(self: ItemList): int64 {.
gcsafe, locks: 0
.}
proc `iconMode =`*(self: ItemList; val: int64) {.
gcsafe, locks: 0
.}
proc iconScale*(self: ItemList): float64 {.
gcsafe, locks: 0
.}
proc `iconScale =`*(self: ItemList; val: float64) {.
gcsafe, locks: 0
.}
proc addItem*(self: ItemList; text: string; icon: Texture = nil; selectable: bool = true) {.
gcsafe, locks: 0
.}
proc addIconItem*(self: ItemList; icon: Texture; selectable: bool = true) {.
gcsafe, locks: 0
.}
proc setItemText*(self: ItemList; idx: int64; text: string) {.
gcsafe, locks: 0
.}
proc getItemText*(self: ItemList; idx: int64): string {.
gcsafe, locks: 0
.}
proc setItemIcon*(self: ItemList; idx: int64; icon: Texture) {.
gcsafe, locks: 0
.}
proc getItemIcon*(self: ItemList; idx: int64): Texture {.
gcsafe, locks: 0
.}
proc setItemIconRegion*(self: ItemList; idx: int64; rect: Rect2) {.
gcsafe, locks: 0
.}
proc getItemIconRegion*(self: ItemList; idx: int64): Rect2 {.
gcsafe, locks: 0
.}
proc setItemSelectable*(self: ItemList; idx: int64; selectable: bool) {.
gcsafe, locks: 0
.}
proc isItemSelectable*(self: ItemList; idx: int64): bool {.
gcsafe, locks: 0
.}
proc setItemDisabled*(self: ItemList; idx: int64; disabled: bool) {.
gcsafe, locks: 0
.}
proc isItemDisabled*(self: ItemList; idx: int64): bool {.
gcsafe, locks: 0
.}
proc setItemMetadata*(self: ItemList; idx: int64; metadata: Variant) {.
gcsafe, locks: 0
.}
proc getItemMetadata*(self: ItemList; idx: int64): Variant {.
gcsafe, locks: 0
.}
proc setItemCustomBgColor*(self: ItemList; idx: int64; customBgColor: Color) {.
gcsafe, locks: 0
.}
proc getItemCustomBgColor*(self: ItemList; idx: int64): Color {.
gcsafe, locks: 0
.}
proc setItemTooltipEnabled*(self: ItemList; idx: int64; enable: bool) {.
gcsafe, locks: 0
.}
proc isItemTooltipEnabled*(self: ItemList; idx: int64): bool {.
gcsafe, locks: 0
.}
proc setItemTooltip*(self: ItemList; idx: int64; tooltip: string) {.
gcsafe, locks: 0
.}
proc getItemTooltip*(self: ItemList; idx: int64): string {.
gcsafe, locks: 0
.}
proc select*(self: ItemList; idx: int64; single: bool = true) {.
gcsafe, locks: 0
.}
proc unselect*(self: ItemList; idx: int64) {.
gcsafe, locks: 0
.}
proc isSelected*(self: ItemList; idx: int64): bool {.
gcsafe, locks: 0
.}
proc getSelectedItems*(self: ItemList): PoolIntArray {.
gcsafe, locks: 0
.}
proc getItemCount*(self: ItemList): int64 {.
gcsafe, locks: 0
.}
proc removeItem*(self: ItemList; idx: int64) {.
gcsafe, locks: 0
.}
proc clear*(self: ItemList) {.
gcsafe, locks: 0
.}
proc sortItemsByText*(self: ItemList) {.
gcsafe, locks: 0
.}
proc setFixedIconSize*(self: ItemList; size: Vector2) {.
gcsafe, locks: 0
.}
proc getFixedIconSize*(self: ItemList): Vector2 {.
gcsafe, locks: 0
.}
proc getItemAtPos*(self: ItemList; pos: Vector2; exact: bool = false): int64 {.
gcsafe, locks: 0
.}
proc ensureCurrentIsVisible*(self: ItemList) {.
gcsafe, locks: 0
.}
proc getVScroll*(self: ItemList): VScrollBar {.
gcsafe, locks: 0
.}

Methods

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