Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "components/toggle"

Index

Functions

Const toggle

  • toggle(gui: IMGUI, layout: IGridLayout | LayoutBox, id: string, val: boolean, square?: undefined | false | true, label?: undefined | string, info?: undefined | string): undefined | false | true
  • If square is true, the clickable area will not fill the entire cell, but only a left-aligned square of cell/row height.

    Parameters

    • gui: IMGUI

      -

    • layout: IGridLayout | LayoutBox

      -

    • id: string

      -

    • val: boolean

      -

    • Optional square: undefined | false | true

      -

    • Optional label: undefined | string

      -

    • Optional info: undefined | string

      -

    Returns undefined | false | true

Const toggleRaw

  • toggleRaw(gui: IMGUI, id: string, x: number, y: number, w: number, h: number, lx: number, val: boolean, label?: undefined | string, info?: undefined | string): undefined | false | true
  • Parameters

    • gui: IMGUI
    • id: string
    • x: number
    • y: number
    • w: number
    • h: number
    • lx: number
    • val: boolean
    • Optional label: undefined | string
    • Optional info: undefined | string

    Returns undefined | false | true

Generated using TypeDoc