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)
 
 FWCheckBoxIcon (const FWCheckBoxIcon &)=delete
 
bool isChecked () const
 
const FWCheckBoxIconoperator= (const FWCheckBoxIcon &)=delete
 
void setChecked (bool iChecked)
 
 ~FWCheckBoxIcon () override
 
- 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)
 
 FWBoxIconBase (const FWBoxIconBase &)=delete
 
const FWBoxIconBaseoperator= (const FWBoxIconBase &)=delete
 
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 override
 

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() [1/2]

FWCheckBoxIcon::FWCheckBoxIcon ( unsigned int  iEdgeLength)

Definition at line 37 of file FWCheckBoxIcon.cc.

37 : FWBoxIconBase(iEdgeLength), m_checked(false) {}
FWBoxIconBase(unsigned int iEdgeLength)

◆ ~FWCheckBoxIcon()

FWCheckBoxIcon::~FWCheckBoxIcon ( )
override

Definition at line 44 of file FWCheckBoxIcon.cc.

44 {}

◆ FWCheckBoxIcon() [2/2]

FWCheckBoxIcon::FWCheckBoxIcon ( const FWCheckBoxIcon )
delete

Member Function Documentation

◆ coreIcondir()

const TString & FWCheckBoxIcon::coreIcondir ( )
static

◆ drawInsideBox()

void FWCheckBoxIcon::drawInsideBox ( Drawable_t  iID,
GContext_t  iContext,
int  iX,
int  iY,
unsigned int  iSize 
) const
overrideprivatevirtual

Implements FWBoxIconBase.

Definition at line 65 of file FWCheckBoxIcon.cc.

References checkImage(), m_checked, phase1PixelTopology::xOffset, and phase1PixelTopology::yOffset.

65  {
66  if (m_checked) {
67  int xOffset = (iSize - checkImage()->GetWidth()) / 2;
68  int yOffset = (iSize - checkImage()->GetHeight()) / 2;
69  checkImage()->Draw(iID, iContext, iX + xOffset, iY + yOffset);
70  }
71 }
static const TGPicture * checkImage()
constexpr int16_t xOffset
constexpr int16_t yOffset

◆ isChecked()

bool FWCheckBoxIcon::isChecked ( ) const
inline

Definition at line 34 of file FWCheckBoxIcon.h.

References m_checked.

Referenced by FWCollectionSummaryWidget::toggleItemVisible().

34 { return m_checked; }

◆ operator=()

const FWCheckBoxIcon& FWCheckBoxIcon::operator= ( const FWCheckBoxIcon )
delete

◆ setChecked()

void FWCheckBoxIcon::setChecked ( bool  iChecked)
inline

Member Data Documentation

◆ m_checked

bool FWCheckBoxIcon::m_checked
private

Definition at line 50 of file FWCheckBoxIcon.h.

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