VWLib REFERENCE MANUAL
vwPushButton - | A pushbutton class. |
vwPushButton::vwPushButton ( | vwMediator * concreteMediator, pfDCS * dcs); |
virtual vwPushButton::~vwPushButton ( | void); |
virtual void vwPushButton::setOver ( | int overState=True); |
virtual int vwPushButton::doPostProcessPress ( | void); |
virtual void vwButton::setOver ( | int overState=Tue); |
virtual void vwButton::setPressed ( | int pressedState); |
virtual void vwButton::setPressed ( | void); |
virtual void vwButton::setIsPressed ( | int isPressed=True); |
inline int vwButton::getNumChildren ( | void); |
inline int vwButton::isGeneric ( | void); |
inline void vwButton::setPushDistance ( | float pushDistance=1.0); |
inline int vwButton::getExpanded ( | void); |
inline void vwButton::setExpanded ( | int expandedState=True); |
virtual char * vwButton::getChild ( | int childListIndex=0); |
virtual int vwButton::addChild ( | char * child); |
void vwLabel::setLabelColor ( | float * rgba); |
void vwLabel::setLabelText ( | vwWidget::wdgStruct *widget_struct, pfFont *font); |
void vwLabel::addToLabel ( | char *word, int column, int row); |
void vwLabel::initLabelParms ( | pfFont * font, int total_words=1, int total_rows=1); |
inline void vwLabel::setLabelSize ( | float size=1.0); |
inline void vwLabel::setLabelVSpc ( | float verticalSpacing=1.0); |
inline void vwLabel::setExtrudeSize ( | float extrudeSize=1.0); |
inline void vwLabel::setSpacingScale( | float horizSpc, float vertSpc, float depthSpc); |
inline void vwLabel::setLabelHeight ( | float hight=0.0); |
inline void vwLabel::setFlatten ( | int flatten=True); |
inline void vwLabel::clearLabel ( | void); |
virtual void vwObserver::update ( | vwSubject * callingSubject, void * data) = 0; |
virtual void vwWidget::setActive ( | int activeState=True); |
virtual void vwWidget::setOver ( | int overState=True); |
virtual void vwWidget::setVisible ( | int visibiltyState=True); |
inline int vwWidget::getActive ( | void); |
inline int vwWidget::getOver ( | void); |
inline int vwWidget::getPressed ( |
void); |
inline int vwWidget::getVisible ( | void); |
inline int vwWidget::getDragged ( | void); |
inline int vwWidget::getIdent ( | void); |
inline int vwWidget::getInterface ( | void); |
void vwWidget::getColor ( | wColor colorIndex, float rgba[]); |
inline void vwWidget::setColor ( | wColor colorIndex=ACTIVE); |
void vwWidget::registerColor ( | wColor colorIndex, float *rgba); |
inline int vwWidget::isOfType ( | wType wdg_type); |
inline pfSCS * vwWidget::getSCS ( | void); |
inline pfDCS * vwWidget::getDCS ( | void); |
inline void vwWidget::getParentMtx ( | pfMatrix * m); |
virtual void vwSubject::attach ( | vwObserver *concreteObserver); |
virtual void vwSubject::detach ( | vwObserver *concreteObserver); |
inline void vwSubject::setSubectData ( | void * data); |
inline void * vwSubject::getSubjectData ( | void); |
inline unsigned long vwSubject::getID ( | void); |
virtual void vwButton::doProcessPress ( | void); |
virtual void vwButton::doPostProcessPress ( | void); |
virtual void vwButton::doPushButton ( | void); |
virtual void vwWidget::doSetColor ( | wColor colorIndex); |
virtual void vwWidget::setWType ( | wType widgetType); |
virtual void vwSubject::notify ( | void); |
vwPushButton is a state-reverting button publically derived from vwButton. Unlike vwButton, which retains its new pressed state after vwButton::setPressed() is called, vwPushButton generates an event via notify() and then its pressed state reverts from True back to False. In other words, its pressed state is always False, except during the course of a setPressed() or setPressed(True) operation. It overrides the public virtual vwButton:setOver() method in order to deflect when the left wand button is pressed and getOver() is True. If this button is pressed, the deflection is removed (i.e., it presses in and then rebounds upon release). The vwPushButton can be thought of as a semi-automatic rifle. It fires off an event whenever it is pressed and immediately re-loads, enabling it to fire off the same event again when triggered. Note, if the overloaded method vwButton::setPressed(int) is called with the argument value False, as with vwButton, an event will still be generated. But since the vwPushButtton's pressed state is False already, it's pressed state will not change during this operation.
vwRadioButton ( | vwMediator *concreteMediator, pfDCS *dcs); |
virtual ~vwPushButton ( | void); |
virtual void setOver ( | int overState); |
virtual int doPostProcessPress ( | void); |