A text editor that uses an OpenGlImageComponent for rendering and updates the image on text changes.
More...
#include <open_gl_image_component.h>
A text editor that uses an OpenGlImageComponent for rendering and updates the image on text changes.
The OpenGlTextEditor applies a font and redraws its image on various text events, mouse events, and focus changes.
◆ OpenGlTextEditor() [1/2]
OpenGlTextEditor::OpenGlTextEditor |
( |
String | name | ) |
|
|
inline |
Constructs an OpenGlTextEditor with a given name.
- Parameters
-
name | The name of the text editor. |
◆ OpenGlTextEditor() [2/2]
OpenGlTextEditor::OpenGlTextEditor |
( |
String | name, |
|
|
wchar_t | password_char ) |
|
inline |
Constructs an OpenGlTextEditor with a given name and password character.
- Parameters
-
name | The name of the text editor. |
password_char | The character used to mask text if used as a password field. |
◆ applyFont()
void OpenGlTextEditor::applyFont |
( |
| ) |
|
|
inline |
Applies the appropriate font based on monospace setting and component size.
◆ keyPressed()
bool OpenGlTextEditor::keyPressed |
( |
const KeyPress & | key | ) |
|
|
inlineoverride |
◆ mouseDrag()
virtual void OpenGlTextEditor::mouseDrag |
( |
const MouseEvent & | e | ) |
|
|
inlineoverridevirtual |
◆ resized()
void OpenGlTextEditor::resized |
( |
| ) |
|
|
inlineoverride |
◆ setMonospace()
void OpenGlTextEditor::setMonospace |
( |
| ) |
|
|
inline |
Sets the text editor to use a monospace font.
◆ textEditorFocusLost()
void OpenGlTextEditor::textEditorFocusLost |
( |
TextEditor & | | ) |
|
|
inlineoverride |
◆ textEditorTextChanged()
void OpenGlTextEditor::textEditorTextChanged |
( |
TextEditor & | | ) |
|
|
inlineoverride |
◆ visibilityChanged()
void OpenGlTextEditor::visibilityChanged |
( |
| ) |
|
|
inlineoverride |
The documentation for this class was generated from the following file: