MetaDone
|
Public Member Functions | |
WidgetStackingConstraint (boolean stretched) | |
WidgetStackingConstraint (boolean stretched, double ratio) | |
boolean | isStretched () |
double | getRatio () |
boolean | isConsideredForInsets (Widget widget) |
Static Public Member Functions | |
static WidgetStackingConstraint | getChildConstraint (Widget parent, Widget child) |
Static Public Attributes | |
static final WidgetStackingConstraint | NO_CONSTRAINT = new WidgetStackingConstraint(false) |
static final WidgetStackingConstraint | STRETCHED = new WidgetStackingConstraint(true) |
Private Attributes | |
final boolean | stretched |
final double | ratio |
Immutable constraint for this layout.
These constraints may be applied to elements in the layout.
metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.WidgetStackingConstraint | ( | boolean | stretched | ) |
Initializes this constraint.
stretched | Whether the element is stretched |
References metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.stretched.
metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.WidgetStackingConstraint | ( | boolean | stretched, |
double | ratio | ||
) |
Initializes this constraint.
stretched | Whether the element is stretched |
ratio | The ratio (width/height) of the element |
References metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.ratio, and metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.stretched.
static WidgetStackingConstraint metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.getChildConstraint | ( | Widget | parent, |
Widget | child | ||
) | [static] |
References metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.getChildConstraint(), and metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.NO_CONSTRAINT.
Referenced by metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.getChildConstraint(), and metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.layout().
double metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.getRatio | ( | ) |
boolean metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.isConsideredForInsets | ( | Widget | widget | ) |
boolean metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.isStretched | ( | ) |
References metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.stretched.
Referenced by metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.WidgetStackingConstraint.isConsideredForInsets(), and metadone.client.grasyla2.visuallibrary.widgets.layouts.StackingLayout.layout().