Function Index Class Index

Draw_Text Class Reference

#include <hic_wrap.h>

Public Member Functions

 Draw_Text (HC_KEY key, const char *name, void *data=0)
 
virtual void draw_text (HIC_Rendition const *nr, HIC_Text_Info const *ti)
 
const char * GetName ()
 
virtual ~Draw_Text ()
 

Protected Member Functions

void * GetData ()
 

Detailed Description

The Draw_Text class is a base class used to define and set a callback at the "draw dc text" callback point during the HOOPS update cycle. To use this class, derive your own child class from it and implement the method draw_text. For more information on how to define and set callbacks as a C++/C/Java Developer, please see the HOOPS/3dGS Programming Guide.

Constructor & Destructor Documentation

Draw_Text::Draw_Text ( HC_KEY  key,
const char *  name,
void *  data = 0 
)

Constructs a Draw_Text Callback object.

Parameters
keyKey to the segment on which the callback is set.
nameThe name of the callback.
dataOptional pointer to user data that can then be accessed from the callback.
virtual Draw_Text::~Draw_Text ( )
virtual

Deletes the callback object.

Member Function Documentation

virtual void Draw_Text::draw_text ( HIC_Rendition const *  nr,
HIC_Text_Info const *  ti 
)
inlinevirtual

The function you implement for your callback.

Parameters
nrA pointer to a const HIC_Rendition
whereA pointer to a const HIC_Point
intA integer variable
kstringA pointer to a const HIC_Karacter(unsigned short variable)
void* Draw_Text::GetData ( )
protected

Returns the pointer to the user data that may have been provided when the callback was created.

const char* Draw_Text::GetName ( )

Returns the name of the callback.


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