forked from enlightenment/efl
evas_table: remove mirrored property
use efl_ui_base.mirrored instead
This commit is contained in:
parent
f19da9b4a8
commit
e87567c683
|
@ -6912,6 +6912,35 @@ EAPI Eina_List *evas_object_box_children_get(const Evas_Object *
|
||||||
*/
|
*/
|
||||||
EAPI Evas_Object *evas_object_table_add(Evas *evas) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
|
EAPI Evas_Object *evas_object_table_add(Evas *evas) EINA_WARN_UNUSED_RESULT EINA_ARG_NONNULL(1) EINA_MALLOC;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Control the mirrored mode of the table. In mirrored mode, the table
|
||||||
|
* items go from right to left instead of left to right. That is, 1,1 is top
|
||||||
|
* right, not top left.
|
||||||
|
*
|
||||||
|
* @param[in] obj The object.
|
||||||
|
* @param[in] mirrored @c true if mirrored, @c false otherwise
|
||||||
|
*
|
||||||
|
* @since 1.1
|
||||||
|
*
|
||||||
|
* @ingroup Evas_Table
|
||||||
|
*/
|
||||||
|
EAPI void evas_object_table_mirrored_set(Eo *obj, Eina_Bool mirrored);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Control the mirrored mode of the table. In mirrored mode, the table
|
||||||
|
* items go from right to left instead of left to right. That is, 1,1 is top
|
||||||
|
* right, not top left.
|
||||||
|
*
|
||||||
|
* @param[in] obj The object.
|
||||||
|
*
|
||||||
|
* @return @c true if mirrored, @c false otherwise
|
||||||
|
*
|
||||||
|
* @since 1.1
|
||||||
|
*
|
||||||
|
* @ingroup Evas_Table
|
||||||
|
*/
|
||||||
|
EAPI Eina_Bool evas_object_table_mirrored_get(const Eo *obj);
|
||||||
|
|
||||||
#include "canvas/evas_table.eo.legacy.h"
|
#include "canvas/evas_table.eo.legacy.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1418,13 +1418,19 @@ _evas_table_child_get(Eo *o EINA_UNUSED, Evas_Table_Data *priv, unsigned short c
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static Eina_Bool
|
EOLIAN static Eina_Bool
|
||||||
_evas_table_mirrored_get(Eo *o EINA_UNUSED, Evas_Table_Data *priv)
|
_evas_table_efl_ui_base_mirrored_get(Eo *o EINA_UNUSED, Evas_Table_Data *priv)
|
||||||
{
|
{
|
||||||
return priv->is_mirrored;
|
return priv->is_mirrored;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI Eina_Bool
|
||||||
|
evas_object_table_mirrored_get(const Eo *obj)
|
||||||
|
{
|
||||||
|
return efl_ui_mirrored_get(obj);
|
||||||
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_evas_table_mirrored_set(Eo *o, Evas_Table_Data *priv, Eina_Bool mirrored)
|
_evas_table_efl_ui_base_mirrored_set(Eo *o, Evas_Table_Data *priv, Eina_Bool mirrored)
|
||||||
{
|
{
|
||||||
if (priv->is_mirrored != mirrored)
|
if (priv->is_mirrored != mirrored)
|
||||||
{
|
{
|
||||||
|
@ -1433,6 +1439,12 @@ _evas_table_mirrored_set(Eo *o, Evas_Table_Data *priv, Eina_Bool mirrored)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI void
|
||||||
|
evas_object_table_mirrored_set(Eo *obj, Eina_Bool mirrored)
|
||||||
|
{
|
||||||
|
efl_ui_mirrored_set(obj, mirrored);
|
||||||
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_evas_table_class_constructor(Efl_Class *klass)
|
_evas_table_class_constructor(Efl_Class *klass)
|
||||||
{
|
{
|
||||||
|
|
|
@ -86,20 +86,6 @@ class Evas.Table (Efl.Canvas.Group)
|
||||||
vertical: int; [[Vertical padding]]
|
vertical: int; [[Vertical padding]]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@property mirrored {
|
|
||||||
[[Control the mirrored mode of the table. In mirrored mode, the table items go
|
|
||||||
from right to left instead of left to right. That is, 1,1 is top right, not
|
|
||||||
top left.
|
|
||||||
|
|
||||||
@since 1.1]]
|
|
||||||
set {
|
|
||||||
}
|
|
||||||
get {
|
|
||||||
}
|
|
||||||
values {
|
|
||||||
mirrored: bool; [[$true if mirrored, $false otherwise]]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@property col_row_size {
|
@property col_row_size {
|
||||||
get {
|
get {
|
||||||
[[Get the number of columns and rows this table takes.
|
[[Get the number of columns and rows this table takes.
|
||||||
|
@ -220,5 +206,6 @@ class Evas.Table (Efl.Canvas.Group)
|
||||||
Efl.Gfx.size { set; }
|
Efl.Gfx.size { set; }
|
||||||
Efl.Gfx.position { set; }
|
Efl.Gfx.position { set; }
|
||||||
Efl.Canvas.Group.group_calculate;
|
Efl.Canvas.Group.group_calculate;
|
||||||
|
Efl.Ui.Base.mirrored { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue