Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
int width,
int height);
-EAPI void ecore_cocoa_window_geometry_get(Ecore_Cocoa_Window *window,
- int *x,
- int *y,
- int *width,
- int *height);
+EAPI void ecore_cocoa_window_geometry_get(const Ecore_Cocoa_Window *window,
+ int *x,
+ int *y,
+ int *w,
+ int *h);
EAPI void ecore_cocoa_window_size_get(Ecore_Cocoa_Window *window,
int *width,
}
EAPI void
+ecore_cocoa_window_geometry_get(const Ecore_Cocoa_Window *window,
+ int *x,
+ int *y,
+ int *w,
+ int *h)
+{
+ EINA_SAFETY_ON_NULL_RETURN(window);
+
+ const NSRect frame = window->window.frame;
+ if (x) *x = frame.origin.x;
+ if (y) *y = frame.origin.y;
+ if (w) *w = frame.size.width;
+ if (h) *h = frame.size.height;
+}
+
+EAPI void
ecore_cocoa_window_move_resize(Ecore_Cocoa_Window *window,
int x,
int y,