CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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 29 of file FWCheckBoxIcon.h.

Constructor & Destructor Documentation

FWCheckBoxIcon::FWCheckBoxIcon ( unsigned int  iEdgeLength)

Definition at line 40 of file FWCheckBoxIcon.cc.

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

Definition at line 51 of file FWCheckBoxIcon.cc.

52 {
53 }
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 75 of file FWCheckBoxIcon.cc.

References checkImage(), and m_checked.

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

Member Data Documentation

bool FWCheckBoxIcon::m_checked
private

Definition at line 54 of file FWCheckBoxIcon.h.

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