aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/efl_ui_focus_layer.eo
blob: a5a35641684e161672020a6f649f06c26256476f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
mixin Efl.Ui.Focus.Layer (Efl.Interface, Efl.Ui.Widget, Efl.Ui.Widget_Focus_Manager) {
   [[This defines the inheriting widget as focus layer

     A focus layer is the uppermost one which received input and handles all focus related events for as long as it exists and is visible. It's NOT possible to escape this layer with focus movement.

     Once the object is hidden or destroyed the focus will go back to the mainwindow, where it was before.
   ]]
   methods {
     @property enable @protected {
        [[Enable property]]
        values {
           v : bool; [[$true to set enable the layer $false to disable it]]
        }
     }
     @property behaviour @protected {
        [[Constructor for setting the behaviour of the layer]]
        values {
           enable_on_visible : bool;  [[$true means layer will set itself once the inheriting widget becomes visible, $false means the layer isn't enabled automatically]]
           cycle : bool; [[If $true the focus will cycle in the layer, if $false]]
        }
     }
   }
   implements {
      Efl.Ui.Widget_Focus_Manager.focus_manager_create;
      Efl.Ui.Widget.focus_state_apply;
      Efl.Gfx.Entity.visible {set;}
      Efl.Ui.Focus.Manager.move;
      Efl.Ui.Focus.Object.focus_manager { get; }
      Efl.Ui.Focus.Object.focus_parent { get; }
      Efl.Object.constructor;
      Efl.Object.destructor;
   }
}