#EFL_GFX_SIZE_HINT_FILL, to use as vertical alignment hint.]]
}
}
- @property hint_display_mode {
- [[A hint for an object's display mode.
-
- These are hints on the display mode $obj. This is not a size
- enforcement in any way, it's just a hint that can be used
- whenever appropriate. This mode can be used object's display
- mode like commpress or expand.
-
- This is not a size enforcement in any way, it's just a hint
- that can be used whenever appropriate. Very few widgets implement
- support for this hint for now.
- ]]
- values {
- dispmode: Efl.Gfx.Size.Hint.Mode; [[Display mode hint.]]
- }
- }
}
events {
change,size,hints; [[Object size hints changed.]]
unknown_collection = 9, [[(Edje only) The group/collection set to load from was not found in the file]]
recursive_reference = 10 [[(Edje only) The group/collection set to load from had recursive references on its components]]
}
-
-enum Efl.Gfx.Size.Hint.Mode {
- [[Display mode size hint.]]
- none = 0, [[Default mode]]
- compress = 1, [[Use this mode when you want to give compress display mode
- hint to an object]]
- expand = 2, [[Use this mode when you want to give expand display mode hint
- to an object]]
- dont_change = 3 [[Use this mode when an object should not change its display
- mode]]
-}
* After keypad showing, conform widget can change child's Evas_Display_Mode.
* @ingroup Widget
*/
-EOLIAN static void
-_elm_widget_display_mode_set(Eo *obj, Elm_Widget_Smart_Data *sd, Evas_Display_Mode dispmode)
+/* Legacy only */
+EAPI void
+elm_widget_display_mode_set(Evas_Object *obj, Evas_Display_Mode dispmode)
{
Evas_Display_Mode prev_dispmode;
Evas_Object *child;
Eina_List *l;
+ API_ENTRY return;
prev_dispmode = evas_object_size_hint_display_mode_get(obj);
if ((prev_dispmode == dispmode) ||
sobj: Efl.Canvas.Object @nullable; [[Hover sub object]]
}
}
- @property display_mode {
- [[Display mode property]]
- set {
- }
- values {
- dispmode: Efl.Gfx.Size.Hint.Mode; [[Display mode]]
- }
- }
@property on_show_region_hook {
[[Region hook on show property]]
set {
#define EVAS_ASPECT_CONTROL_VERTICAL EFL_GFX_SIZE_HINT_ASPECT_VERTICAL
#define EVAS_ASPECT_CONTROL_BOTH EFL_GFX_SIZE_HINT_ASPECT_BOTH
-typedef Efl_Gfx_Size_Hint_Mode Evas_Display_Mode;
-
-#define EVAS_DISPLAY_MODE_NONE EFL_GFX_SIZE_HINT_MODE_NONE
-#define EVAS_DISPLAY_MODE_COMPRESS EFL_GFX_SIZE_HINT_MODE_COMPRESS
-#define EVAS_DISPLAY_MODE_EXPAND EFL_GFX_SIZE_HINT_MODE_EXPAND
-#define EVAS_DISPLAY_MODE_DONT_CHANGE EFL_GFX_SIZE_HINT_MODE_DONT_CHANGE
-
typedef Efl_Text_Bidirectional_Type Evas_BiDi_Direction;
#define EVAS_BIDI_DIRECTION_NATURAL EFL_TEXT_BIDIRECTIONAL_TYPE_NATURAL
*/
EAPI void evas_object_size_hint_aspect_get(const Evas_Object *obj, Evas_Aspect_Control *aspect, Evas_Coord *w, Evas_Coord *h);
+/** Display mode size hint. */
+typedef enum
+{
+ EFL_GFX_SIZE_HINT_MODE_NONE = 0, /**< Default mode */
+ EFL_GFX_SIZE_HINT_MODE_COMPRESS = 1, /**< Use this mode when you want to give
+ * compress display mode hint to an object */
+ EFL_GFX_SIZE_HINT_MODE_EXPAND = 2, /**< Use this mode when you want to give
+ * expand display mode hint to an object */
+ EFL_GFX_SIZE_HINT_MODE_DONT_CHANGE = 3 /**< Use this mode when an object
+ * should not change its display mode */
+} Efl_Gfx_Size_Hint_Mode;
+
+typedef Efl_Gfx_Size_Hint_Mode Evas_Display_Mode;
+
+#define EVAS_DISPLAY_MODE_NONE EFL_GFX_SIZE_HINT_MODE_NONE
+#define EVAS_DISPLAY_MODE_COMPRESS EFL_GFX_SIZE_HINT_MODE_COMPRESS
+#define EVAS_DISPLAY_MODE_EXPAND EFL_GFX_SIZE_HINT_MODE_EXPAND
+#define EVAS_DISPLAY_MODE_DONT_CHANGE EFL_GFX_SIZE_HINT_MODE_DONT_CHANGE
+
/**
* @brief Sets the hints for an object's disply mode,
*
Efl.Gfx.Size.Hint.hint_aspect { get; set; }
Efl.Gfx.Size.Hint.hint_align { get; set; }
Efl.Gfx.Size.Hint.hint_combined_min { get; }
- Efl.Gfx.Size.Hint.hint_display_mode { get; set; }
Efl.Gfx.Size.Hint.hint_restricted_min { get; set; }
Efl.Gfx.Size.Hint.hint_min { get; set; }
Efl.Gfx.Size.Hint.hint_max { get; set; }
obj->size_hints->dispmode = EVAS_DISPLAY_MODE_NONE;
}
-EOLIAN static Evas_Display_Mode
-_efl_canvas_object_efl_gfx_size_hint_hint_display_mode_get(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj)
+/* Legacy only */
+EAPI Evas_Display_Mode
+evas_object_size_hint_display_mode_get(const Evas_Object *eo_obj)
{
- if (!obj) return EVAS_DISPLAY_MODE_NONE;
- if ((!obj->size_hints) || obj->delete_me)
- return EVAS_DISPLAY_MODE_NONE;
+ Evas_Object_Protected_Data *obj = EVAS_OBJECT_DATA_SAFE_GET(eo_obj);
+ EVAS_OBJECT_DATA_ALIVE_CHECK(obj, EVAS_DISPLAY_MODE_NONE);
+ if (!obj->size_hints) return EVAS_DISPLAY_MODE_NONE;
return obj->size_hints->dispmode;
}
-EOLIAN static void
-_efl_canvas_object_efl_gfx_size_hint_hint_display_mode_set(Eo *eo_obj EINA_UNUSED, Evas_Object_Protected_Data *obj, Evas_Display_Mode dispmode)
+/* Legacy only */
+EAPI void
+evas_object_size_hint_display_mode_set(Eo *eo_obj, Evas_Display_Mode dispmode)
{
- if (!obj) return;
- if (obj->delete_me) return;
+ Evas_Object_Protected_Data *obj = EVAS_OBJECT_DATA_SAFE_GET(eo_obj);
+ EVAS_OBJECT_DATA_ALIVE_CHECK(obj);
evas_object_async_block(obj);
if (EINA_UNLIKELY(!obj->size_hints))
{
return efl_provider_find((Eo *) eo_obj, EVAS_CANVAS_CLASS);
}
-EAPI void
-evas_object_size_hint_display_mode_set(Evas_Object *obj, Evas_Display_Mode dispmode)
-{
- efl_gfx_size_hint_display_mode_set(obj, dispmode);
-}
-
-EAPI Evas_Display_Mode
-evas_object_size_hint_display_mode_get(const Evas_Object *obj)
-{
- return efl_gfx_size_hint_display_mode_get(obj);
-}
-
/* Internal EO APIs and hidden overrides */
EOAPI EFL_VOID_FUNC_BODY(efl_canvas_object_legacy_ctor)