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)
 
 ~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)
 
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
 
 FWCheckBoxIcon (const FWCheckBoxIcon &)=delete
 
const FWCheckBoxIconoperator= (const FWCheckBoxIcon &)=delete
 

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) {}

◆ ~FWCheckBoxIcon()

FWCheckBoxIcon::~FWCheckBoxIcon ( )
override

Definition at line 44 of file FWCheckBoxIcon.cc.

44 {}

◆ FWCheckBoxIcon() [2/2]

FWCheckBoxIcon::FWCheckBoxIcon ( const FWCheckBoxIcon )
privatedelete

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.

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 }

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

◆ isChecked()

bool FWCheckBoxIcon::isChecked ( ) const
inline

Definition at line 34 of file FWCheckBoxIcon.h.

34 { return m_checked; }

References m_checked.

Referenced by FWCollectionSummaryWidget::toggleItemVisible().

◆ operator=()

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

◆ 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().

cms::cuda::assert
assert(be >=bs)
checkImage
static const TGPicture * checkImage()
Definition: FWCheckBoxIcon.cc:29
phase1PixelTopology::xOffset
constexpr int16_t xOffset
Definition: phase1PixelTopology.h:19
phase1PixelTopology::yOffset
constexpr int16_t yOffset
Definition: phase1PixelTopology.h:20
FWCheckBoxIcon::m_checked
bool m_checked
Definition: FWCheckBoxIcon.h:50
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37
FWBoxIconBase::FWBoxIconBase
FWBoxIconBase(unsigned int iEdgeLength)
Definition: FWBoxIconBase.cc:30