Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • BabylonGuiControl

Index

Constructors

constructor

  • Parameters

    • context: Context

    Returns BabylonGuiControl

Methods

changeControlAlignment

  • changeControlAlignment(inputs: AlignmentDto<Control>): Control
  • Change the alignment for the control

    group

    positioning

    shortname

    change alignment

    Parameters

    • inputs: AlignmentDto<Control>

      the control and the alignment values

    Returns Control

    control that has changed alignment

changeControlPadding

  • Change the padding for the control

    group

    positioning

    shortname

    change padding

    Parameters

    Returns Control

    control that has changed padding

cloneControl

  • Clone control

    group

    create

    shortname

    clone control

    disposableoutput

    true

    Parameters

    Returns Control

    cloned control

createControlObservableSelector

getColor

  • Gets the color

    group

    get

    shortname

    get control color

    Parameters

    Returns string

getControlByName

  • Get control by name

    group

    get

    shortname

    get control by name

    Parameters

    Returns Control

    control with the name

getFontSize

  • getFontSize(inputs: ControlDto): string | number
  • Get control font size

    group

    get

    shortname

    get control font size

    Parameters

    Returns string | number

    control font size. Can be in the form of a string "24px" or a number

getHeight

  • Gets the height

    group

    get

    shortname

    get control height

    Parameters

    Returns string | number

getIsEnabled

  • Get control is enabled

    group

    get

    shortname

    get control is enabled

    Parameters

    Returns boolean

    control enabled

getIsReadonly

  • Get control is readonly

    group

    get

    shortname

    get control is readonly

    Parameters

    Returns boolean

    control readonly

getIsVisible

  • Get control is visible

    group

    get

    shortname

    get control is visible

    Parameters

    Returns boolean

    control visibility

getWidth

  • Gets the width

    group

    get

    shortname

    get control width

    Parameters

    Returns string | number

setColor

  • Sets the control color

    group

    set

    shortname

    set control color

    Parameters

    Returns Control

setFontSize

  • Set font size

    group

    set

    shortname

    set control font size

    Parameters

    Returns Control

    control with changed font size

setHeight

  • Sets the control height

    group

    set

    shortname

    set control height

    Parameters

    Returns Control

setIsEnabled

  • Set if control is enabled

    group

    set

    shortname

    set control is enabled

    Parameters

    Returns Control

    control with changed enabled

setIsReadonly

  • Set if control is readonly

    group

    set

    shortname

    set control is readonly

    Parameters

    Returns Control

    control with changed readonly

setIsVisible

  • Set if control is visible

    group

    set

    shortname

    set control is visible

    Parameters

    Returns Control

    control with changed visibility

setWidth

  • Sets the control width

    group

    set

    shortname

    set control width

    Parameters

    Returns Control

Generated using TypeDoc