Date input widget.
More...
#include <CDateControl.h>
|
| CDateControl (int x, int y, int w, int h, const char *label=nullptr) |
|
CSmallButton * | button () |
|
CInput_ * | input () |
|
void | resize (int x, int y, int w, int h) override |
|
void | preferredSize (int &w, int &h, int &editorWidth, int &buttonWidth) |
|
void | preferredHeight (int &h) |
|
|
static void | date_cb (Fl_Widget *w, void *data) |
|
Date input widget.
A masked date input with a small drop-down button inside. Clicking on the button displays the calendar window.
◆ CDateControl()
sptk::CDateControl::CDateControl |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h, |
|
|
const char * |
label = nullptr |
|
) |
| |
Constructor in FLTK style
- Parameters
-
x | int, x-position |
y | int, y-position |
w | int, width |
h | int, height |
label | const char *, label |
◆ button()
Returns internal small button pointer
◆ date_cb()
static void sptk::CDateControl::date_cb |
( |
Fl_Widget * |
w, |
|
|
void * |
data |
|
) |
| |
|
staticprotected |
◆ input()
CInput_ * sptk::CDateControl::input |
( |
| ) |
|
|
inline |
Returns internal input box
◆ preferredHeight()
void sptk::CDateControl::preferredHeight |
( |
int & |
h | ) |
|
Computes the best size for the control
- Parameters
-
◆ preferredSize()
void sptk::CDateControl::preferredSize |
( |
int & |
w, |
|
|
int & |
h, |
|
|
int & |
editorWidth, |
|
|
int & |
buttonWidth |
|
) |
| |
Computes the best size for the control
- Parameters
-
w | int&, control width |
h | int&, control height |
editorWidth | int& the width of date input |
buttonWidth | int& the width of button |
◆ resize()
void sptk::CDateControl::resize |
( |
int |
x, |
|
|
int |
y, |
|
|
int |
w, |
|
|
int |
h |
|
) |
| |
|
override |
Resizes the control.
- Parameters
-
x | int, x-position |
y | int, y-position |
w | int, width |
h | int, height |
The documentation for this class was generated from the following file: