This class was initally created to add right-click edit functionality to labels.
More...
#include <KrotosLabel.h>
|
| void | setEditable (bool editOnSingleClick, bool editOnDoubleClick=false, bool editOnRightClick=false, bool lossOfFocusDiscards=false) |
| |
| void | mouseDown (const MouseEvent &e) override |
| |
| void | mouseUp (const MouseEvent &e) override |
| |
| void | mouseDoubleClick (const MouseEvent &e) override |
| |
This class was initally created to add right-click edit functionality to labels.
◆ mouseDoubleClick()
| void krotos::KrotosLabel::mouseDoubleClick |
( |
const MouseEvent & | e | ) |
|
|
override |
◆ mouseDown()
| void krotos::KrotosLabel::mouseDown |
( |
const MouseEvent & | e | ) |
|
|
override |
◆ mouseUp()
| void krotos::KrotosLabel::mouseUp |
( |
const MouseEvent & | e | ) |
|
|
override |
◆ setEditable()
| void krotos::KrotosLabel::setEditable |
( |
bool | editOnSingleClick, |
|
|
bool | editOnDoubleClick = false, |
|
|
bool | editOnRightClick = false, |
|
|
bool | lossOfFocusDiscards = false ) |
Makes the label turn into a TextEditor when clicked.
- Parameters
-
| editOnSingleClick | if true, just clicking once on the label will start editing the text |
| editOnDoubleClick | if true, a double-click is needed to start editing |
| editOnRightClick | if true, a right-click is needed to start editing |
| lossOfFocusDiscardsChanges | if true, clicking somewhere else while the text is being edited will discard any changes; if false, then this will commit the changes. |
◆ m_editDoubleClick
| bool krotos::KrotosLabel::m_editDoubleClick = false |
|
private |
◆ m_editRightClick
| bool krotos::KrotosLabel::m_editRightClick = false |
|
private |
◆ m_editSingleClick
| bool krotos::KrotosLabel::m_editSingleClick = false |
|
private |
◆ m_lossOfFocusDiscardsChanges
| bool krotos::KrotosLabel::m_lossOfFocusDiscardsChanges = false |
|
private |
The documentation for this class was generated from the following files: