Vital
Loading...
Searching...
No Matches
keyboard_interface.cpp
Go to the documentation of this file.
2
3#include "skin.h"
4#include "midi_keyboard.h"
5
12KeyboardInterface::KeyboardInterface(MidiKeyboardState* keyboard_state) : SynthSection("keyboard") {
13 keyboard_ = std::make_unique<MidiKeyboard>(*keyboard_state);
14 addOpenGlComponent(keyboard_.get());
15
16 setOpaque(false);
18}
19
24
34
39 keyboard_->setBounds(getLocalBounds());
41}
void resized() override
Called when the component is resized.
Definition keyboard_interface.cpp:38
void paintBackground(Graphics &g) override
Paints the background of the keyboard interface.
Definition keyboard_interface.cpp:30
KeyboardInterface(MidiKeyboardState *keyboard_state)
Constructs a new KeyboardInterface.
Definition keyboard_interface.cpp:12
~KeyboardInterface()
Destructor.
Definition keyboard_interface.cpp:23
@ kKeyboard
Definition skin.h:44
Base class for all synthesizer sections, providing UI layout, painting, and interaction logic.
Definition synth_section.h:193
virtual void resized() override
Called when the component is resized. Arranges layout of child components.
Definition synth_section.cpp:35
virtual void paintBody(Graphics &g, Rectangle< int > bounds)
Paints the body background within given bounds.
Definition synth_section.cpp:165
void paintChildrenBackgrounds(Graphics &g)
Paints the backgrounds for all child sections.
Definition synth_section.cpp:274
void addOpenGlComponent(OpenGlComponent *open_gl_component, bool to_beginning=false)
Definition synth_section.cpp:489
void setSkinOverride(Skin::SectionOverride skin_override)
Definition synth_section.h:303