Binary Ninja API C++: ClickableLabel
Classes | |
| struct | IconImage |
| class | ClickableLabel |
| class | ClickableIcon |
| class | ClickableStateLabel |
◆ IconImage
Static Public Member Functions | |
| static IconImage | generate (const QImage &activeSrc, const QImage &inactiveSrc) |
Public Attributes | |
| QImage | activeOriginal |
| QImage | inactiveOriginal |
| QImage | active |
| QImage | activeHover |
| QImage | inactive |
| QImage | inactiveHover |
◆ generate()
|
static |
◆ activeOriginal
QImage IconImage::activeOriginal
◆ inactiveOriginal
QImage IconImage::inactiveOriginal
◆ active
◆ activeHover
QImage IconImage::activeHover
◆ inactive
QImage IconImage::inactive
◆ inactiveHover
QImage IconImage::inactiveHover
Signals | |
| void | clicked () |
Public Member Functions | |
| ClickableLabel (QWidget *parent=nullptr, const QString &name="") | |
| void | passThroughMousePressEvent (bool enable) |
Protected Member Functions | |
| void | mousePressEvent (QMouseEvent *event) override |
| void | mouseReleaseEvent (QMouseEvent *event) override |
◆ ClickableLabel()
|
inline |
◆ passThroughMousePressEvent()
|
inline |
◆ clicked
|
signal |
◆ mousePressEvent()
|
inlineoverrideprotected |
◆ mouseReleaseEvent()
|
inlineoverrideprotected |
◆ ClickableIcon
Signals | |
| void | clicked () |
| void | toggle (bool newState) |
Public Member Functions | |
| ClickableIcon (const QImage &activeIcon, const QImage &inactiveIcon, const QSize &desiredPointSize) | |
| ClickableIcon (const QImage &icon, const QSize &desiredPointSize) | |
| void | setAllowToggle (bool canToggle) |
| void | setActive (bool state) |
| bool | active () const |
| void | setImage (const QImage &icon) |
| void | setImage (const QImage &activeIcon, const QImage &inactiveIcon) |
| QSize | desiredPointSize () const |
| void | setDesiredPointSize (const QSize &size) |
| double | opacity () const |
| void | setOpacity (double opacity) |
Protected Member Functions | |
| void | enterEvent (QEnterEvent *event) override |
| void | leaveEvent (QEvent *event) override |
| void | paintEvent (QPaintEvent *event) override |
| void | mousePressEvent (QMouseEvent *) override |
| void | mouseReleaseEvent (QMouseEvent *event) override |
Properties | |
| QSize | desiredPointSize |
| double | opacity |
◆ ClickableIcon() [1/2]
| ClickableIcon::ClickableIcon | ( | const QImage & | activeIcon, |
| const QImage & | inactiveIcon, | ||
| const QSize & | desiredPointSize ) |
◆ ClickableIcon() [2/2]
|
inline |
◆ setAllowToggle()
| void ClickableIcon::setAllowToggle | ( | bool | canToggle | ) |
◆ setActive()
| void ClickableIcon::setActive | ( | bool | state | ) |
◆ active()
|
inline |
◆ setImage() [1/2]
| void ClickableIcon::setImage | ( | const QImage & | icon | ) |
◆ setImage() [2/2]
| void ClickableIcon::setImage | ( | const QImage & | activeIcon, |
| const QImage & | inactiveIcon ) |
◆ desiredPointSize()
|
inline |
◆ setDesiredPointSize()
|
inline |
◆ opacity()
|
inline |
◆ setOpacity()
|
inline |
◆ clicked
|
signal |
◆ toggle
|
signal |
◆ enterEvent()
|
overrideprotected |
◆ leaveEvent()
|
overrideprotected |
◆ paintEvent()
|
overrideprotected |
◆ mousePressEvent()
|
inlineoverrideprotected |
◆ mouseReleaseEvent()
|
overrideprotected |
◆ desiredPointSize
|
QSize ClickableIcon::desiredPointSize |
readwrite |
◆ opacity
|
double ClickableIcon::opacity |
readwrite |
◆ ClickableStateLabel
class ClickableStateLabel
Public Member Functions | |
| ClickableStateLabel (QWidget *parent, const QString &name, const QString &altName) | |
| bool | getState () |
| void | setDisplayState (bool state) |
| void | setAlternateTransparency (QPalette::ColorRole colorRole, int alpha, bool state) |
| Public Member Functions inherited from ClickableLabel | |
| ClickableLabel (QWidget *parent=nullptr, const QString &name="") | |
| void | passThroughMousePressEvent (bool enable) |
Protected Member Functions | |
| void | paintEvent (QPaintEvent *event) override |
| Protected Member Functions inherited from ClickableLabel | |
| void | mousePressEvent (QMouseEvent *event) override |
| void | mouseReleaseEvent (QMouseEvent *event) override |
Additional Inherited Members | |
| Signals inherited from ClickableLabel | |
| void | clicked () |
◆ ClickableStateLabel()
|
inline |
◆ getState()
|
inline |
◆ setDisplayState()
|
inline |
◆ setAlternateTransparency()
|
inline |
◆ paintEvent()
|
inlineoverrideprotected |