- Your Widget Set For OpenGL
Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | Related Pages

ufo::UDoubleValidator Class Reference

#include <uvalidator.hpp>

Inheritance diagram for ufo::UDoubleValidator:

ufo::UValidator ufo::UObject ufo::UCollectable List of all members.

Public Member Functions

 UDoubleValidator ()
 UDoubleValidator (double min, double max, int decimals)
virtual void fixup (std::string *text) const
virtual State validate (std::string *text, int *pos) const
void setRange (double min, double max)
double getMinimum () const
double getMaximum () const
void setDecimals (int decimals)
int getDecimals () const

Detailed Description

A validator for floating point text.

Author:
Johannes Schmidt


Constructor & Destructor Documentation

ufo::UDoubleValidator::UDoubleValidator  ) 
 

Creates an double validator which accepts all integers.

ufo::UDoubleValidator::UDoubleValidator double  min,
double  max,
int  decimals
 

Creates an double validator with min max bounds.


Member Function Documentation

void ufo::UDoubleValidator::setDecimals int  decimals  ) 
 

Sets the number of digits behind the decimal point.


The documentation for this class was generated from the following file:
The libUFO Project - written by Johannes Schmidt