xworker.libgdx.scenes.scene2d.ui.VerticalGroup
事物 VerticalGroup(VerticalGroup)点击打开事物点击浏览描述

描述者:
MetaDescriptor3
thing
继承:
WidgetGroup

A group that lays out its children on top of each other in a single column. This can be easier than using Table when actors need to be inserted in the middle of the group.

The preferred width is the largest preferred width of any child. The preferred height is the sum of the children's preferred heights. The min size is the preferred size and the max size is 0.

字段摘要
           String alignment
           Sets the horizontal alignment of the children. Default is center.
           String color
           
           String fillParent
            If true, this actor will be sized to the parent in Layout.validate().
           String height
           
           String label
           
           String layoutEnabled
           Enables or disables the layout for this actor and all child actors, recursively.
           String name
           
           String originX
           
           String originY
           
           String reverse
           If true, the children will be ordered from bottom to top rather than the default top to bottom.
           String rotation
           
           String scale
           
           String scaleX
           
           String scaleY
           
           String touchable
           
           String transform
           When true (the default), the SpriteBatch is transformed so children are drawn in their parent's coordinate system.
           String visible
           
           String width
           
           String x
           
           String y
           
           String zindex
           
 
方法摘要
           create
          
 
子事物摘要
           Actor
          
           Group
          2D scene graph node that may contain other actors.
           Image
          Displays a Drawable, scaled various way within the widgets bounds. The preferred size is the min size of the drawable. Only when using a TextureRegionDrawable will the actor's scale, rotation, and origin be used when drawing.
           Label
          A text label, with optional word wrapping.
           List
          A list (aka list box) displays textual items and highlights the currently selected item.
           ScrollPane
          A group that scrolls a child widget using scrollbars and/or mouse or touch dragging.
           Slider
          A slider is a horizontal indicator that allows a user to set a value. The slider has a range (min, max) and a stepping between each value the slider represents.
           SplitPane
          A container that contains two widgets and is divided either horizontally or vertically. The user may resize the widgets. The child widgets are always sized to fill their half of the splitpane.
           Stack
          
           Table
          A group that sizes and positions children using table constraints. By default, Actor.getTouchable() is Touchable.childrenOnly.
           TextField
          A single-line text input field.
           VerticalGroup
          A group that lays out its children on top of each other in a single column. This can be easier than using Table when actors need to be inserted in the middle of the group.
           Widget
          An Actor that participates in layout and provides a minimum, preferred, and maximum size.
           WidgetGroup
          A Group that participates in layout and provides a minimum, preferred, and maximum size.
 
字段详细信息

alignment点击打开事物

Sets the horizontal alignment of the children. Default is center.


color点击打开事物


fillParent点击打开事物

 If true, this actor will be sized to the parent in Layout.validate().


height点击打开事物


label点击打开事物


layoutEnabled点击打开事物

Enables or disables the layout for this actor and all child actors, recursively.


name点击打开事物


originX点击打开事物


originY点击打开事物


reverse点击打开事物

If true, the children will be ordered from bottom to top rather than the default top to bottom.


rotation点击打开事物


scale点击打开事物


scaleX点击打开事物


scaleY点击打开事物


touchable点击打开事物


transform点击打开事物

When true (the default), the SpriteBatch is transformed so children are drawn in their parent's coordinate system.


visible点击打开事物


width点击打开事物


x点击打开事物


y点击打开事物


zindex点击打开事物


 
方法详细信息

create


 
子事物详细信息

Actor点击打开事物


Group点击打开事物

2D scene graph node that may contain other actors.

Actors have a z-order equal to the order they were inserted into the group. Actors inserted later will be drawn on top of actors added earlier. Touch events that hit more than one actor are distributed to topmost actors first.


Image点击打开事物

Displays a Drawable, scaled various way within the widgets bounds. The preferred size is the min size of the drawable. Only when using a TextureRegionDrawable will the actor's scale, rotation, and origin be used when drawing.


Label点击打开事物

A text label, with optional word wrapping.

