From 52bfbbc2fac6dd7555a777d38c4f8d8227b41008 Mon Sep 17 00:00:00 2001 From: silverduner Date: Sat, 12 Feb 2022 14:46:12 -0500 Subject: expose position(int, int), x(), y(), w() and h() from Fl_File_Chooser (#80) * expose position(int, int), x(), y(), w() and h() from Fl_File_Chooser for positioning * exposed size() and resize() in Fl_File_Chooser. --- src/Fl_File_Chooser.fl | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) (limited to 'src/Fl_File_Chooser.fl') diff --git a/src/Fl_File_Chooser.fl b/src/Fl_File_Chooser.fl index 1dcf365b4..4d4d1107c 100644 --- a/src/Fl_File_Chooser.fl +++ b/src/Fl_File_Chooser.fl @@ -389,7 +389,8 @@ else } Function {user_data(void *d)} {return_type void } { - code {data_ = d;} {} + code {data_ = d;} {selected + } } decl {const char *value(int f = 1);} {public local } @@ -399,6 +400,34 @@ else } { code {return window->visible();} {} } + Function {position(int x, int y)} {return_type void + } { + code {window->position(x, y);} {} + } + Function {x() const} {return_type int + } { + code {return window->x();} {} + } + Function {y() const} {return_type int + } { + code {return window->y();} {} + } + Function {w() const} {return_type int + } { + code {return window->w();} {} + } + Function {h() const} {return_type int + } { + code {return window->h();} {} + } + Function {size(int w, int h)} {open return_type void + } { + code {window->size(w, h);} {} + } + Function {resize(int x, int y, int w, int h)} {open return_type void + } { + code {window->resize(x, y, w, h);} {} + } decl {static const char *add_favorites_label;} { comment {[standard text may be customized at run-time]} public local } -- cgit v1.2.3