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

VCF::ToolTipEvent Class Reference

The tooltip event is fired when tooltip text is being requested and/or just before the tooltip is ready to be shown, allowing the handler to customize the tooltip's data or presentation. More...

#include <vcf/ApplicationKit/ToolTipEvent.h>

Inheritance diagram for VCF::ToolTipEvent:

VCF::Event VCF::Object List of all members.

Public Member Functions

 ToolTipEvent (Object *source, const uint32 &type)
 ToolTipEvent (const ToolTipEvent &rhs)
virtual ~ToolTipEvent ()
ToolTipEventoperator= (const ToolTipEvent &rhs)
String getToolTipString ()
virtual Objectclone (bool deep=false)
 Makes a complete clone of this object.
void setToolTipString (const String &tooltipString)
PointgetToolTipLocation ()
void setToolTipLocation (Point *pt)
SizegetToolTipSize ()
void setToolTipSize (Size *size)
GraphicsContextgetCustomToolTipContext ()
void setCustomTooltipContext (GraphicsContext *customToolTipGraphicsCtx)
ControlgetEmbeddedControl ()
void setEmbeddedControl (Control *val)
bool getAutoDestroyEmbeddedControl ()
void setAutoDestroyEmbeddedControl (const bool &val)
ColorgetBackgroundColor ()
void setBackgroundColor (Color *color)

Protected Attributes

String tooltipString_
GraphicsContextcustomToolTipGraphicsCtx_
Point tooltipLocation_
Size tooltipSize_
ControlembeddedControl_
bool autoDestroyEmbeddedControl_
Color backgroundColor_

Detailed Description

The tooltip event is fired when tooltip text is being requested and/or just before the tooltip is ready to be shown, allowing the handler to customize the tooltip's data or presentation.


Constructor & Destructor Documentation

VCF::ToolTipEvent::ToolTipEvent Object source,
const uint32 type
[inline]
 

VCF::ToolTipEvent::ToolTipEvent const ToolTipEvent rhs  )  [inline]
 

virtual VCF::ToolTipEvent::~ToolTipEvent  )  [inline, virtual]
 


Member Function Documentation

virtual Object* VCF::ToolTipEvent::clone bool  deep = false  )  [inline, virtual]
 

Makes a complete clone of this object.

A typical implementation might be:

    virtual Object* clone( bool deep ) {
        return new MyObject( this );
    }
In which the implementer simply creates a new instance on the heap and calls the copy constructor. Objects which support cloning should also have a copy constructor defined as well.

Parameters:
bool deep if deep is true then any object instances that this object owns should probably be cloned as well, with full new copies made. Otherwise it would be acceptable to simply copy the pointer values. The default value is for deep cloning to be false.
Returns:
Object a new instance that should be an copy of this. If the object doesn't support cloning the return will value will be NULL.

Reimplemented from VCF::Event.

bool VCF::ToolTipEvent::getAutoDestroyEmbeddedControl  )  [inline]
 

Color* VCF::ToolTipEvent::getBackgroundColor  )  [inline]
 

GraphicsContext* VCF::ToolTipEvent::getCustomToolTipContext  )  [inline]
 

Control* VCF::ToolTipEvent::getEmbeddedControl  )  [inline]
 

Point* VCF::ToolTipEvent::getToolTipLocation  )  [inline]
 

Size* VCF::ToolTipEvent::getToolTipSize  )  [inline]
 

String VCF::ToolTipEvent::getToolTipString  )  [inline]
 

ToolTipEvent& VCF::ToolTipEvent::operator= const ToolTipEvent rhs  )  [inline]
 

void VCF::ToolTipEvent::setAutoDestroyEmbeddedControl const bool &  val  )  [inline]
 

void VCF::ToolTipEvent::setBackgroundColor Color color  )  [inline]
 

void VCF::ToolTipEvent::setCustomTooltipContext GraphicsContext customToolTipGraphicsCtx  )  [inline]
 

void VCF::ToolTipEvent::setEmbeddedControl Control val  )  [inline]
 

void VCF::ToolTipEvent::setToolTipLocation Point pt  )  [inline]
 

void VCF::ToolTipEvent::setToolTipSize Size size  )  [inline]
 

void VCF::ToolTipEvent::setToolTipString const String tooltipString  )  [inline]
 


Member Data Documentation

bool VCF::ToolTipEvent::autoDestroyEmbeddedControl_ [protected]
 

Color VCF::ToolTipEvent::backgroundColor_ [protected]
 

GraphicsContext* VCF::ToolTipEvent::customToolTipGraphicsCtx_ [protected]
 

Control* VCF::ToolTipEvent::embeddedControl_ [protected]
 

Point VCF::ToolTipEvent::tooltipLocation_ [protected]
 

Size VCF::ToolTipEvent::tooltipSize_ [protected]
 

String VCF::ToolTipEvent::tooltipString_ [protected]
 


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