#include <Fireworks/Core/interface/FWCustomIconsButton.h>
|
const TGPicture * | bellowMouseIcon () const |
|
const TGPicture * | disabledIcon () const |
|
const TGPicture * | downIcon () const |
|
| FWCustomIconsButton (const TGWindow *iParent, const TGPicture *iUpIcon, const TGPicture *iDownIcon, const TGPicture *iDisableIcon, const TGPicture *iBelowMouseIcon=nullptr, Int_t id=-1, GContext_t norm=TGButton::GetDefaultGC()(), UInt_t option=0) |
|
bool | HandleCrossing (Event_t *) override |
|
void | setIcons (const TGPicture *iUpIcon, const TGPicture *iDownIcon, const TGPicture *iDisabledIcon, const TGPicture *ibelowMouseIcon=nullptr) |
|
void | swapIcons (const TGPicture *&iUpIcon, const TGPicture *&iDownIcon, const TGPicture *&iDisabledIcon) |
|
const TGPicture * | upIcon () const |
|
| ~FWCustomIconsButton () override |
|
Description: <one line="" class="" summary>="">
Usage: <usage>
Definition at line 29 of file FWCustomIconsButton.h.
◆ FWCustomIconsButton() [1/2]
FWCustomIconsButton::FWCustomIconsButton |
( |
const TGWindow * |
iParent, |
|
|
const TGPicture * |
iUpIcon, |
|
|
const TGPicture * |
iDownIcon, |
|
|
const TGPicture * |
iDisableIcon, |
|
|
const TGPicture * |
iBelowMouseIcon = nullptr , |
|
|
Int_t |
id = -1 , |
|
|
GContext_t |
norm = TGButton::GetDefaultGC()() , |
|
|
UInt_t |
option = 0 |
|
) |
| |
Definition at line 32 of file FWCustomIconsButton.cc.
40 : TGButton(iParent,
id, norm,
option),
46 assert(
nullptr != iUpIcon);
47 assert(
nullptr != iDownIcon);
48 assert(
nullptr != iDisabledIcon);
49 gVirtualX->ShapeCombineMask(GetId(), 0, 0, iUpIcon->GetMask());
50 SetBackgroundPixmap(iUpIcon->GetPicture());
51 Resize(iUpIcon->GetWidth(), iUpIcon->GetHeight());
52 fTWidth = iUpIcon->GetWidth();
53 fTHeight = iUpIcon->GetHeight();
References cms::cuda::assert().
◆ ~FWCustomIconsButton()
FWCustomIconsButton::~FWCustomIconsButton |
( |
| ) |
|
|
override |
◆ FWCustomIconsButton() [2/2]
◆ bellowMouseIcon()
const TGPicture* FWCustomIconsButton::bellowMouseIcon |
( |
| ) |
const |
|
inline |
◆ disabledIcon()
const TGPicture* FWCustomIconsButton::disabledIcon |
( |
| ) |
const |
|
inline |
◆ DoRedraw()
void FWCustomIconsButton::DoRedraw |
( |
| ) |
|
|
overrideprotected |
◆ downIcon()
const TGPicture* FWCustomIconsButton::downIcon |
( |
| ) |
const |
|
inline |
◆ HandleCrossing()
bool FWCustomIconsButton::HandleCrossing |
( |
Event_t * |
event | ) |
|
|
override |
◆ operator=()
◆ setIcons()
void FWCustomIconsButton::setIcons |
( |
const TGPicture * |
iUpIcon, |
|
|
const TGPicture * |
iDownIcon, |
|
|
const TGPicture * |
iDisabledIcon, |
|
|
const TGPicture * |
ibelowMouseIcon = nullptr |
|
) |
| |
◆ swapIcons()
void FWCustomIconsButton::swapIcons |
( |
const TGPicture *& |
iUpIcon, |
|
|
const TGPicture *& |
iDownIcon, |
|
|
const TGPicture *& |
iDisabledIcon |
|
) |
| |
Definition at line 78 of file FWCustomIconsButton.cc.
84 gVirtualX->ShapeCombineMask(GetId(), 0, 0,
m_upIcon->GetMask());
References hcaldqm::fClient, m_disabledIcon, m_downIcon, m_upIcon, and std::swap().
Referenced by FWCollectionSummaryWidget::itemChanged(), FWCollectionSummaryWidget::setBackgroundToWhite(), CSGContinuousAction::stop(), CSGContinuousAction::switchMode(), FWCollectionSummaryWidget::toggleShowHide(), and FWTableView::toggleShowHide().
◆ upIcon()
const TGPicture* FWCustomIconsButton::upIcon |
( |
| ) |
const |
|
inline |
◆ m_belowMouseIcon
const TGPicture* FWCustomIconsButton::m_belowMouseIcon |
|
private |
◆ m_disabledIcon
const TGPicture* FWCustomIconsButton::m_disabledIcon |
|
private |
◆ m_downIcon
const TGPicture* FWCustomIconsButton::m_downIcon |
|
private |
◆ m_inside
bool FWCustomIconsButton::m_inside |
|
private |
◆ m_upIcon
const TGPicture* FWCustomIconsButton::m_upIcon |
|
private |