forked from enlightenment/efl
ecore_cocoa: implement and const-correct window size step getter
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
070430d51a
commit
f85667c3fc
|
@ -228,9 +228,9 @@ EAPI void ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
|
||||||
unsigned int step_width,
|
unsigned int step_width,
|
||||||
unsigned int step_height);
|
unsigned int step_height);
|
||||||
|
|
||||||
EAPI void ecore_cocoa_window_size_step_get(Ecore_Cocoa_Window *window,
|
EAPI void ecore_cocoa_window_size_step_get(const Ecore_Cocoa_Window *window,
|
||||||
unsigned int *step_width,
|
unsigned int *step_width,
|
||||||
unsigned int *step_height);
|
unsigned int *step_height);
|
||||||
|
|
||||||
EAPI void ecore_cocoa_window_show(Ecore_Cocoa_Window *window);
|
EAPI void ecore_cocoa_window_show(Ecore_Cocoa_Window *window);
|
||||||
|
|
||||||
|
|
|
@ -393,6 +393,18 @@ ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
|
||||||
window->window.contentResizeIncrements = NSMakeSize(w, h);
|
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
|
EAPI void
|
||||||
ecore_cocoa_window_move(Ecore_Cocoa_Window *window,
|
ecore_cocoa_window_move(Ecore_Cocoa_Window *window,
|
||||||
int x,
|
int x,
|
||||||
|
|
Loading…
Reference in New Issue