PoXtToggleButtonData Class Reference
[Dialog]

VSG extension Class to define a toggle button. More...

#include <Inventor/dialog/PoXtToggleButtonData.h>

Inheritance diagram for PoXtToggleButtonData:
PoXtElementData

List of all members.

Public Types

enum  State {
  ON,
  OFF
}

Public Member Functions

 PoXtToggleButtonData (const SbString &label="", State state=OFF, const SbString &onString="", const SbString &offString="")
virtual ~PoXtToggleButtonData ()
SoNONUNICODE void setLabel (const char *label)
void setLabel (const SbString &label)
SbString getLabel () const
SoNONUNICODE void setString (State state, const char *str)
void setString (State state, const SbString &str)
SbString getString (State state) const
void setState (State state)
State getState () const
virtual TypeXtElement getType () const
virtual PoXtElementDatacopy () const

Detailed Description

VSG extension Class to define a toggle button.

This element is composed of a string on the left, a toggle button in the center, and a string associated to the state of the toggle on the right. By default the text of the label, the two strings associated to the state of the toggle button are empty and the state of the toggle button is OFF.

Deprecated:

Deprecated since Open Inventor 8000
Please use DialogViz classes for new development.

Member Enumeration Documentation

Type of toggle state.

Enumerator:
ON 
OFF 

Constructor & Destructor Documentation

PoXtToggleButtonData::PoXtToggleButtonData ( const SbString label = "",
State  state = OFF,
const SbString onString = "",
const SbString offString = "" 
)

Constructor.

virtual PoXtToggleButtonData::~PoXtToggleButtonData (  )  [virtual]

Destructor.


Member Function Documentation

virtual PoXtElementData* PoXtToggleButtonData::copy (  )  const [virtual]

Creates and returns a new Xt element which is a copy of this Xt element.

Implements PoXtElementData.

SbString PoXtToggleButtonData::getLabel (  )  const

Gets the text of the label on the left of toggle button.

State PoXtToggleButtonData::getState (  )  const

Gets the state of the toggle button.

SbString PoXtToggleButtonData::getString ( State  state  )  const

Gets the string of the given state.

virtual TypeXtElement PoXtToggleButtonData::getType (  )  const [virtual]

Returns the type of the Xt element.

Reimplemented from PoXtElementData.

void PoXtToggleButtonData::setLabel ( const SbString label  ) 

Sets the text of the label on the left of toggle button.

SoNONUNICODE void PoXtToggleButtonData::setLabel ( const char *  label  ) 

Sets the text of the label on the left of toggle button.

Non Unicode List:
This function should not be used in a Unicode application.
void PoXtToggleButtonData::setState ( State  state  ) 

Sets the state of the toggle button.

void PoXtToggleButtonData::setString ( State  state,
const SbString str 
)

Sets a string for the given state.

SoNONUNICODE void PoXtToggleButtonData::setString ( State  state,
const char *  str 
)

Sets a string for the given state.

Non Unicode List:
This function should not be used in a Unicode application.

The documentation for this class was generated from the following file:

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/