ecore_cocoa: implement and const-correct window size step getter

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
Jean Guyomarc'h 2016-01-05 23:58:04 +01:00 committed by Cedric BAIL
parent 070430d51a
commit f85667c3fc
2 changed files with 15 additions and 3 deletions

View File

@ -228,9 +228,9 @@ EAPI void ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
unsigned int step_width,
unsigned int step_height);
EAPI void ecore_cocoa_window_size_step_get(Ecore_Cocoa_Window *window,
unsigned int *step_width,
unsigned int *step_height);
EAPI void ecore_cocoa_window_size_step_get(const Ecore_Cocoa_Window *window,
unsigned int *step_width,
unsigned int *step_height);
EAPI void ecore_cocoa_window_show(Ecore_Cocoa_Window *window);

View File

@ -393,6 +393,18 @@ ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
window->window.contentResizeIncrements = NSMakeSize(w, h);
}
EAPI void
ecore_cocoa_window_size_step_get(const Ecore_Cocoa_Window *window,
unsigned int *step_width,
unsigned int *step_height)
{
EINA_SAFETY_ON_NULL_RETURN(window);
const NSSize size = window->window.contentResizeIncrements;
if (step_width) *step_width = size.width;
if (step_height) *step_height = size.height;
}
EAPI void
ecore_cocoa_window_move(Ecore_Cocoa_Window *window,
int x,