panel: add elm_panel_scrollable_get()
authorChunEon Park <hermet@hermet.pe.kr>
Mon, 6 Oct 2014 03:11:05 +0000 (12:11 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Mon, 6 Oct 2014 03:11:05 +0000 (12:11 +0900)
src/lib/elm_panel.c
src/lib/elm_panel.eo

index 0784c49..a4a8f87 100644 (file)
@@ -1285,6 +1285,12 @@ _elm_panel_scrollable_content_size_set(Eo *obj, Elm_Panel_Data *sd, double ratio
    ecore_animator_add(_elm_panel_anim_cb, obj);
 }
 
+EOLIAN static Eina_Bool
+_elm_panel_scrollable_get(Eo *obj, Elm_Panel_Data *sd)
+{
+   return sd->scrollable;
+}
+
 EOLIAN static void
 _elm_panel_scrollable_set(Eo *obj, Elm_Panel_Data *sd, Eina_Bool scrollable)
 {
index 3f37a3f..379e32c 100644 (file)
@@ -53,6 +53,15 @@ class Elm_Panel (Elm_Layout, Elm_Interface_Scrollable,
 
             @ingroup Panel */
          }
+         get {
+            /*@
+            @brief Get the state of the scrollability.
+
+            @return EINA_TRUE if it is scrollable
+
+            @ingroup Panel
+            @since 1.12 */
+         }
          values {
             bool scrollable;
          }