LightWrap++
AC++wrapperfortheLightWave3DSDK
lwpp::LWDrawFuncs Class Reference

#include <lwpp/panel.h>

List of all members.

Public Member Functions

 LWDrawFuncs (DrawFuncs *_df=0, LWPanelID _pan=0)
 Pointer to the Draw Functions.
const LWDisplayMetrics * displayMetrics () const
 Returns the display metrics of the current display.
void drawBorder (int indent, int x, int y, int w, int h=0) const
void drawBox (int c, int x, int y, int w, int h) const
 Draw a box using one of the colours defined in lwpanel.h.
void drawBox (int r, int g, int b, int x, int y, int w, int h) const
 Draw a box using RGB colours.
void drawLine (int c, int x1, int y1, int x2, int y2) const
 Draw a line using one of the colours defined in lwpanel.h.
void drawLine (int r, int g, int b, int x1, int y1, int x2, int y2) const
void drawPixel (int c, int x, int y) const
 Draw a single pixel using one of the colours defined in lwpanel.h.
void drawPixel (int r, int g, int b, int x, int y) const
 Draw a single pixel using RGB colours.
void drawText (const std::string s, int c, int x, int y) const
 Draw text in a panel.
void drawText (const std::ostringstream &s, int c, int x, int y) const
 Draw text in a panel.
void drawWireBox (int c, int x, int y, int w, int h) const
int textWidth (const std::string s) const
 Returns the width os a string in pixels, as if it was drawn on a panel.
int textWidth (const std::ostringstream &s) const
 Returns the width os a string in pixels, as if it was drawn on a panel.

Constructor & Destructor Documentation

lwpp::LWDrawFuncs::LWDrawFuncs ( DrawFuncs *  _df = 0,
LWPanelID  _pan = 0 
)
inline

Pointer to the Draw Functions.

Constructor


Member Function Documentation

const LWDisplayMetrics* lwpp::LWDrawFuncs::displayMetrics ( ) const
inline

Returns the display metrics of the current display.

void lwpp::LWDrawFuncs::drawBorder ( int  indent,
int  x,
int  y,
int  w,
int  h = 0 
) const
inline
void lwpp::LWDrawFuncs::drawBox ( int  c,
int  x,
int  y,
int  w,
int  h 
) const
inline

Draw a box using one of the colours defined in lwpanel.h.

void lwpp::LWDrawFuncs::drawBox ( int  r,
int  g,
int  b,
int  x,
int  y,
int  w,
int  h 
) const
inline

Draw a box using RGB colours.

void lwpp::LWDrawFuncs::drawLine ( int  c,
int  x1,
int  y1,
int  x2,
int  y2 
) const
inline

Draw a line using one of the colours defined in lwpanel.h.

void lwpp::LWDrawFuncs::drawLine ( int  r,
int  g,
int  b,
int  x1,
int  y1,
int  x2,
int  y2 
) const
inline
void lwpp::LWDrawFuncs::drawPixel ( int  c,
int  x,
int  y 
) const
inline

Draw a single pixel using one of the colours defined in lwpanel.h.

void lwpp::LWDrawFuncs::drawPixel ( int  r,
int  g,
int  b,
int  x,
int  y 
) const
inline

Draw a single pixel using RGB colours.

void lwpp::LWDrawFuncs::drawText ( const std::string  s,
int  c,
int  x,
int  y 
) const
inline

Draw text in a panel.

void lwpp::LWDrawFuncs::drawText ( const std::ostringstream &  s,
int  c,
int  x,
int  y 
) const
inline

Draw text in a panel.

void lwpp::LWDrawFuncs::drawWireBox ( int  c,
int  x,
int  y,
int  w,
int  h 
) const
inline
int lwpp::LWDrawFuncs::textWidth ( const std::string  s) const
inline

Returns the width os a string in pixels, as if it was drawn on a panel.

int lwpp::LWDrawFuncs::textWidth ( const std::ostringstream &  s) const
inline

Returns the width os a string in pixels, as if it was drawn on a panel.


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