Unlike most scene2d.ui widgets, label can be scaled and rotated using the actor's scale, rotation, and origin. This only affects drawing, other scene2d.ui widgets will still use the unscaled and unrotated bounds of the label. Note that a scaled or rotated label causes a SpriteBatch flush when it is drawn, so should be used relatively sparingly.

The preferred size of the label is determined by the actual text bounds, unless word wrap is enabled.


List点击打开事物

A list (aka list box) displays textual items and highlights the currently selected item.

ChangeListener.ChangeEvent is fired when the list selection changes.

The preferred size of the list is determined by the text bounds of the items and the size of the List.ListStyle.selection.


ScrollPane点击打开事物

A group that scrolls a child widget using scrollbars and/or mouse or touch dragging.

The widget is sized to its preferred size. If the widget's preferred width or height is less than the size of this scroll pane, it is set to the size of this scroll pane. Scrollbars appear when the widget is larger than the scroll pane.

The scroll pane's preferred size is that of the child widget. At this size, the child widget will not need to scroll, so the scroll pane is typically sized by ignoring the preferred size in one or both directions.


Slider点击打开事物

A slider is a horizontal indicator that allows a user to set a value. The slider has a range (min, max) and a stepping between each value the slider represents.

ChangeListener.ChangeEvent is fired when the slider knob is moved. Cancelling the event will move the knob to where it was previously.

The preferred height of a slider is determined by the larger of the knob and background. The preferred width of a slider is 140, a relatively arbitrary size.


SplitPane点击打开事物

A container that contains two widgets and is divided either horizontally or vertically. The user may resize the widgets. The child widgets are always sized to fill their half of the splitpane.

The preferred size of a splitpane is that of the child widgets and the size of the SplitPane.SplitPaneStyle.handle. The widgets are sized depending on the splitpane's size and the split position.


Stack点击打开事物


Table点击打开事物

A group that sizes and positions children using table constraints. By default, Actor.getTouchable() is Touchable.childrenOnly.

The preferred and minimum sizes are that of the children when laid out in columns and rows.


TextField点击打开事物

A single-line text input field.

The preferred height of a text field is the height of the TextField.TextFieldStyle.font and TextField.TextFieldStyle.background. The preferred width of a text field is 150, a relatively arbitrary size.

The text field will copy the currently selected text when ctrl+c is pressed, and paste any text in the clipboard when ctrl+v is pressed. Clipboard functionality is provided via the Clipboard interface. Currently there are two standard implementations, one for the desktop and one for Android. The Android clipboard is a stub, as copy & pasting on Android is not supported yet.

The text field allows you to specify an TextField.OnscreenKeyboard for displaying a softkeyboard and piping all key events generated by the keyboard to the text field. There are two standard implementations, one for the desktop and one for Android. The desktop keyboard is a stub, as a softkeyboard is not needed on the desktop. The Android TextField.OnscreenKeyboard implementation will bring up the default IME.


VerticalGroup点击打开事物

A group that lays out its children on top of each other in a single column. This can be easier than using Table when actors need to be inserted in the middle of the group.

The preferred width is the largest preferred width of any child. The preferred height is the sum of the children's preferred heights. The min size is the preferred size and the max size is 0.


Widget点击打开事物

An Actor that participates in layout and provides a minimum, preferred, and maximum size.

The default preferred size of a widget is 0 and this is almost always overridden by a subclass. The default minimum size returns the preferred size, so a subclass may choose to return 0 if it wants to allow itself to be sized smaller. The default maximum size is 0, which means no maximum size.

See Layout for details on how a widget should participate in layout. A widget's mutator methods should call invalidate() or invalidateHierarchy() as needed.


WidgetGroup点击打开事物

A Group that participates in layout and provides a minimum, preferred, and maximum size.

The default preferred size of a widget group is 0 and this is almost always overridden by a subclass. The default minimum size returns the preferred size, so a subclass may choose to return 0 for minimum size if it wants to allow itself to be sized smaller than the preferred size. The default maximum size is 0, which means no maximum size.

See Layout for details on how a widget group should participate in layout. A widget group's mutator methods should call invalidate() or invalidateHierarchy() as needed. By default, invalidateHierarchy is called when child widgets are added and removed.