Data type LayoutRule
access this type via: ui.Layout (uses)
Constants
byte ABOVE A layout rule constant, indicating that the object being laid out should be above the relative object.
byte BELOW A layout rule constant, indicating that the object being laid out should be below the relative object.
byte LEFT A layout rule constant, indicating that the object being laid out should be to the left of the relative objec.
byte RIGHT A layout rule constant, indicating that the object being laid out should be to the right of the relative object.
byte ALIGN_CENTER_H A layout rule constant, indicating that the object being laid out should be centered horizonally to the relative object.
byte ALIGN_CENTER_V A layout rule constant, indicating that the object being laid out should be centered vertically to the relative object.
byte ALIGN_LEFT A layout rule constant, indicating that the object being laid out should be aligned with the left of the relative object.
byte ALIGN_RIGHT A layout rule constant, indicating that the object being laid out should be aligned with the right of the relative object.
byte ALIGN_TOP A layout rule constant, indicating that the object being laid out should be aligned with the top of the relative object.
byte ALIGN_BOTTOM A layout rule constant, indicating that the object being laid out should be aligned with the bottom of the relative object.
Fields
byte direction[] The direction constants of this layout rule; this must be one of the layout rule constants.
int distance The distance in pixels by which to separate the object being laid out from its relative object or edge.
GraphicsObject relative The graphics object to which this rule is relative; if null it's relative to the edge(s) of the layout's containing rectangle.