cxWidgets 1.0
Public Member Functions | Static Public Member Functions | Static Protected Attributes | List of all members
cx::cxObject Class Reference

The base class for windowing classes in the cxWidgets. More...

#include <cxObject.h>

Inheritance diagram for cx::cxObject:
Inheritance graph
Collaboration diagram for cx::cxObject:
Collaboration graph

Public Member Functions

 cxObject ()
 
virtual ~cxObject ()
 
virtual void beep ()
 
virtual std::string cxTypeStr () const
 Returns the name of the cxWidgets class. This is overridden.
 

Static Public Member Functions

static bool UseColors ()
 
static void UseColors (bool useIt)
 
static bool UseBeeps ()
 
static void UseBeeps (bool useIt)
 

Static Protected Attributes

static bool useColors
 Whether or not to use colors.
 
static bool useBeeps
 Whether or not to enable beeping.
 

Detailed Description

The base class for windowing classes in the cxWidgets.

UI framework; contains defaults for some things.

Constructor & Destructor Documentation

◆ cxObject()

cx::cxObject::cxObject ( )

Default constructor for cxObject

◆ ~cxObject()

cx::cxObject::~cxObject ( )
virtual

Destructor

Member Function Documentation

◆ beep()

void cx::cxObject::beep ( )
virtual

Outputs a beep character

References useBeeps.

◆ cxTypeStr()

std::string cx::cxObject::cxTypeStr ( ) const
virtual

Returns the name of the cxWidgets class. This is overridden.

in cxObject-based classes. This can be used to determine

the type of cxWidgets object that deriving classes derive from

in applications.

Returns
The name of the cxWidgets class.

Reimplemented in cx::cxApp, cx::cxButton, cx::cxComboBox, cx::cxDatePicker, cx::cxDialog, cx::cxFileViewer, cx::cxForm, cx::cxFrame, cx::cxGrid, cx::cxInput, cx::cxLabel, cx::cxMenu, cx::cxMenuBar, cx::cxMessageDialog, cx::cxMultiForm, cx::cxMultiLineInput, cx::cxNotebook, cx::cxOpenFileDialog, cx::cxPanel, cx::cxScrolledWindow, cx::cxSearchPanel, and cx::cxWindow.

◆ UseBeeps() [1/2]

static bool cx::cxObject::UseBeeps ( )
inlinestatic

Returns whether or not beeps are used

Returns
Boolean–true means beeps used

References useBeeps.

◆ UseBeeps() [2/2]

static void cx::cxObject::UseBeeps ( bool  useIt)
inlinestatic

Mutator–set to true to use beeps

Parameters
useItBoolean–set to true to use beeps

References useBeeps.

◆ UseColors() [1/2]

static bool cx::cxObject::UseColors ( )
inlinestatic

Returns whether or not colors are used

Returns
Boolean–true if colors used, false otherwise

References useColors.

Referenced by main().

◆ UseColors() [2/2]

void cx::cxObject::UseColors ( bool  useIt)
static

Mutator–set to true to use colors

Parameters
useItBoolean–true to use colors

References useColors.

Member Data Documentation

◆ useBeeps

bool cx::cxObject::useBeeps
staticprotected

Whether or not to enable beeping.

Referenced by beep(), UseBeeps(), and UseBeeps().

◆ useColors

bool cx::cxObject::useColors
staticprotected

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