---
python-elementary/elementary/__init__.py | 28 +
.../elementary/elementary.c_elementary_window.pxi | 625 +++++++++++++++-----
.../include/elementary/c_elementary.pxd | 85 ++-
3 files changed, 596 insertions(+), 142 deletions(-)
diff --git a/python-elementary/elementary/__init__.py b/python-elementary/elementary/__init__.py
index 0c177c6..de8c261 100644
--- a/python-elementary/elementary/__init__.py
+++ b/python-elementary/elementary/__init__.py
@@ -103,6 +103,11 @@ ELM_ICON_NONE = 0
ELM_ICON_FILE = 1
ELM_ICON_STANDARD = 2
+ELM_ILLUME_COMMAND_FOCUS_BACK = 0
+ELM_ILLUME_COMMAND_FOCUS_FORWARD = 1
+ELM_ILLUME_COMMAND_FOCUS_HOME = 2
+ELM_ILLUME_COMMAND_CLOSE = 3
+
ELM_INPUT_PANEL_LANG_AUTOMATIC = 0
ELM_INPUT_PANEL_LANG_ALPHABET = 1
@@ -172,6 +177,29 @@ ELM_WEB_ZOOM_MODE_AUTO_FILL = 2
ELM_WIN_BASIC = 0
ELM_WIN_DIALOG_BASIC = 1
+ELM_WIN_DESKTOP = 2
+ELM_WIN_DOCK = 3
+ELM_WIN_TOOLBAR = 4
+ELM_WIN_MENU = 5
+ELM_WIN_UTILITY = 6
+ELM_WIN_SPLASH = 7
+ELM_WIN_DROPDOWN_MENU = 8
+ELM_WIN_POPUP_MENU = 9
+ELM_WIN_TOOLTIP = 10
+ELM_WIN_NOTIFICATION = 11
+ELM_WIN_COMBO = 12
+ELM_WIN_DND = 13
+ELM_WIN_INLINED_IMAGE = 14
+ELM_WIN_SOCKET_IMAGE = 15
+
+ELM_WIN_INDICATOR_UNKNOWN = 0
+ELM_WIN_INDICATOR_HIDE = 1
+ELM_WIN_INDICATOR_SHOW = 2
+
+ELM_WIN_INDICATOR_OPACITY_UNKNOWN = 0
+ELM_WIN_INDICATOR_OPAQUE = 1
+ELM_WIN_INDICATOR_TRANSLUCENT = 2
+ELM_WIN_INDICATOR_TRANSPARENT = 3
ELM_WIN_KEYBOARD_UNKNOWN = 0
ELM_WIN_KEYBOARD_OFF = 1
diff --git a/python-elementary/elementary/elementary.c_elementary_window.pxi b/python-elementary/elementary/elementary.c_elementary_window.pxi
index 212413e..b0443af 100644
--- a/python-elementary/elementary/elementary.c_elementary_window.pxi
+++ b/python-elementary/elementary/elementary.c_elementary_window.pxi
@@ -18,7 +18,7 @@
cdef class Window(Object):
"""
- Elementary Window class
+ Elementary Window class.
This class represents a basic window.
"""
@@ -35,161 +35,201 @@ cdef class Window(Object):
canvas = evas.c_evas._Canvas_from_instance(<long>e)
c_evas.Object.__init__(self, canvas)
- property canvas:
- def __get__(self):
- import warnings
- warnings.warn("use evas or evas_get() instead.", DeprecationWarning)
- return self.evas
+ def resize_object_add(self, c_evas.Object subobj):
+ """Add subobj as a resize object of window obj.
- def callback_destroy_add(self, func, *args, **kwargs):
- self._callback_add("delete,request", func, *args, **kwargs)
+ @parm: B{subobj} Widget object
+ """
+ elm_win_resize_object_add(self.obj, subobj.obj)
- def callback_destroy_del(self, func):
- self._callback_del("delete,request", func)
+ def resize_object_del(self, c_evas.Object subobj):
+ """Delete subobj as a resize object of window obj.
- def callback_focus_in_add(self, func, *args, **kwargs):
- self._callback_add("focus,in", func, *args, **kwargs)
+ @parm: B{subobj} Widget object
+ """
+ elm_win_resize_object_del(self.obj, subobj.obj)
- def callback_focus_in_del(self, func):
- self._callback_del("focus,in", func)
+ def title_set(self, title):
+ """Set the title of the window.
- def callback_focus_out_add(self, func, *args, **kwargs):
- self._callback_add("focus,out", func, *args, **kwargs)
+ @parm: B{title} Title for the window
+ """
+ elm_win_title_set(self.obj, title)
- def callback_focus_out_del(self, func):
- self._callback_del("focus,out")
+ def title_get(self):
+ """Get the title of the window."""
+ return elm_win_title_get(self.obj)
+ property title:
+ def __get__(self):
+ return self.title_get()
+ def __set__(self, title):
+ self.title_set(title)
- def resize_object_add(self,c_evas.Object obj):
- """
- Sets an object which sould be resized, when the window changes his size
+ def icon_name_set(self, icon_name):
+ """Set the icon name of the window.
- @parm: B{obj} Widget object
+ @parm: B{icon_name} Icon name for the window
"""
- elm_win_resize_object_add(self.obj, obj.obj)
+ elm_win_icon_name_set(self.obj, icon_name)
- def resize_object_del(self,c_evas.Object obj):
- """
- Removes a object from the resizing list
+ def icon_name_get(self):
+ """Get the icon name of the window."""
+ return elm_win_icon_name_get(self.obj)
- @parm: B{obj} Widget object
- """
- elm_win_resize_object_del(self.obj, obj.obj)
+ property icon_name:
+ def __get__(self):
+ return self.icon_name_get()
+ def __set__(self, icon_name):
+ self.icon_name_set(icon_name)
- def title_set(self,title):
- """
- Sets the title of the window
+ def role_set(self, role):
+ """Set the role of the window.
- @parm: B{title} Title for the window
+ @parm: B{role} Role for the window
"""
- elm_win_title_set(self.obj, title)
+ elm_win_role_set(self.obj, role)
- def activate(self):
- """Activates the window"""
- elm_win_activate(self.obj)
+ def role_get(self):
+ """Get the role of the window."""
+ return elm_win_role_get(self.obj)
+
+ property role:
+ def __get__(self):
+ return self.role_get()
+ def __set__(self, role):
+ self.role_set(role)
+
+ def icon_object_set(self, c_evas.Object icon):
+ """Set the object to represent the window icon.
- def autodel_set(self,autodel):
+ @parm: B{icon} Icon object for the window
"""
- Set the auto deletion property of the window
+ elm_win_icon_object_set(self.obj, icon.obj)
+
+ def icon_object_get(self):
+ """Get the icon object used for the window."""
+ cdef Object o
+ o = <Object>elm_win_icon_object_get(self.obj)
+ return o
+
+ property icon_object:
+ def __get__(self):
+ return self.icon_object_get()
+ def __set__(self, icon):
+ self.icon_object_set(icon)
+
+ def autodel_set(self, autodel):
+ """Set the window's autodel state.
@parm: B{audodel} Auto deletion property
"""
elm_win_autodel_set(self.obj, autodel)
+ def autodel_get(self):
+ """Get the window's autodel state."""
+ return elm_win_autodel_get(self.obj)
+
+ property autodel:
+ def __get__(self):
+ return self.autodel_get()
+ def __set__(self, autodel):
+ self.autodel_set(autodel)
+
+ def activate(self):
+ """Activates the window."""
+ elm_win_activate(self.obj)
+
+ def lower(self):
+ """Lowers the window."""
+ elm_win_lower(self.obj)
+
+ def _raise(self):
+ """Raises the window."""
+ elm_win_raise(self.obj)
+
+ def center(self, h, v):
+ """Centers the window."""
+ elm_win_center(self.obj, h, v)
+
def borderless_set(self, borderless):
- """
- Set the borderless property of the window
+ """Set the borderless state of the window.
- @parm: B{borderless} Borderless property
+ @parm: B{borderless} Borderless state
"""
elm_win_borderless_set(self.obj, borderless)
def borderless_get(self):
- """
- Get the borderless property of the window
- """
+ """Get the borderless state of the window."""
return bool(elm_win_borderless_get(self.obj))
property borderless:
def __get__(self):
return self.borderless_get()
-
def __set__(self, borderless):
self.borderless_set(borderless)
def shaped_set(self,shaped):
- """Set the shaped property of the window
+ """Set the shaped state of the window.
@parm: B{shaped} Shaped property
"""
elm_win_shaped_set(self.obj, shaped)
def shaped_get(self):
- """
- Get the shaped property of the window
- """
+ """Get the shaped state of the window."""
return bool(elm_win_shaped_get(self.obj))
property shaped:
def __get__(self):
return self.shaped_get()
-
def __set__(self, shaped):
self.shaped_set(shaped)
def alpha_set(self,alpha):
- """
- Set the alpha value of the window
+ """Set the alpha channel state of the window.
- @parm: b{alpha} Alpha value
+ @parm: b{alpha} Alpha channel state
"""
elm_win_alpha_set(self.obj, alpha)
def alpha_get(self):
- """
- Get the alpha value of the window
- """
+ """Get the alpha channel state of the window."""
return bool(elm_win_alpha_get(self.obj))
property alpha:
def __get__(self):
return self.alpha_get()
-
def __set__(self, alpha):
self.alpha_set(alpha)
def override_set(self, override):
- """
- Set the override property
+ """Set the override property
@parm: B{override} Override property
"""
elm_win_override_set(self.obj, override)
def override_get(self):
- """
- Get the override property
- """
+ """Get the override property"""
return bool(elm_win_override_get(self.obj))
property override:
def __get__(self):
return self.override_get()
-
def __set__(self, override):
self.override_set(override)
def fullscreen_set(self, fullscreen):
- """
- Set the window to fullscreen mode
+ """Set the window to fullscreen mode
@parm: B{fullscreen} Fullscreen mode
"""
elm_win_fullscreen_set(self.obj, fullscreen)
def fullscreen_get(self):
- """
- Get the window fullscreen mode.
+ """Get the window fullscreen mode.
+
True means the window is in fullscreen mode while False means in
windowed mode.
"""
@@ -198,186 +238,499 @@ cdef class Window(Object):
property fullscreen:
def __get__(self):
return self.fullscreen_get()
-
def __set__(self, fullscreen):
self.fullscreen_set(fullscreen)
-
+
def maximized_set(self, maximized):
- """
- Maximize the window
+ """Set the maximized state of a window.
- @parm: B{maximized} Maximize the window
+ @parm: B{maximized} Maximized state for the window
"""
elm_win_maximized_set(self.obj, maximized)
def maximized_get(self):
- """
- Get the Maximize state of the window
- """
+ """Get the maximized state of a window."""
return bool(elm_win_maximized_get(self.obj))
property maximized:
def __get__(self):
return self.maximized_get()
-
def __set__(self, maximized):
self.maximized_set(maximized)
def iconified_set(self, iconified):
- """
- Iconify the window
+ """Set the iconified state of the window.
@parm: B{iconified}
"""
elm_win_iconified_set(self.obj, iconified)
def iconified_get(self):
- """
- Get the Iconify state of the window
- """
+ """Get the Iconify state of the window."""
return bool(elm_win_iconified_get(self.obj))
property iconified:
def __get__(self):
return self.iconified_get()
-
def __set__(self, iconified):
self.iconified_set(iconified)
- def layer_set(self, layer):
+ def withdrawn_set(self, withdrawn):
+ """Set the withdrawn state of the window.
+
+ @parm: B{withdrawn}
+ """
+ elm_win_withdrawn_set(self.obj, withdrawn)
+
+ def withdrawn_get(self):
+ """Get the withdrawn state of the window."""
+ return bool(elm_win_withdrawn_get(self.obj))
+
+ property withdrawn:
+ def __get__(self):
+ return self.withdrawn_get()
+ def __set__(self, withdrawn):
+ self.withdrawn_set(withdrawn)
+
+ def urgent_set(self, urgent):
+ """Set the urgent state of the window.
+
+ @parm: B{urgent}
"""
- Set the layer of the window
+ elm_win_urgent_set(self.obj, urgent)
+
+ def urgent_get(self):
+ """Get the urgent state of the window."""
+ return bool(elm_win_urgent_get(self.obj))
+
+ property urgent:
+ def __get__(self):
+ return self.urgent_get()
+ def __set__(self, urgent):
+ self.urgent_set(urgent)
+
+ def demand_attention_set(self, demand_attention):
+ """Set the demand attention state of the window.
+
+ @parm: B{demand_attention}
+ """
+ elm_win_demand_attention_set(self.obj, demand_attention)
+
+ def demand_attention_get(self):
+ """Get the demand attention state of the window."""
+ return bool(elm_win_demand_attention_get(self.obj))
+
+ property demand_attention:
+ def __get__(self):
+ return self.demand_attention_get()
+ def __set__(self, demand_attention):
+ self.demand_attention_set(demand_attention)
+
+ def modal_set(self, modal):
+ """Set the Modal state of the window.
+
+ @parm: B{modal}
+ """
+ elm_win_modal_set(self.obj, modal)
+
+ def modal_get(self):
+ """Get the Modal state of the window."""
+ return bool(elm_win_modal_get(self.obj))
+
+ property modal:
+ def __get__(self):
+ return self.modal_get()
+ def __set__(self, modal):
+ self.modal_set(modal)
+
+ def aspect_set(self, aspect):
+ elm_win_aspect_set(self.obj, aspect)
+
+ def aspect_get(self):
+ return elm_win_aspect_get(self.obj)
+
+ property aspect:
+ def __get__(self):
+ return self.aspect_get()
+ def __set__(self, aspect):
+ self.aspect_set(aspect)
+
+ def layer_set(self, layer):
+ """Set the layer of the window.
@parm: B{layer}
"""
elm_win_layer_set(self.obj, layer)
def layer_get(self):
- """
- Get the layer of the window
- """
+ """Get the layer of the window."""
return elm_win_layer_get(self.obj)
property layer:
def __get__(self):
return self.layer_get()
-
def __set__(self, layer):
self.layer_set(layer)
def rotation_set(self, rotation):
- """
- Set the rotation of the window
+ """Set the rotation of the window.
@parm: B{rotation}
"""
elm_win_rotation_set(self.obj, rotation)
def rotation_get(self):
- """
- Get the rotation of the window
- """
+ """Get the rotation of the window."""
return elm_win_rotation_get(self.obj)
property rotation:
def __get__(self):
return self.rotation_get()
-
def __set__(self, rotation):
self.rotation_set(rotation)
+ def rotation_with_resize_set(self, rotation):
+ elm_win_rotation_set(self.obj, rotation)
+
def sticky_set(self, sticky):
- """
- Set the Sticky state of the window
+ """Set the Sticky state of the window.
@parm: B{sticky}
"""
elm_win_sticky_set(self.obj, sticky)
def sticky_get(self):
- """
- Get the Sticky state of the window
- """
+ """Get the Sticky state of the window."""
return bool(elm_win_sticky_get(self.obj))
property sticky:
def __get__(self):
return self.sticky_get()
-
def __set__(self, sticky):
self.sticky_set(sticky)
- def keyboard_mode_set(self, mode):
- """
- Sets the keyboard mode of the window
+ def conformant_set(self, conformant):
+ """Set if this window is an illume conformant window.
- @parm: B{mode} The mode to set, one of Elm_Win_Keyboard_Mode
+ @parm: B{conformant}
"""
- elm_win_keyboard_mode_set(self.obj, mode)
+ elm_win_conformant_set(self.obj, conformant)
- def keyboard_mode_get(self):
- """
- Gets the keyboard mode of the window
+ def conformant_get(self):
+ """Get if this window is an illume conformant window."""
+ return bool(elm_win_conformant_get(self.obj))
- """
- return bool(elm_win_keyboard_mode_get(self.obj))
+ property conformant:
+ def __get__(self):
+ return self.conformant_get()
+ def __set__(self, conformant):
+ self.conformant_set(conformant)
- def keyboard_win_set(self, is_keyboard):
- """
- Sets whether the window is a keyboard.
+ def quickpanel_set(self, quickpanel):
+ """Set a window to be an illume quickpanel window.
- @parm: B{is_keyboard} If true, the window is a virtual keyboard
+ @parm: B{quickpanel}
"""
- elm_win_keyboard_win_set(self.obj, is_keyboard)
+ elm_win_quickpanel_set(self.obj, quickpanel)
- def keyboard_win_get(self):
- """
- Gets whether the window is a keyboard.
+ def quickpanel_get(self):
+ """Get if this window is a quickpanel or not."""
+ return bool(elm_win_quickpanel_get(self.obj))
- """
- return bool(elm_win_keyboard_win_get(self.obj))
+ property quickpanel:
+ def __get__(self):
+ return self.quickpanel_get()
+ def __set__(self, quickpanel):
+ self.quickpanel_set(quickpanel)
- def lower(self):
+ def quickpanel_priority_major_set(self, priority):
+ """Set the major priority of a quickpanel window.
+
+ @parm: B{priority}
"""
- Lower the window
+ elm_win_quickpanel_priority_major_set(self.obj, priority)
+
+ def quickpanel_priority_major_get(self):
+ """Get the major priority of a quickpanel window."""
+ return elm_win_quickpanel_priority_major_get(self.obj)
+
+ property quickpanel_priority_major:
+ def __get__(self):
+ return self.quickpanel_priority_major_get()
+ def __set__(self, priority):
+ self.quickpanel_priority_major_set(priority)
+
+ def quickpanel_priority_minor_set(self, priority):
+ """Set the major priority of a quickpanel window.
+
+ @parm: B{quickpanel_priority_minor}
"""
- elm_win_lower(self.obj)
+ elm_win_quickpanel_priority_minor_set(self.obj, priority)
- def _raise(self):
+ def quickpanel_priority_minor_get(self):
+ """Get the major priority of a quickpanel window."""
+ return elm_win_quickpanel_priority_minor_get(self.obj)
+
+ property quickpanel_priority_minor:
+ def __get__(self):
+ return self.quickpanel_priority_minor_get()
+ def __set__(self, priority):
+ self.quickpanel_priority_minor_set(priority)
+
+ def quickpanel_zone_set(self, zone):
+ """Set which zone this quickpanel should appear in.
+
+ @parm: B{quickpanel_zone}
"""
- Raise the window
+ elm_win_quickpanel_zone_set(self.obj, zone)
+
+ def quickpanel_zone_get(self):
+ """Get which zone this quickpanel should appear in."""
+ return elm_win_quickpanel_zone_get(self.obj)
+
+ property quickpanel_zone:
+ def __get__(self):
+ return self.quickpanel_zone_get()
+ def __set__(self, zone):
+ self.quickpanel_zone_set(zone)
+
+ def prop_focus_skip_set(self, skip):
+ elm_win_prop_focus_skip_set(self.obj, skip)
+
+ def illume_command_send(self, command, *params):
+ elm_win_illume_command_send(self.obj, command, params)
+
+ def inlined_image_object_get(self):
+ cdef Object o
+ o = <Object>elm_win_inlined_image_object_get(self.obj)
+ return o
+
+ def focus_get(self):
+ return bool(elm_win_focus_get(self.obj))
+
+ def screen_constrain_set(self, constrain):
+ """Constrain the maximum width and height of a window to the width and height of its screen.
+
+ @parm: B{constrain}
"""
- elm_win_raise(self.obj)
+ elm_win_screen_constrain_set(self.obj, constrain)
+
+ def screen_constrain_get(self):
+ """Retrieve the constraints on the maximum width and height of a window relative to the width and height of its screen."""
+ return bool(elm_win_screen_constrain_get(self.obj))
+
+ property screen_constrain:
+ def __get__(self):
+ return self.screen_constrain_get()
+ def __set__(self, constrain):
+ self.screen_constrain_set(constrain)
+
+ def screen_size_get(self):
+ cdef int x, y, w, h
+ elm_win_screen_size_get(self.obj, &x, &y, &w, &h)
+ return (x, y, w, h)
def focus_highlight_enabled_set(self, enabled):
- """
- Enable focus highlight
- """
+ """Enable focus highlight."""
elm_win_focus_highlight_enabled_set(self.obj, enabled)
def focus_highlight_enabled_get(self):
+ """Get if focus highlight is enabled."""
+ return bool(elm_win_focus_highlight_enabled_get(self.obj))
+
+ property focus_highlight_enabled:
+ def __get__(self):
+ return self.focus_highlight_enabled_get()
+ def __set__(self, enabled):
+ self.focus_highlight_enabled_set(enabled)
+
+ def focus_highlight_style_set(self, style):
+ """Set the style for the focus highlight on this window."""
+ elm_win_focus_highlight_style_set(self.obj, style)
+
+ def focus_highlight_style_get(self):
+ """Get the style set for the focus highlight object."""
+ return elm_win_focus_highlight_style_get(self.obj)
+
+ property focus_highlight_style:
+ def __get__(self):
+ return self.focus_highlight_style_get()
+ def __set__(self, style):
+ self.focus_highlight_style_set(style)
+
+ def keyboard_mode_set(self, mode):
+ """Sets the keyboard mode of the window.
+
+ @parm: B{mode} The mode to set, one of Elm_Win_Keyboard_Mode
"""
- Get if focus highlight is enabled
+ elm_win_keyboard_mode_set(self.obj, mode)
+
+ def keyboard_mode_get(self):
+ """Gets the keyboard mode of the window."""
+ return elm_win_keyboard_mode_get(self.obj)
+
+ property keyboard_mode:
+ def __get__(self):
+ return self.keyboard_mode_get()
+ def __set__(self, mode):
+ self.keyboard_mode_set(mode)
+
+ def keyboard_win_set(self, is_keyboard):
+ """Sets whether the window is a keyboard.
+
+ @parm: B{is_keyboard} If true, the window is a virtual keyboard
"""
- return bool(elm_win_focus_highlight_enabled_get(self.obj))
+ elm_win_keyboard_win_set(self.obj, is_keyboard)
+
+ def keyboard_win_get(self):
+ """Gets whether the window is a keyboard."""
+ return bool(elm_win_keyboard_win_get(self.obj))
+
+ property keyboard_win:
+ def __get__(self):
+ return self.keyboard_win_get()
+ def __set__(self, is_keyboard):
+ self.keyboard_win_set(is_keyboard)
+
+ def indicator_mode_set(self, mode):
+ """Sets the indicator mode of the window."""
+ elm_win_indicator_mode_set(self.obj, mode)
+
+ def indicator_mode_get(self):
+ """Gets the indicator mode of the window."""
+ return elm_win_indicator_mode_get(self.obj)
+
+ property indicator_mode:
+ def __get__(self):
+ return self.indicator_mode_get()
+ def __set__(self, mode):
+ self.indicator_mode_set(mode)
+
+ def indicator_opacity_set(self, mode):
+ """Sets the indicator opacity mode of the window."""
+ elm_win_indicator_opacity_set(self.obj, mode)
+
+ def indicator_opacity_get(self):
+ """Gets the indicator opacity mode of the window."""
+ return elm_win_indicator_opacity_get(self.obj)
+
+ property indicator_opacity:
+ def __get__(self):
+ return self.indicator_opacity_get()
+ def __set__(self, mode):
+ self.indicator_opacity_set(mode)
+
+ def screen_position_get(self):
+ cdef int x, y
+ elm_win_screen_position_get(self.obj, &x, &y)
+ return (x, y)
+
+ def socket_listen(self, svcname, svcnum, svcsys):
+ return bool(elm_win_socket_listen(self.obj, svcname, svcnum, svcsys))
def xwindow_xid_get(self):
- """
- Return the X Window id, it's a long int, can be used in combination
+ """Returns the X Window id.
+
+ X Window id is a value of type long int which can be used in combination
with some functions/objects in the ecore.x module.
- For example you can hide the mouse cursor doing:
+ For example you can hide the mouse cursor with:
import ecore.x
xid = your_elm_win.xwindow_xid_get()
xwin = ecore.x.Window_from_xid(xid)
xwin.cursor_hide()
- Note: this is not portable at all. Work only under the X window system
+ Note: This is not portable at all. Works only under the X window system.
+
"""
cdef Ecore_X_Window xwin
xwin = elm_win_xwindow_get(self.obj)
return xwin
+ def callback_destroy_add(self, func, *args, **kwargs):
+ _METHOD_DEPRECATED(self, "callback_delete_request_add")
+ self._callback_add("delete,request", func, *args, **kwargs)
+
+ def callback_destroy_del(self, func):
+ _METHOD_DEPRECATED(self, "callback_delete_request_del")
+ self._callback_del("delete,request", func)
+
+ def callback_delete_request_add(self, func, *args, **kwargs):
+ self._callback_add("delete,request", func, *args, **kwargs)
+
+ def callback_delete_request_del(self, func):
+ self._callback_del("delete,request", func)
+
+ def callback_focus_in_add(self, func, *args, **kwargs):
+ self._callback_add("focus,in", func, *args, **kwargs)
+
+ def callback_focus_in_del(self, func):
+ self._callback_del("focus,in", func)
+
+ def callback_focus_out_add(self, func, *args, **kwargs):
+ self._callback_add("focus,out", func, *args, **kwargs)
+
+ def callback_focus_out_del(self, func):
+ self._callback_del("focus,out")
+
+ def callback_moved_add(self, func, *args, **kwargs):
+ self._callback_add("moved", func, *args, **kwargs)
+
+ def callback_moved_del(self, func):
+ self._callback_del("moved")
+
+ def callback_withdrawn_add(self, func, *args, **kwargs):
+ self._callback_add("withdrawn", func, *args, **kwargs)
+
+ def callback_withdrawn_del(self, func):
+ self._callback_del("withdrawn")
+
+ def callback_iconified_add(self, func, *args, **kwargs):
+ self._callback_add("iconified", func, *args, **kwargs)
+
+ def callback_iconified_del(self, func):
+ self._callback_del("iconified")
+
+ def callback_normal_add(self, func, *args, **kwargs):
+ self._callback_add("normal", func, *args, **kwargs)
+
+ def callback_normal_del(self, func):
+ self._callback_del("normal")
+
+ def callback_stick_add(self, func, *args, **kwargs):
+ self._callback_add("stick", func, *args, **kwargs)
+
+ def callback_stick_del(self, func):
+ self._callback_del("stick")
+
+ def callback_unstick_add(self, func, *args, **kwargs):
+ self._callback_add("unstick", func, *args, **kwargs)
+
+ def callback_unstick_del(self, func):
+ self._callback_del("unstick")
+
+ def callback_fullscreen_add(self, func, *args, **kwargs):
+ self._callback_add("fullscreen", func, *args, **kwargs)
+
+ def callback_fullscreen_del(self, func):
+ self._callback_del("fullscreen")
+
+ def callback_unfullscreen_add(self, func, *args, **kwargs):
+ self._callback_add("unfullscreen", func, *args, **kwargs)
+
+ def callback_unfullscreen_del(self, func):
+ self._callback_del("unfullscreen")
+
+ def callback_maximized_add(self, func, *args, **kwargs):
+ self._callback_add("maximized", func, *args, **kwargs)
+
+ def callback_maximized_del(self, func):
+ self._callback_del("maximized")
+
+ def callback_unmaximized_add(self, func, *args, **kwargs):
+ self._callback_add("unmaximized", func, *args, **kwargs)
+ def callback_unmaximized_del(self, func):
+ self._callback_del("unmaximized")
_elm_widget_type_register("win", Window)
diff --git a/python-elementary/include/elementary/c_elementary.pxd b/python-elementary/include/elementary/c_elementary.pxd
index 464e3f5..31652b6 100644
--- a/python-elementary/include/elementary/c_elementary.pxd
+++ b/python-elementary/include/elementary/c_elementary.pxd
@@ -147,6 +147,12 @@ cdef extern from "Elementary.h":
ELM_ICON_FILE
ELM_ICON_STANDARD
+ ctypedef enum Elm_Illume_Command:
+ ELM_ILLUME_COMMAND_FOCUS_BACK
+ ELM_ILLUME_COMMAND_FOCUS_FORWARD
+ ELM_ILLUME_COMMAND_FOCUS_HOME
+ ELM_ILLUME_COMMAND_CLOSE
+
ctypedef enum Elm_Image_Orient:
ELM_IMAGE_ORIENT_NONE
ELM_IMAGE_ROTATE_90
@@ -235,6 +241,25 @@ cdef extern from "Elementary.h":
ELM_WIN_MENU
ELM_WIN_UTILITY
ELM_WIN_SPLASH
+ ELM_WIN_DROPDOWN_MENU
+ ELM_WIN_POPUP_MENU
+ ELM_WIN_TOOLTIP
+ ELM_WIN_NOTIFICATION
+ ELM_WIN_COMBO
+ ELM_WIN_DND
+ ELM_WIN_INLINED_IMAGE
+ ELM_WIN_SOCKET_IMAGE
+
+ ctypedef enum Elm_Win_Indicator_Mode:
+ ELM_WIN_INDICATOR_UNKNOWN
+ ELM_WIN_INDICATOR_HIDE
+ ELM_WIN_INDICATOR_SHOW
+
+ ctypedef enum Elm_Win_Indicator_Opacity_Mode:
+ ELM_WIN_INDICATOR_OPACITY_UNKNOWN
+ ELM_WIN_INDICATOR_OPAQUE
+ ELM_WIN_INDICATOR_TRANSLUCENT
+ ELM_WIN_INDICATOR_TRANSPARENT
ctypedef enum Elm_Win_Keyboard_Mode:
ELM_WIN_KEYBOARD_UNKNOWN # Unknown keyboard state
@@ -449,14 +474,23 @@ cdef extern from "Elementary.h":
void elm_object_focus_custom_chain_prepend(evas.c_evas.Evas_Object *obj, evas.c_evas.Evas_Object *child, evas.c_evas.Evas_Object *relative_child)
# Window handling
- evas.c_evas.Evas_Object *elm_win_add(evas.c_evas.Evas_Object* parent,char* name,Elm_Win_Type type)
- void elm_win_resize_object_add(evas.c_evas.Evas_Object* obj,evas.c_evas.Evas_Object* subobj)
- void elm_win_resize_object_del(evas.c_evas.Evas_Object* obj,evas.c_evas.Evas_Object* subobj)
- void elm_win_title_set(evas.c_evas.Evas_Object* obj,char *title)
+ evas.c_evas.Evas_Object *elm_win_add(evas.c_evas.Evas_Object* parent, char *name, Elm_Win_Type type)
+ void elm_win_resize_object_add(evas.c_evas.Evas_Object* obj, evas.c_evas.Evas_Object* subobj)
+ void elm_win_resize_object_del(evas.c_evas.Evas_Object* obj, evas.c_evas.Evas_Object* subobj)
+ void elm_win_title_set(evas.c_evas.Evas_Object* obj, char *title)
+ char *elm_win_title_get(evas.c_evas.Evas_Object* obj)
+ void elm_win_icon_name_set(evas.c_evas.Evas_Object *obj, char *icon_name)
+ char *elm_win_icon_name_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_role_set(evas.c_evas.Evas_Object *obj, char *role)
+ char *elm_win_role_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_icon_object_set(evas.c_evas.Evas_Object* obj, evas.c_evas.Evas_Object* icon)
+ evas.c_evas.Evas_Object *elm_win_icon_object_get(evas.c_evas.Evas_Object*)
void elm_win_autodel_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool autodel)
+ evas.c_evas.Eina_Bool elm_win_autodel_get(evas.c_evas.Evas_Object *obj)
void elm_win_activate(evas.c_evas.Evas_Object *obj)
void elm_win_lower(evas.c_evas.Evas_Object *obj)
void elm_win_raise(evas.c_evas.Evas_Object *obj)
+ void elm_win_center(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool h, evas.c_evas.Eina_Bool v)
void elm_win_borderless_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool borderless)
evas.c_evas.Eina_Bool elm_win_borderless_get(evas.c_evas.Evas_Object *obj)
void elm_win_shaped_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool shaped)
@@ -471,21 +505,60 @@ cdef extern from "Elementary.h":
evas.c_evas.Eina_Bool elm_win_maximized_get(evas.c_evas.Evas_Object *obj)
void elm_win_iconified_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool iconified)
evas.c_evas.Eina_Bool elm_win_iconified_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_withdrawn_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool withdrawn)
+ evas.c_evas.Eina_Bool elm_win_withdrawn_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_urgent_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool urgent)
+ evas.c_evas.Eina_Bool elm_win_urgent_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_demand_attention_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool demand_attention)
+ evas.c_evas.Eina_Bool elm_win_demand_attention_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_modal_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool modal)
+ evas.c_evas.Eina_Bool elm_win_modal_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_aspect_set(evas.c_evas.Evas_Object *obj, double aspect)
+ double elm_win_aspect_get(evas.c_evas.Evas_Object *obj)
void elm_win_layer_set(evas.c_evas.Evas_Object *obj, int layer)
int elm_win_layer_get(evas.c_evas.Evas_Object *obj)
void elm_win_rotation_set(evas.c_evas.Evas_Object *obj, int rotation)
+ void elm_win_rotation_with_resize_set(evas.c_evas.Evas_Object *obj, int rotation)
int elm_win_rotation_get(evas.c_evas.Evas_Object *obj)
void elm_win_sticky_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool sticky)
evas.c_evas.Eina_Bool elm_win_sticky_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_conformant_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool conformant)
+ evas.c_evas.Eina_Bool elm_win_conformant_get(evas.c_evas.Evas_Object *obj)
+
+ void elm_win_quickpanel_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool quickpanel)
+ evas.c_evas.Eina_Bool elm_win_quickpanel_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_quickpanel_priority_major_set(evas.c_evas.Evas_Object *obj, int priority)
+ int elm_win_quickpanel_priority_major_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_quickpanel_priority_minor_set(evas.c_evas.Evas_Object *obj, int priority)
+ int elm_win_quickpanel_priority_minor_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_quickpanel_zone_set(evas.c_evas.Evas_Object *obj, int zone)
+ int elm_win_quickpanel_zone_get(evas.c_evas.Evas_Object *obj)
+
+ void elm_win_prop_focus_skip_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool skip)
+ void elm_win_illume_command_send(evas.c_evas.Evas_Object *obj, Elm_Illume_Command command, params)
+ evas.c_evas.Evas_Object *elm_win_inlined_image_object_get(evas.c_evas.Evas_Object *obj)
+ evas.c_evas.Eina_Bool elm_win_focus_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_screen_constrain_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool constrain)
+ evas.c_evas.Eina_Bool elm_win_screen_constrain_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_screen_size_get(evas.c_evas.Evas_Object *obj, int *x, int *y, int *w, int *h)
+ void elm_win_focus_highlight_enabled_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool enabled)
+ evas.c_evas.Eina_Bool elm_win_focus_highlight_enabled_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_focus_highlight_style_set(evas.c_evas.Evas_Object *obj, char *style)
+ char *elm_win_focus_highlight_style_get(evas.c_evas.Evas_Object *obj)
void elm_win_keyboard_mode_set(evas.c_evas.Evas_Object *obj, Elm_Win_Keyboard_Mode mode)
Elm_Win_Keyboard_Mode elm_win_keyboard_mode_get(evas.c_evas.Evas_Object *obj)
void elm_win_keyboard_win_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool is_keyboard)
evas.c_evas.Eina_Bool elm_win_keyboard_win_get(evas.c_evas.Evas_Object *obj)
- void elm_win_focus_highlight_enabled_set(evas.c_evas.Evas_Object *obj, evas.c_evas.Eina_Bool enabled)
- evas.c_evas.Eina_Bool elm_win_focus_highlight_enabled_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_indicator_mode_set(evas.c_evas.Evas_Object *obj, Elm_Win_Indicator_Mode mode)
+ Elm_Win_Indicator_Mode elm_win_indicator_mode_get(evas.c_evas.Evas_Object *obj)
+ void elm_win_indicator_opacity_set(evas.c_evas.Evas_Object *obj, Elm_Win_Indicator_Opacity_Mode mode)
+ Elm_Win_Indicator_Opacity_Mode elm_win_indicator_opacity_get(evas.c_evas.Evas_Object *obj)
+
+ void elm_win_screen_position_get(evas.c_evas.Evas_Object *obj, int *x, int *y)
+ evas.c_evas.Eina_Bool elm_win_socket_listen(evas.c_evas.Evas_Object *obj, char *svcname, int svcnum, evas.c_evas.Eina_Bool svcsys)
# X specific call - wont't work on non-x engines (return 0)
Ecore_X_Window elm_win_xwindow_get(evas.c_evas.Evas_Object *obj)
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel