CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
FWCheckBoxIcon Class Reference

#include <Fireworks/Core/interface/FWCheckBoxIcon.h>

Inheritance diagram for FWCheckBoxIcon:
FWBoxIconBase

Public Member Functions

 FWCheckBoxIcon (unsigned int iEdgeLength)
 
bool isChecked () const
 
void setChecked (bool iChecked)
 
virtual ~FWCheckBoxIcon ()
 
- Public Member Functions inherited from FWBoxIconBase
void draw (Drawable_t iID, GContext_t iContext, int iX, int iY) const
 
unsigned int edgeLength () const
 
 FWBoxIconBase (unsigned int iEdgeLength)
 
virtual ~FWBoxIconBase ()
 

Static Public Member Functions

static const TString & coreIcondir ()
 

Private Member Functions

void drawInsideBox (Drawable_t iID, GContext_t iContext, int iX, int iY, unsigned int iSize) const
 
 FWCheckBoxIcon (const FWCheckBoxIcon &)
 
const FWCheckBoxIconoperator= (const FWCheckBoxIcon &)
 

Private Attributes

bool m_checked
 

Detailed Description

Description: <one line="" class="" summary>="">

Usage: <usage>

Definition at line 28 of file FWCheckBoxIcon.h.

Constructor & Destructor Documentation

FWCheckBoxIcon::FWCheckBoxIcon ( unsigned int  iEdgeLength)

Definition at line 39 of file FWCheckBoxIcon.cc.

Referenced by setChecked().

39  :
40 FWBoxIconBase(iEdgeLength),
41 m_checked(false)
42 {
43 }
FWBoxIconBase(unsigned int iEdgeLength)
FWCheckBoxIcon::~FWCheckBoxIcon ( )
virtual

Definition at line 50 of file FWCheckBoxIcon.cc.

51 {
52 }
FWCheckBoxIcon::FWCheckBoxIcon ( const FWCheckBoxIcon )
private

Member Function Documentation

const TString & FWCheckBoxIcon::coreIcondir ( )
static
void FWCheckBoxIcon::drawInsideBox ( Drawable_t  iID,
GContext_t  iContext,
int  iX,
int  iY,
unsigned int  iSize 
) const
privatevirtual

Implements FWBoxIconBase.

Definition at line 74 of file FWCheckBoxIcon.cc.

References checkImage(), and m_checked.

Referenced by setChecked().

75 {
76  if(m_checked) {
77  int xOffset = (iSize - checkImage()->GetWidth()) /2;
78  int yOffset = (iSize - checkImage()->GetHeight())/2;
79  checkImage()->Draw(iID,iContext,iX+xOffset,iY+yOffset);
80  }
81 }
static const TGPicture * checkImage()
bool FWCheckBoxIcon::isChecked ( ) const
inline
const FWCheckBoxIcon& FWCheckBoxIcon::operator= ( const FWCheckBoxIcon )
private

Referenced by setChecked().

void FWCheckBoxIcon::setChecked ( bool  iChecked)
inline

Member Data Documentation

bool FWCheckBoxIcon::m_checked
private

Definition at line 53 of file FWCheckBoxIcon.h.

Referenced by drawInsideBox(), isChecked(), and setChecked().