elm_scroller: Move enums to elm_scroller.eo

Move enums from elm_scroller_common.h to elm_scroller.eo in order to make them
more accessible for bindings. Delete elm_scroller_common.h.

Moved the include for elm_scroller.eo.legacy.h to the top of elm_scroller_legacy.h
to allow the use of the generated types in the function declarations.
This commit is contained in:
Yakov Goldberg 2015-05-13 19:26:12 +03:00
parent d3750c504f
commit 21b4fd4d58
6 changed files with 47 additions and 55 deletions

View File

@ -337,7 +337,6 @@ elm_route_legacy.h \
elm_scale.h \
elm_scroll.h \
elm_scroller.h \
elm_scroller_common.h \
elm_scroller_eo.h \
elm_scroller_legacy.h \
elm_segment_control.h \

View File

@ -139,8 +139,8 @@ mixin Elm_Interface_Scrollable(Evas.Scrollable_Interface, Evas.Object_Smart)
get {
}
values {
Elm_Scroller_Policy hbar; /*@ Horizontal scrollbar policy */
Elm_Scroller_Policy vbar; /*@ Vertical scrollbar policy */
Elm.Scroller.Policy hbar; /*@ Horizontal scrollbar policy */
Elm.Scroller.Policy vbar; /*@ Vertical scrollbar policy */
}
}
@property content_region {

View File

@ -1,3 +1,47 @@
enum Elm.Scroller.Policy
{
/*@
@brief Type that controls when scrollbars should appear.
@see elm_scroller_policy_set()
@ingroup Scroller
*/
auto = 0, /*@< Show scrollbars as needed */
on, /*@< Always show scrollbars */
off, /*@< Never show scrollbars */
last
}
enum Elm.Scroller.Single_Direction
{
/*@
@brief Type that controls how the content is scrolled.
@see elm_scroller_single_direction_set()
@ingroup Scroller
*/
none = 0, /*@< Scroll every direction */
soft, /*@< Scroll single direction if the direction is certain*/
hard, /*@< Scroll only single direction */
last
}
enum Elm.Scroller.Movement_Block
{
/*@
@brief Type that blocks the scroll movement in one or more direction.
@see elm_scroller_movement_block()
@since 1.8
@ingroup Scroller
*/
legacy: elm_scroller_movement;
no_block = 1 << 0, /*@< Do not block movements */
block_vertical = 1 << 1, /*@< Block vertical movements */
block_horizontal = 1 << 2 /*@< Block horizontal movements */
}
class Elm.Scroller (Elm.Layout, Elm_Interface_Scrollable,
Elm_Interface_Atspi_Widget_Action)
{

View File

@ -64,7 +64,6 @@
* @{
*/
#include <elm_scroller_common.h>
#ifdef EFL_EO_API_SUPPORT
#include <elm_scroller_eo.h>
#endif

View File

@ -1,49 +0,0 @@
/**
* @addtogroup Scroller
*
* @{
*/
/**
* @brief Type that controls when scrollbars should appear.
*
* @see elm_scroller_policy_set()
*/
typedef enum
{
ELM_SCROLLER_POLICY_AUTO = 0, /**< Show scrollbars as needed */
ELM_SCROLLER_POLICY_ON, /**< Always show scrollbars */
ELM_SCROLLER_POLICY_OFF, /**< Never show scrollbars */
ELM_SCROLLER_POLICY_LAST
} Elm_Scroller_Policy;
/**
* @brief Type that controls how the content is scrolled.
*
* @see elm_scroller_single_direction_set()
*/
typedef enum
{
ELM_SCROLLER_SINGLE_DIRECTION_NONE = 0, /**< Scroll every direction */
ELM_SCROLLER_SINGLE_DIRECTION_SOFT, /**< Scroll single direction if the direction is certain*/
ELM_SCROLLER_SINGLE_DIRECTION_HARD, /**< Scroll only single direction */
ELM_SCROLLER_SINGLE_DIRECTION_LAST
} Elm_Scroller_Single_Direction;
/**
* @brief Type that blocks the scroll movement in one or more direction.
*
* @see elm_scroller_movement_block()
*
* @since 1.8
*/
typedef enum
{
ELM_SCROLLER_MOVEMENT_NO_BLOCK = 1 << 0, /**< Do not block movements */
ELM_SCROLLER_MOVEMENT_BLOCK_VERTICAL = 1 << 1, /**< Block vertical movements */
ELM_SCROLLER_MOVEMENT_BLOCK_HORIZONTAL = 1 << 2 /**< Block horizontal movements */
} Elm_Scroller_Movement_Block;
/**
* @}
*/

View File

@ -1,3 +1,4 @@
#include "elm_scroller.eo.legacy.h"
/**
* @brief Add a new scroller to the parent
*
@ -524,5 +525,3 @@ EAPI void elm_scroller_loop_set(Evas_Object *obj, Eina_
* @ingroup Scroller
*/
EAPI void elm_scroller_loop_get(const Evas_Object *obj, Eina_Bool *loop_h, Eina_Bool *loop_v);
#include "elm_scroller.eo.legacy.h"