forked from enlightenment/efl
ecore_cocoa: implement and const-correct window size max getter
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
3eee82de31
commit
070430d51a
|
@ -220,9 +220,9 @@ EAPI void ecore_cocoa_window_size_max_set(Ecore_Cocoa_Window *window,
|
||||||
unsigned int max_width,
|
unsigned int max_width,
|
||||||
unsigned int max_height);
|
unsigned int max_height);
|
||||||
|
|
||||||
EAPI void ecore_cocoa_window_size_max_get(Ecore_Cocoa_Window *window,
|
EAPI void ecore_cocoa_window_size_max_get(const Ecore_Cocoa_Window *window,
|
||||||
unsigned int *max_width,
|
unsigned int *max_width,
|
||||||
unsigned int *max_height);
|
unsigned int *max_height);
|
||||||
|
|
||||||
EAPI void ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
|
EAPI void ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
|
||||||
unsigned int step_width,
|
unsigned int step_width,
|
||||||
|
|
|
@ -371,6 +371,18 @@ ecore_cocoa_window_size_max_set(Ecore_Cocoa_Window *window,
|
||||||
window->window.contentMaxSize = NSMakeSize(w, h);
|
window->window.contentMaxSize = NSMakeSize(w, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EAPI void
|
||||||
|
ecore_cocoa_window_size_max_get(const Ecore_Cocoa_Window *window,
|
||||||
|
unsigned int *max_width,
|
||||||
|
unsigned int *max_height)
|
||||||
|
{
|
||||||
|
EINA_SAFETY_ON_NULL_RETURN(window);
|
||||||
|
|
||||||
|
const NSSize size = window->window.contentMaxSize;
|
||||||
|
if (max_width) *max_width = size.width;
|
||||||
|
if (max_height) *max_height = size.height;
|
||||||
|
}
|
||||||
|
|
||||||
EAPI void
|
EAPI void
|
||||||
ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
|
ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
|
||||||
unsigned int w,
|
unsigned int w,
|
||||||
|
|
Loading…
Reference in New Issue