mirror of
https://github.com/fltk/fltk.git
synced 2026-06-01 06:14:28 +08:00
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.
This commit is contained in:
@@ -164,6 +164,13 @@ public:
|
|||||||
const char *value(int f = 1);
|
const char *value(int f = 1);
|
||||||
void value(const char *filename);
|
void value(const char *filename);
|
||||||
int visible();
|
int visible();
|
||||||
|
void position(int x, int y);
|
||||||
|
int x() const;
|
||||||
|
int y() const;
|
||||||
|
int w() const;
|
||||||
|
int h() const;
|
||||||
|
void size(int w, int h);
|
||||||
|
void resize(int x, int y, int w, int h);
|
||||||
/**
|
/**
|
||||||
[standard text may be customized at run-time]
|
[standard text may be customized at run-time]
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -454,6 +454,34 @@ int Fl_File_Chooser::visible() {
|
|||||||
return window->visible();
|
return window->visible();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Fl_File_Chooser::position(int x, int y) {
|
||||||
|
window->position(x, y);
|
||||||
|
}
|
||||||
|
|
||||||
|
int Fl_File_Chooser::x() const {
|
||||||
|
return window->x();
|
||||||
|
}
|
||||||
|
|
||||||
|
int Fl_File_Chooser::y() const {
|
||||||
|
return window->y();
|
||||||
|
}
|
||||||
|
|
||||||
|
int Fl_File_Chooser::w() const {
|
||||||
|
return window->w();
|
||||||
|
}
|
||||||
|
|
||||||
|
int Fl_File_Chooser::h() const {
|
||||||
|
return window->h();
|
||||||
|
}
|
||||||
|
|
||||||
|
void Fl_File_Chooser::size(int w, int h) {
|
||||||
|
window->size(w, h);
|
||||||
|
}
|
||||||
|
|
||||||
|
void Fl_File_Chooser::resize(int x, int y, int w, int h) {
|
||||||
|
window->resize(x, y, w, h);
|
||||||
|
}
|
||||||
|
|
||||||
Fl_Widget* Fl_File_Chooser::add_extra(Fl_Widget* gr) {
|
Fl_Widget* Fl_File_Chooser::add_extra(Fl_Widget* gr) {
|
||||||
Fl_Widget* ret=ext_group;
|
Fl_Widget* ret=ext_group;
|
||||||
if (gr==ext_group) {
|
if (gr==ext_group) {
|
||||||
|
|||||||
+30
-1
@@ -389,7 +389,8 @@ else
|
|||||||
}
|
}
|
||||||
Function {user_data(void *d)} {return_type void
|
Function {user_data(void *d)} {return_type void
|
||||||
} {
|
} {
|
||||||
code {data_ = d;} {}
|
code {data_ = d;} {selected
|
||||||
|
}
|
||||||
}
|
}
|
||||||
decl {const char *value(int f = 1);} {public local
|
decl {const char *value(int f = 1);} {public local
|
||||||
}
|
}
|
||||||
@@ -399,6 +400,34 @@ else
|
|||||||
} {
|
} {
|
||||||
code {return window->visible();} {}
|
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;} {
|
decl {static const char *add_favorites_label;} {
|
||||||
comment {[standard text may be customized at run-time]} public local
|
comment {[standard text may be customized at run-time]} public local
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user