Version: 2.9.4
Classes | Enumerations | Functions
valnum.h File Reference

クラス

class  wxNumValidator< T >
 wxNumValidator is the common base class for numeric validator classes. More...
class  wxIntegerValidator< T >
 整数を入力するテキスト項目に使用するバリデータ。More...
class  wxFloatingPointValidator< T >
 浮動小数点を入力するテキスト項目に使用するバリデータ。More...

Enumerations

enum  wxNumValidatorStyle {
  wxNUM_VAL_DEFAULT = 0,
  wxNUM_VAL_THOUSANDS_SEPARATOR = 1,
  wxNUM_VAL_ZERO_AS_BLANK = 2,
  wxNUM_VAL_NO_TRAILING_ZEROES
}
 Bit masks used for numeric validator styles. More...

Functions

template<typename T >
wxIntegerValidator< T > wxMakeIntegerValidator (T *value, int style=wxNUM_VAL_DEFAULT)
 Creates a wxIntegerValidator object with automatic type deduction.
template<typename T >
wxFloatingPointValidator< T > wxMakeFloatingPointValidator (T *value, int style=wxNUM_VAL_DEFAULT)
 Creates a wxFloatingPointValidator object with automatic type deduction.
template<typename T >
wxFloatingPointValidator< T > wxMakeFloatingPointValidator (int precision, T *value, int style=wxNUM_VAL_DEFAULT)
 Creates a wxFloatingPointValidator object with automatic type deduction.

Function Documentation

template<typename T >
wxFloatingPointValidator<T> wxMakeFloatingPointValidator ( T *  value,
int  style = wxNUM_VAL_DEFAULT 
) [inline]

Creates a wxFloatingPointValidator object with automatic type deduction.

Similarly to wxMakeIntegerValidator(), this function allows to avoid explicitly specifying the validator type.

Since:
2.9.2
template<typename T >
wxFloatingPointValidator<T> wxMakeFloatingPointValidator ( int  precision,
T *  value,
int  style = wxNUM_VAL_DEFAULT 
) [inline]

Creates a wxFloatingPointValidator object with automatic type deduction.

Similarly to wxMakeIntegerValidator(), this function allows to avoid explicitly specifying the validator type.

Since:
2.9.2
template<typename T >
wxIntegerValidator<T> wxMakeIntegerValidator ( T *  value,
int  style = wxNUM_VAL_DEFAULT 
)

Creates a wxIntegerValidator object with automatic type deduction.

This function can be used to create wxIntegerValidator object without explicitly specifying its type, e.g. write just:

        new wxTextCtrl(..., wxMakeIntegerValidator(&m_var));

instead of more verbose

Since:
2.9.2
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines