PCL
|
A label/edit compound control to edit numeric parameters. More...
#include <NumericControl.h>
Public Types | |
using | value_event_handler = void(Control::*)(NumericEdit &sender, double value) |
Public Types inherited from pcl::Control | |
using | child_event_handler = void(Control::*)(Control &sender, Control &child) |
using | close_event_handler = void(Control::*)(Control &sender, bool &allowClose) |
using | event_handler = void(Control::*)(Control &sender) |
using | file_drag_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const StringList &files, unsigned modifiers, bool &wantsFiles) |
using | file_drop_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const StringList &files, unsigned modifiers) |
using | keyboard_event_handler = void(Control::*)(Control &sender, int key, unsigned modifiers, bool &wantsKey) |
using | mouse_button_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, int button, unsigned buttons, unsigned modifiers) |
using | mouse_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, unsigned buttons, unsigned modifiers) |
using | mouse_wheel_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, int delta, unsigned buttons, unsigned modifiers) |
using | move_event_handler = void(Control::*)(Control &sender, const pcl::Point &newPos, const pcl::Point &oldPos) |
using | paint_event_handler = void(Control::*)(Control &sender, const pcl::Rect &updateRect) |
using | resize_event_handler = void(Control::*)(Control &sender, int newWidth, int newHeight, int oldWidth, int oldHeight) |
using | view_drag_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const View &view, unsigned modifiers, bool &wantsView) |
using | view_drop_event_handler = void(Control::*)(Control &sender, const pcl::Point &pos, const View &view, unsigned modifiers) |
Public Attributes | |
Edit | edit |
The Edit part of this NumericEdit control. | |
Label | label |
The Label part of this NumericEdit control. | |
HorizontalSizer | sizer |
The Sizer object of this NumericEdit control. | |
Additional Inherited Members | |
Static Public Member Functions inherited from pcl::Control | |
static void | HideToolTip () |
static Control & | Null () |
static void | ShowToolTip (const Point &pos, const String &text, const Control &control=Control::Null(), const Rect &rect=Rect(0)) |
static void | ShowToolTip (int x, int y, const String &text, const Control &control=Control::Null(), const Rect &rect=Rect(0)) |
static String | ToolTipText () |
Static Public Member Functions inherited from pcl::UIObject | |
static UIObject & | Null () |
Protected Member Functions inherited from pcl::UIObject | |
UIObject ()=default | |
UIObject (const UIObject &x) | |
UIObject (UIObject &&x) | |
UIObject & | operator= (const UIObject &x) |
UIObject & | operator= (UIObject &&x) |
Definition at line 78 of file NumericControl.h.
using pcl::NumericEdit::value_event_handler = void (Control::*)( NumericEdit& sender, double value ) |
#
Definition at line 324 of file NumericControl.h.
Constructs a NumericEdit object as a child control of parent.
|
inlineoverride |
Destroys a NumericEdit object.
Definition at line 94 of file NumericControl.h.
void pcl::NumericEdit::AdjustEditWidth | ( | ) |
#
|
inline |
#
Definition at line 286 of file NumericControl.h.
|
inline |
Disables the fixed precision property of this NumericEdit object. See IsFixedPrecision() for detailed information.
Definition at line 217 of file NumericControl.h.
|
inline |
#
Definition at line 264 of file NumericControl.h.
|
inline |
#
Definition at line 235 of file NumericControl.h.
|
inline |
Disables the use of validating regular expressions.
Definition at line 312 of file NumericControl.h.
|
inline |
#
Definition at line 278 of file NumericControl.h.
void pcl::NumericEdit::EnableFixedPrecision | ( | bool | enable = true | ) |
Enables the fixed precision property of this NumericEdit object. See IsFixedPrecision() for detailed information.
void pcl::NumericEdit::EnableFixedSign | ( | bool | enable = true | ) |
#
void pcl::NumericEdit::EnableScientificNotation | ( | bool | enable = true | ) |
#
|
inline |
Enables the use of validating regular expressions.
Definition at line 303 of file NumericControl.h.
|
inline |
#
Definition at line 271 of file NumericControl.h.
|
inline |
Returns true if the precision property is being applied literally as a fixed number of digits after the decimal separator. Returns false if precision refers to the number of represented significant digits.
For example, if the current value is 123.45678 and precision is 4, the represented value would be:
With fixed precision enabled: 123.4568
With fixed precision disabled: 123.5
By default, the precision property of a NumericEdit control refers to the number of represented significant digits, so fixed precision is disabled by default.
Definition at line 202 of file NumericControl.h.
|
inline |
#
Definition at line 253 of file NumericControl.h.
|
inline |
#
Definition at line 132 of file NumericControl.h.
|
inline |
#
Definition at line 224 of file NumericControl.h.
|
inline |
Returns true
if validating regular expressions are used to filter text input, false
is the user is allowed to enter any characters freely.
Definition at line 295 of file NumericControl.h.
|
inline |
#
Definition at line 150 of file NumericControl.h.
int pcl::NumericEdit::MinEditWidth | ( | ) | const |
#
void pcl::NumericEdit::OnValueUpdated | ( | value_event_handler | , |
Control & | |||
) |
#
|
inline |
#
Definition at line 176 of file NumericControl.h.
|
inline |
#
Definition at line 242 of file NumericControl.h.
|
inline |
#
Definition at line 143 of file NumericControl.h.
void pcl::NumericEdit::SetPrecision | ( | int | n | ) |
#
|
virtual |
Sets the range of allowed control values.
lower | Minimum allowed control value, or lower bound. |
upper | Maximum allowed control value, or upper bound. |
If the specified lower and upper bounds are not sorted in ascending order, this member function will swap them automatically.
Reimplemented in pcl::NumericControl.
void pcl::NumericEdit::SetReal | ( | bool | real = true | ) |
#
void pcl::NumericEdit::SetScientificNotationTriggerExponent | ( | int | exp10 | ) |
#
void pcl::NumericEdit::SetValue | ( | double | ) |
Sets the current value of this NumericEdit object.
|
inline |
#
Definition at line 157 of file NumericControl.h.
|
inline |
Returns the current value of this NumericEdit object.
Definition at line 101 of file NumericControl.h.
|
inline |
#
Definition at line 117 of file NumericControl.h.
String pcl::NumericEdit::ValueAsString | ( | double | ) | const |
#