/* visibility flag */
Eina_Bool visible : 1;
+
+ /* resizing flag */
+ Eina_Bool resizing : 1;
+
+ /* coordinates where the user clicked to start resizing */
+ Evas_Coord rx, ry;
};
/* smart function prototypes */
evas_object_resize(sd->o_base, w, h);
/* evas_object_resize(sd->o_bg, w, h + 30); */
+
+ /* if user is manually resizing the object, then update the size text */
+ if (sd->resizing) _e_smart_monitor_resolution_set(sd, sd->cw, sd->ch);
}
static void
/* try to get the monitor smart data */
if (!(sd = evas_object_smart_data_get(mon))) return;
+
+ /* record current position of mouse */
+ evas_pointer_canvas_xy_get(sd->evas, &sd->rx, &sd->ry);
+
+ /* record current size of monitor */
+ evas_object_grid_pack_get(sd->grid, mon, NULL, NULL, &sd->cw, &sd->ch);
+
+ /* set resizing flag */
+ sd->resizing = EINA_TRUE;
}
static void
/* try to get the monitor smart data */
if (!(sd = evas_object_smart_data_get(mon))) return;
+
+ /* set resizing flag */
+ sd->resizing = EINA_FALSE;
}