GlyphStyleControls
GlyphStyleControls
Widget for editing glyph style properties. More…
#include <GlyphStyleControls.hpp>
Inherits from QWidget
Public Functions
| Name | |
|---|---|
| GlyphStyleControls(GlyphStyleState * state, QWidget * parent =[nullptr]) Construct glyph style controls. |
|
| ~GlyphStyleControls() override =default | |
| QComboBox * | glyphTypeCombo() const Get the glyph type combo box. |
| QDoubleSpinBox * | sizeSpinBox() const Get the size spin box. |
| QPushButton * | colorButton() const Get the color button. |
| QDoubleSpinBox * | alphaSpinBox() const Get the alpha spin box. |
| void | setGlyphStyleState(GlyphStyleState * state) Rebind controls to a different GlyphStyleState. |
Detailed Description
class GlyphStyleControls;Widget for editing glyph style properties.
Provides combo box for shape, spin box for size, color button, and alpha slider. Automatically synchronizes with GlyphStyleState.
Public Functions Documentation
function GlyphStyleControls
explicit GlyphStyleControls(
GlyphStyleState * state,
QWidget * parent =nullptr
)Construct glyph style controls.
Parameters:
- state GlyphStyleState to bind to (must outlive this widget)
- parent Parent widget
function ~GlyphStyleControls
~GlyphStyleControls() override =defaultfunction glyphTypeCombo
inline QComboBox * glyphTypeCombo() constGet the glyph type combo box.
function sizeSpinBox
inline QDoubleSpinBox * sizeSpinBox() constGet the size spin box.
function alphaSpinBox
inline QDoubleSpinBox * alphaSpinBox() constGet the alpha spin box.
function setGlyphStyleState
void setGlyphStyleState(
GlyphStyleState * state
)Rebind controls to a different GlyphStyleState.
Parameters:
- state New state to bind to (must outlive this widget while bound)
Disconnects from the current state (if any), connects to the new state, and refreshes the UI. Pass nullptr to disable the controls.
Updated on 2026-11-13 at 20:25:40 +0000