Vital
Loading...
Searching...
No Matches
text_look_and_feel.h
Go to the documentation of this file.
1#pragma once
2
3#include "JuceHeader.h"
5
15public:
19 virtual ~TextLookAndFeel() { }
20
37 void drawRotarySlider(Graphics& g, int x, int y, int width, int height,
38 float slider_t, float start_angle, float end_angle,
39 Slider& slider) override;
40
52 void drawToggleButton(Graphics& g, ToggleButton& button, bool hover, bool is_down) override;
53
70 void drawTickBox(Graphics& g, Component& component, float x, float y, float w, float h, bool ticked,
71 bool enabled, bool mouse_over, bool button_down) override;
72
81 void drawLabel(Graphics& g, Label& label) override;
82
98 void drawComboBox(Graphics& g, int width, int height, bool is_down,
99 int button_x, int button_y, int button_w, int button_h, ComboBox& box) override;
100
108 return &instance;
109 }
110
111private:
116
117 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(TextLookAndFeel)
118};
A base LookAndFeel class providing default styling for UI elements.
Definition default_look_and_feel.h:31
A custom look and feel class that renders UI elements with text-focused styling.
Definition text_look_and_feel.h:14
void drawLabel(Graphics &g, Label &label) override
Draws a label with text-focused style.
Definition text_look_and_feel.cpp:111
void drawToggleButton(Graphics &g, ToggleButton &button, bool hover, bool is_down) override
Draws a toggle button with a text-centered style.
Definition text_look_and_feel.cpp:43
static TextLookAndFeel * instance()
Singleton instance access.
Definition text_look_and_feel.h:106
void drawComboBox(Graphics &g, int width, int height, bool is_down, int button_x, int button_y, int button_w, int button_h, ComboBox &box) override
Draws a combo box with text styling.
Definition text_look_and_feel.cpp:119
void drawRotarySlider(Graphics &g, int x, int y, int width, int height, float slider_t, float start_angle, float end_angle, Slider &slider) override
Draws a rotary slider using a text-focused design.
Definition text_look_and_feel.cpp:11
virtual ~TextLookAndFeel()
Destructor.
Definition text_look_and_feel.h:19
void drawTickBox(Graphics &g, Component &component, float x, float y, float w, float h, bool ticked, bool enabled, bool mouse_over, bool button_down) override
Draws a tick box (for checkboxes) with minimal text-focused styling.
Definition text_look_and_feel.cpp:99