efl/src/lib/efl/interfaces/efl_orientation.eo

36 lines
1016 B
Plaintext

import efl_ui_direction; // For documentation references
enum Efl.Orient
{
[[An orientation type, to rotate visual objects.
Not to be confused with @Efl.Ui.Dir which is meant for widgets, rather
than images and canvases. This enum is used to rotate images, videos and
the like.
See also @Efl.Orientation.
]]
none = 0, [[Default, same as up]]
up = 0, [[Orient up, do not rotate.]]
right = 90, [[Orient right, rotate 90 degrees counter clock-wise.]]
down = 180, [[Orient down, rotate 180 degrees.]]
left = 270, [[Orient left, rotate 90 degrees clock-wise.]]
}
interface Efl.Orientation
{
[[Efl orientation interface]]
methods {
@property orientation {
[[Control the orientation of a given object.
This can be used to set the rotation on an image or a window, for
instance.
]]
values {
dir: Efl.Orient(Efl.Orient.none); [[The rotation angle (CCW), see @Efl.Orient.]]
}
}
}
}