Class Derivatives
-
- All Implemented Interfaces:
public final class Derivatives
-
-
Method Summary
Modifier and Type Method Description final static BlockButton(PolyImage leftImage, String text, PolyImage rightImage, Float fontSize, Font font, FloatArray radii, Vec2 padding, Vec2 at, Vec2 size)final static BlockSwitch(Vec2 at, Float size, Float padding, Boolean state, Float lateralStretch)final static BlockRadiobutton(String entries, Vec2 at, Integer initial, Float fontSize, Float optionLateralPadding, Float optionVerticalPadding)For images, use Imagefor each entry.final static BlockRadiobutton(PolyImage entries, Vec2 at, Integer initial, Float fontSize, Float optionLateralPadding, Float optionVerticalPadding)For strings, use "string"for each entry.final static BlockRadiobutton(Pair<PolyImage, String> entries, Vec2 at, Integer initial, Float fontSize, Float optionLateralPadding, Float optionVerticalPadding)For just strings, use "string"for each entry.final static BlockDropdown(String entries, Vec2 at, Float fontSize, Integer initial, Float padding, Float textLength)For images, use Image to "string"for each entry.final static BlockDropdown(Pair<PolyImage, String> entries, Vec2 at, Float fontSize, Integer initial, Float optPadding, Float textLength)final static DrawableSlider(Vec2 at, Float min, Float max, Float initialValue, Float ptrSize, Float scaleFactor, Boolean floating, Boolean instant)Note that slider change events cannot be cancelled. final static BlockCheckbox(Vec2 at, Float size, Boolean state)final static BlockBoxedTextInput(PolyImage image, String pre, String placeholder, String initialValue, Float fontSize, Boolean center, String post, Vec2 size)final static BlockPopupMenu(Drawable children, Vec2 size, Align align, PolyUI polyUI, Boolean openNow, Point position)Spawn a menu at the mouse position. -
-
Method Detail
-
Button
final static Block Button(PolyImage leftImage, String text, PolyImage rightImage, Float fontSize, Font font, FloatArray radii, Vec2 padding, Vec2 at, Vec2 size)
-
Switch
final static Block Switch(Vec2 at, Float size, Float padding, Boolean state, Float lateralStretch)
-
Radiobutton
final static Block Radiobutton(String entries, Vec2 at, Integer initial, Float fontSize, Float optionLateralPadding, Float optionVerticalPadding)
For images, use
Imagefor each entry.For both strings and images, use
Image to "string".
-
Radiobutton
final static Block Radiobutton(PolyImage entries, Vec2 at, Integer initial, Float fontSize, Float optionLateralPadding, Float optionVerticalPadding)
For strings, use
"string"for each entry.For both strings and images, use
Image to "string".
-
Radiobutton
final static Block Radiobutton(Pair<PolyImage, String> entries, Vec2 at, Integer initial, Float fontSize, Float optionLateralPadding, Float optionVerticalPadding)
For just strings, use
"string"for each entry.For just images, use
Imagefor each entry.null to nullis not supported, and will throw an exception.
-
Dropdown
final static Block Dropdown(String entries, Vec2 at, Float fontSize, Integer initial, Float padding, Float textLength)
For images, use
Image to "string"for each entry.
-
Dropdown
final static Block Dropdown(Pair<PolyImage, String> entries, Vec2 at, Float fontSize, Integer initial, Float optPadding, Float textLength)
-
Slider
final static Drawable Slider(Vec2 at, Float min, Float max, Float initialValue, Float ptrSize, Float scaleFactor, Boolean floating, Boolean instant)
Note that slider change events cannot be cancelled.
-
BoxedTextInput
final static Block BoxedTextInput(PolyImage image, String pre, String placeholder, String initialValue, Float fontSize, Boolean center, String post, Vec2 size)
-
-
-
-