Description

Direction for UI objects and layouts.

Not to be confused with Efl.Orient which is for images and canvases. This enum is used to define how widgets should expand and orient themselves, not to rotate images.

See also Efl.Ui.Direction.

Fields

  • default - Default direction. Each widget may have a different default.
  • horizontal - Horizontal direction, along the X axis. Usually left-to-right, but may be inverted to right-to-left if mirroring is on.
  • vertical - Vertical direction, along the Y axis. Usually downwards.
  • ltr - Horizontal, left-to-right direction.
  • rtl - Horizontal, right-to-left direction.
  • down - Vertical, top-to-bottom direction.
  • up - Vertical, bottom-to-top direction.
  • right - Right is an alias for LTR.
  • left - Left is an alias for RTL.

Signature

enum Efl.Ui.Dir {
    default: 0,
    horizontal,
    vertical,
    ltr,
    rtl,
    down,
    up,
    right: Efl.Ui.Dir.ltr,
    left: Efl.Ui.Dir.rtl
}

C signature

typedef enum {
    EFL_UI_DIR_DEFAULT = 0,
    EFL_UI_DIR_HORIZONTAL,
    EFL_UI_DIR_VERTICAL,
    EFL_UI_DIR_LTR,
    EFL_UI_DIR_RTL,
    EFL_UI_DIR_DOWN,
    EFL_UI_DIR_UP,
    EFL_UI_DIR_RIGHT = 3 /* Efl.Ui.Dir.ltr */,
    EFL_UI_DIR_LEFT = 4 /* Efl.Ui.Dir.rtl */
} Efl_Ui_Dir;