forked from enlightenment/efl
124 lines
3.3 KiB
Plaintext
124 lines
3.3 KiB
Plaintext
import efl_exe;
|
|
import efl_input_device;
|
|
import efl_canvas_wl_surface;
|
|
|
|
struct @beta @extern Efl.Canvas.Wl_Wl_Surface; [[ struct wl_surface. @since 1.24 ]]
|
|
struct @beta @extern Efl.Canvas.Wl_Wl_Global; [[ struct wl_global. @since 1.24 ]]
|
|
struct @beta @extern Efl.Canvas.Wl_Wl_Interface; [[ A libwayland callback interface struct. @since 1.24 ]]
|
|
struct @beta @extern Efl.Canvas.Wl_Wl_Interface_Data; [[ A data pointer to send with the bind callback. @since 1.24 ]]
|
|
struct @beta @extern Efl.Canvas.Wl_Wl_Interface_Bind_Cb; [[ A callback with the type (*void)(struct wl_client *client, void *data, uint32_t version, uint32_t id). @since 1.24 ]]
|
|
struct @beta @extern Efl.Canvas.Wl_Xkb_State; [[ struct xkb_state. @since 1.24 ]]
|
|
struct @beta @extern Efl.Canvas.Wl_Wl_Array; [[ struct wl_array. @since 1.24 ]]
|
|
|
|
|
|
enum @beta Efl.Canvas.Wl.Rotation
|
|
{
|
|
[[Orientation of the internal compositor object in degrees. These values are COUNTER-CLOCKWISE.
|
|
]]
|
|
rotate_0 = 0,
|
|
rotate_90 = 1,
|
|
rotate_180 = 2,
|
|
rotate_270 = 3
|
|
}
|
|
|
|
class @beta Efl.Canvas.Wl extends Efl.Canvas.Group
|
|
{
|
|
[[
|
|
@since 1.24
|
|
]]
|
|
data: Comp;
|
|
methods {
|
|
run {
|
|
[[This runs a command in the compositor using the @Efl.Exe_Flags.term_with_parent flag.
|
|
]]
|
|
params {
|
|
cmd: string;
|
|
}
|
|
return: Efl.Exe;
|
|
}
|
|
@property exec_flags {
|
|
values {
|
|
flags: Efl.Exe_Flags;
|
|
}
|
|
}
|
|
allowed_pid_add {
|
|
params {
|
|
pid: int;
|
|
}
|
|
}
|
|
allowed_pid_del {
|
|
params {
|
|
pid: int;
|
|
}
|
|
}
|
|
surface_next {
|
|
return: Efl.Canvas.Wl.Surface;
|
|
}
|
|
surface_prev {
|
|
return: Efl.Canvas.Wl.Surface;
|
|
}
|
|
@property active_surface {
|
|
get {}
|
|
set {
|
|
return: bool;
|
|
}
|
|
values {
|
|
surface: Efl.Canvas.Wl.Surface;
|
|
}
|
|
}
|
|
@property aspect {
|
|
values {
|
|
set: bool;
|
|
}
|
|
}
|
|
@property minmax {
|
|
values {
|
|
set: bool;
|
|
}
|
|
}
|
|
@property rotation {
|
|
values {
|
|
rotation: Efl.Canvas.Wl.Rotation;
|
|
rtl: bool;
|
|
}
|
|
}
|
|
global_add {
|
|
params {
|
|
interface: const(Efl.Canvas.Wl_Wl_Interface) @by_ref;
|
|
version: uint;
|
|
data: Efl.Canvas.Wl_Wl_Interface_Data @by_ref;
|
|
bind_cb: Efl.Canvas.Wl_Wl_Interface_Bind_Cb @by_ref;
|
|
}
|
|
return: Efl.Canvas.Wl_Wl_Global @by_ref;
|
|
}
|
|
seat_keymap_set {
|
|
params {
|
|
seat: Efl.Input.Device;
|
|
state: Efl.Canvas.Wl_Xkb_State @by_ref;
|
|
keymap_str: string;
|
|
key_array: Efl.Canvas.Wl_Wl_Array @by_ref;
|
|
}
|
|
}
|
|
seat_key_repeat_set {
|
|
params {
|
|
seat: Efl.Input.Device;
|
|
repeat_rate: int;
|
|
repeat_delay: int;
|
|
}
|
|
}
|
|
}
|
|
implements {
|
|
Efl.Object.constructor;
|
|
Efl.Gfx.Entity.visible { set; }
|
|
Efl.Gfx.Entity.size { set; }
|
|
Efl.Gfx.Entity.position { set; }
|
|
Efl.Gfx.Entity.scale { get; set; }
|
|
}
|
|
events {
|
|
toplevel,added: Efl.Canvas.Wl.Surface; [[]]
|
|
child,added: Efl.Canvas.Wl.Surface; [[]]
|
|
popup,added: Efl.Canvas.Wl.Surface; [[]]
|
|
seat,added: Efl.Input.Device; [[The seat object added.]]
|
|
}
|
|
}
|