CMS 3D CMS Logo

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

List of all members.

Public Member Functions

 FWCheckBoxIcon (unsigned int iEdgeLength)
bool isChecked () const
void setChecked (bool iChecked)
virtual ~FWCheckBoxIcon ()

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.

                                                      :
FWBoxIconBase(iEdgeLength),
m_checked(false)
{
}
FWCheckBoxIcon::~FWCheckBoxIcon ( ) [virtual]

Definition at line 51 of file FWCheckBoxIcon.cc.

{
}
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 [private, virtual]

Implements FWBoxIconBase.

Definition at line 75 of file FWCheckBoxIcon.cc.

References checkImage(), and m_checked.

{
   if(m_checked) {
      int xOffset = (iSize - checkImage()->GetWidth()) /2;
      int yOffset = (iSize - checkImage()->GetHeight())/2;
      checkImage()->Draw(iID,iContext,iX+xOffset,iY+yOffset);
   }
}
bool FWCheckBoxIcon::isChecked ( ) const [inline]

Definition at line 36 of file FWCheckBoxIcon.h.

References m_checked.

Referenced by FWCollectionSummaryWidget::toggleItemVisible().

{ return m_checked;}
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().