Bitbybit Docs
    Preparing search index...

    Class CreateStackPanelDto (Inputs.BabylonGui)

    Feeds babylon.gui.stackPanel.createStackPanel: the name, direction, spacing, optional sizes and colors of a panel that lines its children up.

    Index

    Constructors

    • Parameters

      • Optionalname: string
      • OptionalisVertical: boolean
      • Optionalspacing: number
      • Optionalwidth: string | number
      • Optionalheight: string | number
      • Optionalcolor: string
      • Optionalbackground: string

      Returns CreateStackPanelDto

    Properties

    name: string

    Name the panel is known by, which control.getControlByName finds it by

    stackPanel
    
    isVertical: boolean

    When true, children stack top to bottom; when false, left to right

    true
    
    spacing: number

    Gap between neighboring children, in pixels

    0
    
    width?: string | number

    Width as a pixel string or a fraction; give it for a vertical panel and leave it out for a horizontal one, which sizes from its children

    undefined
    

    true

    height?: string | number

    Height as a pixel string or a fraction; give it for a horizontal panel and leave it out for a vertical one, which sizes from its children

    undefined
    

    true

    color: string

    CSS color of the panel's text and border; the default is fully transparent

    #00000000
    
    background: string

    CSS color behind the children; the default is a translucent black so the panel can be seen

    #00000055