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
.
字段摘要 | |
---|---|
String |
firstWidget
|
String |
maxSplitAmount
|
String |
minSplitAmount
|
String |
secondWidget
|
String |
skinFileName
|
String |
splitAmount
|
String |
styleName
|
String |
vertical
|
方法摘要 | |
---|---|
|
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. |
字段详细信息 |
---|
方法详细信息 |
---|
子事物详细信息 |
---|
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.
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.
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.
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
.
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.
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.
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
.
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.
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.
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.
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.
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.