diff options
author | 2023-05-30 00:43:07 +0200 | |
---|---|---|
committer | 2023-05-30 00:43:21 +0200 | |
commit | 769cd86117adeb23adc6861d00bd7b2361e503ad (patch) | |
tree | 582fc964cc61b5067c892958b8f5cf6a2a4cf5da /src/window.c | |
parent | 1e953244c00b01b33e6ad2f090118fc30f150cba (diff) | |
download | cherry-769cd86117adeb23adc6861d00bd7b2361e503ad.tar.gz cherry-769cd86117adeb23adc6861d00bd7b2361e503ad.zip |
Add cherry_window_get_position() function
Diffstat (limited to 'src/window.c')
-rw-r--r-- | src/window.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c index eaee6c0..150d8ef 100644 --- a/src/window.c +++ b/src/window.c @@ -151,6 +151,12 @@ cherry_window_set_dimension(CherryWindow *window, int width, int height) } } +cherry_window_get_position(CherryWindow *window, int *x, int *y) +{ + CherryWidget *widget = (CherryWidget *) window; + cherry_widget_get_position(widget, x, y); +} + void cherry_window_set_position(CherryWindow *w, int x, int y) { @@ -164,7 +170,6 @@ cherry_window_set_position(CherryWindow *w, int x, int y) } void -cherry_window_set_visible(CherryWindow *w, int visible) cherry_window_set_visible(CherryWindow *window, int visible) { CherryApplication *app = cherry_application_get_running_app(); |