Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members

FXEX::FXDCHelper Class Reference

FXDCHelper provides drawing support routines which can be used in your custom widgets. More...

#include <FXDCHelper.h>

List of all members.

Public Methods

void drawBorderRectangle (FXint x, FXint y, FXint w, FXint h)
void drawRaisedRectangle (FXint x, FXint y, FXint w, FXint h)
void drawSunkenRectangle (FXint x, FXint y, FXint w, FXint h)
void drawRidgeRectangle (FXint x, FXint y, FXint w, FXint h)
void drawGrooveRectangle (FXint x, FXint y, FXint w, FXint h)
void drawDoubleRaisedRectangle (FXint x, FXint y, FXint w, FXint h)
void drawDoubleSunkenRectangle (FXint x, FXint y, FXint w, FXint h)
void drawFocusRectangle (FXint x, FXint y, FXint w, FXint h)
void drawFrame (FXint x, FXint y, FXint w, FXint h)
void fillRegion (const FXRegion &region)
void fillArc (FXint x, FXint y, FXint w, FXint h, FXfloat start, FXfloat end)
 FXDCHelper (FXApp *a, FXDC *dc=NULL, FXuint opts=0)
 FXDCHelper (const FXDCHelper &h)
FXDCHelper & operator= (const FXDCHelper &h)
FXApp * getApp ()
void setDC (FXDC *dc)
FXDC * getDC () const
void setFrameStyle (FXuint style)
FXuint getFrameStyle () const
FXint getBorderWidth () const
void setHiliteColor (FXColor clr)
FXColor getHiliteColor () const
void setShadowColor (FXColor clr)
FXColor getShadowColor () const
void setBorderColor (FXColor clr)
FXColor getBorderColor () const
void setBaseColor (FXColor clr)
FXColor getBaseColor () const
virtual ~FXDCHelper ()


Detailed Description

FXDCHelper provides drawing support routines which can be used in your custom widgets.

eg drawing various styles of rectangles.

It takes frame style options (FRAME_*) for specifying the specific types of frame styles

Definition at line 33 of file FXDCHelper.h.


Constructor & Destructor Documentation

FXEX::FXDCHelper::FXDCHelper (  FXApp * a,
FXDC * dc = NULL,
FXuint opts = 0
) 
 

Construct packer layout manager.

FXEX::FXDCHelper::FXDCHelper (  const FXDCHelper & h ) 
 

Construct based on existing helper.

virtual FXEX::FXDCHelper::~FXDCHelper (  )  [virtual]
 

dtor.


Member Function Documentation

void FXEX::FXDCHelper::drawBorderRectangle (  FXint x,
FXint y,
FXint w,
FXint h
) 
 

various rectangles that can be drawn.

void FXEX::FXDCHelper::drawRaisedRectangle (  FXint x,
FXint y,
FXint w,
FXint h
) 
 

void FXEX::FXDCHelper::drawSunkenRectangle (  FXint x,
FXint y,
FXint w,
FXint h
) 
 

void FXEX::FXDCHelper::drawRidgeRectangle (  FXint x,
FXint y,
FXint w,
FXint h
) 
 

void FXEX::FXDCHelper::drawGrooveRectangle (  FXint x,
FXint y,
FXint w,
FXint h
) 
 

void FXEX::FXDCHelper::drawDoubleRaisedRectangle (  FXint x,
FXint y,
FXint w,
FXint h
) 
 

void FXEX::FXDCHelper::drawDoubleSunkenRectangle (  FXint x,
FXint y,
FXint w,
FXint h
) 
 

void FXEX::FXDCHelper::drawFocusRectangle (  FXint x,
FXint y,
FXint w,
FXint h
) 
 

void FXEX::FXDCHelper::drawFrame (  FXint x,
FXint y,
FXint w,
FXint h
) 
 

void FXEX::FXDCHelper::fillRegion (  const FXRegion & region ) 
 

fill region.

void FXEX::FXDCHelper::fillArc (  FXint x,
FXint y,
FXint w,
FXint h,
FXfloat start,
FXfloat end
) 
 

fill an arc centered at x,y width,height from center start-angle,end-angle in degrees from 12 oclock, clockwise.

FXDCHelper& FXEX::FXDCHelper::operator= (  const FXDCHelper & h ) 
 

assign from other DC helper.

FXApp* FXEX::FXDCHelper::getApp (  )  [inline]
 

get application.

Definition at line 67 of file FXDCHelper.h.

void FXEX::FXDCHelper::setDC (  FXDC * dc )  [inline]
 

set's the current DC.

Definition at line 70 of file FXDCHelper.h.

FXDC* FXEX::FXDCHelper::getDC (  )  const [inline]
 

get the curretn DC.

Definition at line 73 of file FXDCHelper.h.

void FXEX::FXDCHelper::setFrameStyle (  FXuint style ) 
 

Change frame style.

FXuint FXEX::FXDCHelper::getFrameStyle (  )  const
 

Get current frame style.

FXint FXEX::FXDCHelper::getBorderWidth (  )  const [inline]
 

Get border width.

Definition at line 82 of file FXDCHelper.h.

void FXEX::FXDCHelper::setHiliteColor (  FXColor clr ) 
 

Change highlight color.

FXColor FXEX::FXDCHelper::getHiliteColor (  )  const [inline]
 

Get highlight color.

Definition at line 88 of file FXDCHelper.h.

void FXEX::FXDCHelper::setShadowColor (  FXColor clr ) 
 

Change shadow color.

FXColor FXEX::FXDCHelper::getShadowColor (  )  const [inline]
 

Get shadow color.

Definition at line 94 of file FXDCHelper.h.

void FXEX::FXDCHelper::setBorderColor (  FXColor clr ) 
 

Change border color.

FXColor FXEX::FXDCHelper::getBorderColor (  )  const [inline]
 

Get border color.

Definition at line 100 of file FXDCHelper.h.

void FXEX::FXDCHelper::setBaseColor (  FXColor clr ) 
 

Change base gui color.

FXColor FXEX::FXDCHelper::getBaseColor (  )  const [inline]
 

Get base gui color.

Definition at line 106 of file FXDCHelper.h.