ecore_cocoa: implement and const-correct window size max getter

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

View File

@ -220,9 +220,9 @@ EAPI void ecore_cocoa_window_size_max_set(Ecore_Cocoa_Window *window,
unsigned int max_width,
unsigned int max_height);
EAPI void ecore_cocoa_window_size_max_get(Ecore_Cocoa_Window *window,
unsigned int *max_width,
unsigned int *max_height);
EAPI void ecore_cocoa_window_size_max_get(const Ecore_Cocoa_Window *window,
unsigned int *max_width,
unsigned int *max_height);
EAPI void ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
unsigned int step_width,

View File

@ -371,6 +371,18 @@ ecore_cocoa_window_size_max_set(Ecore_Cocoa_Window *window,
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
ecore_cocoa_window_size_step_set(Ecore_Cocoa_Window *window,
unsigned int w,