forked from enlightenment/efl
elm_win: do not implement aspect_get()
this breaks aspect hints. @fix
This commit is contained in:
parent
4f2b4d870a
commit
812be4a43b
|
@ -183,7 +183,6 @@ struct _Efl_Ui_Win_Data
|
||||||
void *trap_data;
|
void *trap_data;
|
||||||
|
|
||||||
double aspect; /* defined as w/h or 0 */
|
double aspect; /* defined as w/h or 0 */
|
||||||
int aspect_w, aspect_h; /* used for the get API */
|
|
||||||
int size_base_w, size_base_h;
|
int size_base_w, size_base_h;
|
||||||
int size_step_w, size_step_h;
|
int size_step_w, size_step_h;
|
||||||
int req_x, req_y, req_w, req_h;
|
int req_x, req_y, req_w, req_h;
|
||||||
|
@ -5899,21 +5898,11 @@ _win_aspect_get(Efl_Ui_Win_Data *sd)
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
_efl_ui_win_efl_gfx_size_hint_hint_aspect_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd,
|
_efl_ui_win_efl_gfx_size_hint_hint_aspect_set(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd,
|
||||||
Efl_Gfx_Size_Hint_Aspect mode EINA_UNUSED, int w, int h)
|
Efl_Gfx_Size_Hint_Aspect mode, int w, int h)
|
||||||
{
|
{
|
||||||
pd->aspect_w = w;
|
|
||||||
pd->aspect_h = h;
|
|
||||||
if (h) _win_aspect_set(pd, (double) w / (double) h);
|
if (h) _win_aspect_set(pd, (double) w / (double) h);
|
||||||
else _win_aspect_set(pd, 0.0);
|
else _win_aspect_set(pd, 0.0);
|
||||||
}
|
efl_gfx_size_hint_aspect_set(efl_super(obj, MY_CLASS), mode, w, h);
|
||||||
|
|
||||||
EOLIAN static void
|
|
||||||
_efl_ui_win_efl_gfx_size_hint_hint_aspect_get(Eo *obj EINA_UNUSED, Efl_Ui_Win_Data *pd,
|
|
||||||
Efl_Gfx_Size_Hint_Aspect *mode, int *w, int *h)
|
|
||||||
{
|
|
||||||
if (mode) *mode = EFL_GFX_SIZE_HINT_ASPECT_NONE;
|
|
||||||
if (w) *w = pd->aspect_w;
|
|
||||||
if (h) *h = pd->aspect_h;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EOLIAN static void
|
EOLIAN static void
|
||||||
|
|
|
@ -953,7 +953,7 @@ class Efl.Ui.Win (Elm.Widget, Efl.Canvas, Elm.Interface.Atspi.Window,
|
||||||
Efl.Screen.screen_size { get; }
|
Efl.Screen.screen_size { get; }
|
||||||
Efl.Gfx.Size.Hint.hint_base { get; set; }
|
Efl.Gfx.Size.Hint.hint_base { get; set; }
|
||||||
Efl.Gfx.Size.Hint.hint_step { get; set; }
|
Efl.Gfx.Size.Hint.hint_step { get; set; }
|
||||||
Efl.Gfx.Size.Hint.hint_aspect { get; set; }
|
Efl.Gfx.Size.Hint.hint_aspect { set; }
|
||||||
Efl.Gfx.Size.Hint.hint_max { set; }
|
Efl.Gfx.Size.Hint.hint_max { set; }
|
||||||
Efl.Text.text { get; set; }
|
Efl.Text.text { get; set; }
|
||||||
Efl.Input.Interface.pointer_xy { get; }
|
Efl.Input.Interface.pointer_xy { get; }
|
||||||
|
|
Loading…
Reference in New Issue