summaryrefslogtreecommitdiff
path: root/efl
diff options
context:
space:
mode:
authordavemds <dave@gurumeditation.it>2014-07-31 17:01:53 +0200
committerdavemds <dave@gurumeditation.it>2014-07-31 17:01:53 +0200
commit1af5adb8cd2bddc404a2f480f7f9d066ad286bd1 (patch)
tree96fcab45894c1b724892b86b5c4abf50acbde182 /efl
parentf9247fa99f33e53b304f73c41f8b8639ef3f2462 (diff)
Panes: new content_[left/right]_min_[relative]_size properties
Diffstat (limited to 'efl')
-rw-r--r--efl/elementary/map.pyx2
-rw-r--r--efl/elementary/panes.pxd10
-rw-r--r--efl/elementary/panes.pyx62
3 files changed, 73 insertions, 1 deletions
diff --git a/efl/elementary/map.pyx b/efl/elementary/map.pyx
index 8c2a3a8..83b6e31 100644
--- a/efl/elementary/map.pyx
+++ b/efl/elementary/map.pyx
@@ -1107,6 +1107,8 @@ cdef class Map(Object):
1107 :param lat: The latitude to center at 1107 :param lat: The latitude to center at
1108 :type lat: float 1108 :type lat: float
1109 1109
1110 .. versionadded:: 1.11
1111
1110 """ 1112 """
1111 elm_map_region_zoom_bring_in(self.obj, zoom, lon, lat) 1113 elm_map_region_zoom_bring_in(self.obj, zoom, lon, lat)
1112 1114
diff --git a/efl/elementary/panes.pxd b/efl/elementary/panes.pxd
index 1672b59..71a89e1 100644
--- a/efl/elementary/panes.pxd
+++ b/efl/elementary/panes.pxd
@@ -1,4 +1,4 @@
1from efl.evas cimport Eina_Bool, Evas_Object 1from efl.evas cimport Eina_Bool, Evas_Object, Evas_Coord
2 2
3cdef extern from "Elementary.h": 3cdef extern from "Elementary.h":
4 Evas_Object *elm_panes_add(Evas_Object *parent) 4 Evas_Object *elm_panes_add(Evas_Object *parent)
@@ -8,5 +8,13 @@ cdef extern from "Elementary.h":
8 void elm_panes_content_left_size_set(Evas_Object *obj, double size) 8 void elm_panes_content_left_size_set(Evas_Object *obj, double size)
9 double elm_panes_content_right_size_get(const Evas_Object *obj) 9 double elm_panes_content_right_size_get(const Evas_Object *obj)
10 void elm_panes_content_right_size_set(Evas_Object *obj, double size) 10 void elm_panes_content_right_size_set(Evas_Object *obj, double size)
11 void elm_panes_content_left_min_relative_size_set(Evas_Object *obj, double size)
12 double elm_panes_content_left_min_relative_size_get(const Evas_Object *obj)
13 void elm_panes_content_right_min_relative_size_set(Evas_Object *obj, double size)
14 double elm_panes_content_right_min_relative_size_get(const Evas_Object *obj)
15 void elm_panes_content_left_min_size_set(Evas_Object *obj, Evas_Coord size)
16 Evas_Coord elm_panes_content_left_min_size_get(const Evas_Object *obj)
17 void elm_panes_content_right_min_size_set(Evas_Object *obj, Evas_Coord size)
18 Evas_Coord elm_panes_content_right_min_size_get(const Evas_Object *obj)
11 void elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal) 19 void elm_panes_horizontal_set(Evas_Object *obj, Eina_Bool horizontal)
12 Eina_Bool elm_panes_horizontal_get(const Evas_Object *obj) 20 Eina_Bool elm_panes_horizontal_get(const Evas_Object *obj)
diff --git a/efl/elementary/panes.pyx b/efl/elementary/panes.pyx
index fac2d53..42c064d 100644
--- a/efl/elementary/panes.pyx
+++ b/efl/elementary/panes.pyx
@@ -125,6 +125,68 @@ cdef class Panes(LayoutClass):
125 def __set__(self, size): 125 def __set__(self, size):
126 elm_panes_content_right_size_set(self.obj, size) 126 elm_panes_content_right_size_set(self.obj, size)
127 127
128 property content_left_min_relative_size:
129 """The relative minimum size of panes widget's left side.
130
131 The value must be between 0.0 and 1.0 representing size
132 proportion of minimum size of left side.
133
134 :type: float
135
136 .. versionadded:: 1.11
137
138 """
139 def __get__(self):
140 return elm_panes_content_left_min_relative_size_get(self.obj)
141 def __set__(self, size):
142 elm_panes_content_left_min_relative_size_set(self.obj, size)
143
144 property content_right_min_relative_size:
145 """The relative minimum size of panes widget's right side.
146
147 The value must be between 0.0 and 1.0 representing size
148 proportion of minimum size of right side.
149
150 :type: float
151
152 .. versionadded:: 1.11
153
154 """
155 def __get__(self):
156 return elm_panes_content_right_min_relative_size_get(self.obj)
157 def __set__(self, size):
158 elm_panes_content_right_min_relative_size_set(self.obj, size)
159
160 property content_left_min_size:
161 """The absolute minimum size of panes widget's left side.
162
163 The value represent the minimum size of left side in pixels.
164
165 :type: int
166
167 .. versionadded:: 1.11
168
169 """
170 def __get__(self):
171 return elm_panes_content_left_min_size_get(self.obj)
172 def __set__(self, size):
173 elm_panes_content_left_min_size_set(self.obj, size)
174
175 property content_right_min_size:
176 """The absolute minimum size of panes widget's right side.
177
178 The value represent the minimum size of right side in pixels.
179
180 :type: int
181
182 .. versionadded:: 1.11
183
184 """
185 def __get__(self):
186 return elm_panes_content_right_min_size_get(self.obj)
187 def __set__(self, size):
188 elm_panes_content_right_min_size_set(self.obj, size)
189
128 property horizontal: 190 property horizontal:
129 """The orientation of a given panes widget. 191 """The orientation of a given panes widget.
130 192