Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::OSXButton Class Reference

#include <OSXButton.h>

Inheritance diagram for VCF::OSXButton:

VCF::OSXControl VCF::ButtonPeer VCF::ObjectWithCallbacks VCF::ControlPeer VCF::Interface VCF::Object VCF::Interface List of all members.

Public Member Functions

 OSXButton (CommandButton *control)
virtual ~OSXButton ()
virtual ImagegetImage ()
virtual void setImage (Image *image)
virtual ButtonState getState ()
virtual void create (Control *owningControl)
 This is called to actually create any neccessary windowing system resources specific to a new control (or widget/window/etc) instance for the platform.
virtual String getText ()
 returns a text associated with the component.
virtual void setText (const String &text)
 sets the text for the control

Protected Member Functions

virtual OSStatus handleOSXEvent (EventHandlerCallRef nextHandler, EventRef theEvent)

Protected Attributes

ButtonState state_
CommandButtoncommandButton_

Constructor & Destructor Documentation

VCF::OSXButton::OSXButton CommandButton control  ) 
 

virtual VCF::OSXButton::~OSXButton  )  [virtual]
 


Member Function Documentation

virtual void VCF::OSXButton::create Control owningControl  )  [virtual]
 

This is called to actually create any neccessary windowing system resources specific to a new control (or widget/window/etc) instance for the platform.

create() must be called by the containing VCF::Control subclass, typically in the classes constructor, after retreiving the new peer instance from the appropriate UIToolkit::createXXX() call.

Reimplemented from VCF::OSXControl.

virtual Image* VCF::OSXButton::getImage  )  [virtual]
 

Implements VCF::ButtonPeer.

virtual ButtonState VCF::OSXButton::getState  )  [virtual]
 

Implements VCF::ButtonPeer.

virtual String VCF::OSXButton::getText  )  [virtual]
 

returns a text associated with the component.

This usually gets used in the Control::getCaption() method.

Reimplemented from VCF::OSXControl.

virtual OSStatus VCF::OSXButton::handleOSXEvent EventHandlerCallRef  nextHandler,
EventRef  theEvent
[protected, virtual]
 

Reimplemented from VCF::OSXControl.

virtual void VCF::OSXButton::setImage Image image  )  [virtual]
 

Implements VCF::ButtonPeer.

virtual void VCF::OSXButton::setText const String text  )  [virtual]
 

sets the text for the control

Reimplemented from VCF::OSXControl.


Member Data Documentation

CommandButton* VCF::OSXButton::commandButton_ [protected]
 

ButtonState VCF::OSXButton::state_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information