Interface Efl.Ui.ILayoutOrientable
Interface for UI objects which can have more than one orientation. For example, sliders, which can be horizontal or vertical, or container boxes, which can arrange their elements in a horizontal or vertical fashion.
Compare with Efl.Gfx.IImageOrientable that works for images and includes rotation.
Syntax
public interface ILayoutOrientable : IWrapper, IDisposable
Properties
Orientation
Control the direction of a given widget. Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
Mirroring as defined in Efl.Ui.II18n (object still in beta stage) can invert the horizontal
direction: it is ltr
by default, but becomes rtl
if the object is mirrored.
Declaration
LayoutOrientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
Efl.Ui.LayoutOrientation | Direction of the widget. |
Methods
GetOrientation()
Control the direction of a given widget. Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
Mirroring as defined in Efl.Ui.II18n (object still in beta stage) can invert the horizontal
direction: it is ltr
by default, but becomes rtl
if the object is mirrored.
Declaration
LayoutOrientation GetOrientation()
Returns
Type | Description |
---|---|
Efl.Ui.LayoutOrientation | Direction of the widget. |
SetOrientation(LayoutOrientation)
Control the direction of a given widget. Use this function to change how your widget is to be disposed: vertically or horizontally or inverted vertically or inverted horizontally.
Mirroring as defined in Efl.Ui.II18n (object still in beta stage) can invert the horizontal
direction: it is ltr
by default, but becomes rtl
if the object is mirrored.
Declaration
void SetOrientation(LayoutOrientation dir)
Parameters
Type | Name | Description |
---|---|---|
Efl.Ui.LayoutOrientation | dir | Direction of the widget. |