summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2016-02-02 18:37:06 -0200
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-02-09 14:14:09 -0200
commitb44ba3cdef37fa0c9397e9b3b07cfa5a35fa170a (patch)
tree46d4a099eb680ec586dd68e0a087befad5ea3375
parentbd29d628f9b129c26a70272da8eee931832bc425 (diff)
elm genlist: use Eolian conventions for Elm.List.Mode in elm_genlist.eo
Use Eolian names for types and values of the enumeration Elm.List.Mode, instead of legacy names, in elm_genlist.eo.
-rw-r--r--src/lib/elm_genlist.eo15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/elm_genlist.eo b/src/lib/elm_genlist.eo
index 84a7e9a02..5ab6266ce 100644
--- a/src/lib/elm_genlist.eo
+++ b/src/lib/elm_genlist.eo
@@ -1,4 +1,5 @@
1import elm_general; 1import elm_general;
2import elm_list;
2 3
3class Elm.Genlist (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface, 4class Elm.Genlist (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interface,
4 Elm.Interface_Atspi_Widget_Action, Elm.Interface_Atspi_Selection, 5 Elm.Interface_Atspi_Widget_Action, Elm.Interface_Atspi_Selection,
@@ -221,25 +222,25 @@ class Elm.Genlist (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interfac
221 [[This sets the horizontal stretching mode. 222 [[This sets the horizontal stretching mode.
222 223
223 This sets the mode used for sizing items horizontally. Valid 224 This sets the mode used for sizing items horizontally. Valid
224 modes are #ELM_LIST_LIMIT, #ELM_LIST_SCROLL, and 225 modes are @Elm.List.Mode.limit, @Elm.List.Mode.scroll, and
225 #ELM_LIST_COMPRESS. The default is #ELM_LIST_SCROLL. This mode 226 @Elm.List.Mode.compress. The default is @Elm.List.Mode.scroll. This mode
226 means that if items are too wide to fit, the scroller will 227 means that if items are too wide to fit, the scroller will
227 scroll horizontally. Otherwise items are expanded to fill 228 scroll horizontally. Otherwise items are expanded to fill
228 the width of the viewport of the scroller. If it is 229 the width of the viewport of the scroller. If it is
229 #ELM_LIST_LIMIT, items will be expanded to the viewport width 230 @Elm.List.Mode.limit, items will be expanded to the viewport width
230 and limited to that size. If it is #ELM_LIST_COMPRESS, the 231 and limited to that size. If it is @Elm.List.Mode.compress, the
231 item width will be fixed (restricted to a minimum of) to the 232 item width will be fixed (restricted to a minimum of) to the
232 list width when calculating its size in order to allow the 233 list width when calculating its size in order to allow the
233 height to be calculated based on it. This allows, for 234 height to be calculated based on it. This allows, for
234 instance, text block to wrap lines if the Edje part is 235 instance, text block to wrap lines if the Edje part is
235 configured with "text.min: 0 1". 236 configured with "text.min: 0 1".
236 237
237 Note: #ELM_LIST_COMPRESS will make list resize slower as it 238 Note: @Elm.List.Mode.compress will make list resize slower as it
238 will have to recalculate every item height again whenever 239 will have to recalculate every item height again whenever
239 the list width changes! 240 the list width changes!
240 241
241 Note: Homogeneous mode is for that all items in the genlist 242 Note: Homogeneous mode is for that all items in the genlist
242 same width/height. With #ELM_LIST_COMPRESS, it makes genlist 243 same width/height. With @Elm.List.Mode.compress, it makes genlist
243 items to fast initializing. However there's no sub-objects 244 items to fast initializing. However there's no sub-objects
244 in genlist which can be on the flying resizable (such as 245 in genlist which can be on the flying resizable (such as
245 TEXTBLOCK). If then, some dynamic esizable objects in 246 TEXTBLOCK). If then, some dynamic esizable objects in
@@ -250,7 +251,7 @@ class Elm.Genlist (Elm.Layout, Elm.Interface_Scrollable, Evas.Clickable_Interfac
250 [[Get the horizontal stretching mode.]] 251 [[Get the horizontal stretching mode.]]
251 } 252 }
252 values { 253 values {
253 mode: Elm_List_Mode(4); [[The mode to use (one of #ELM_LIST_SCROLL or #ELM_LIST_LIMIT).]] 254 mode: Elm.List.Mode(Elm.List.Mode.last); [[The mode to use (one of @Elm.List.Mode.scroll or @Elm.List.Mode.limit).]]
254 } 255 }
255 } 256 }
256 @property decorated_item { 257 @property decorated_item {