Vital
Loading...
Searching...
No Matches
OpenGlDeviceSelector Class Reference

A device selector component rendered using OpenGL for improved performance. More...

#include <about_section.h>

Inheritance diagram for OpenGlDeviceSelector:
OpenGlAutoImageComponent< AudioDeviceSelectorComponent >

Public Member Functions

 OpenGlDeviceSelector (AudioDeviceManager &device_manager, int min_audio_input_channels, int max_audioInput_channels, int min_audio_output_channels, int max_audioOutput_channels, bool show_midi_input_options, bool show_midi_output_selector, bool show_channels_as_stereo_pairs, bool hide_advanced_options_with_button)
 
void resized () override
 Called when the component is resized; triggers a redraw of the image.
 
- Public Member Functions inherited from OpenGlAutoImageComponent< AudioDeviceSelectorComponent >
virtual void mouseDown (const MouseEvent &e) override
 
virtual void mouseUp (const MouseEvent &e) override
 
virtual void mouseDoubleClick (const MouseEvent &e) override
 
virtual void mouseEnter (const MouseEvent &e) override
 
virtual void mouseExit (const MouseEvent &e) override
 
virtual void mouseWheelMove (const MouseEvent &e, const MouseWheelDetails &wheel) override
 
OpenGlImageComponentgetImageComponent ()
 Gets the underlying OpenGlImageComponent.
 
virtual void redoImage ()
 Redraws the image after a state change.
 

Additional Inherited Members

- Protected Attributes inherited from OpenGlAutoImageComponent< AudioDeviceSelectorComponent >
OpenGlImageComponent image_component_
 The OpenGlImageComponent for rendering this component.
 

Detailed Description

A device selector component rendered using OpenGL for improved performance.

This class provides a device selector (for audio and MIDI devices) wrapped in an OpenGL component. It updates its rendered image whenever resized, ensuring a smooth UI experience.

Constructor & Destructor Documentation

◆ OpenGlDeviceSelector()

OpenGlDeviceSelector::OpenGlDeviceSelector ( AudioDeviceManager & device_manager,
int min_audio_input_channels,
int max_audioInput_channels,
int min_audio_output_channels,
int max_audioOutput_channels,
bool show_midi_input_options,
bool show_midi_output_selector,
bool show_channels_as_stereo_pairs,
bool hide_advanced_options_with_button )
inline

Constructor.

Parameters
device_managerThe AudioDeviceManager controlling audio and MIDI devices.
min_audio_input_channelsMinimum number of audio input channels.
max_audioInput_channelsMaximum number of audio input channels.
min_audio_output_channelsMinimum number of audio output channels.
max_audioOutput_channelsMaximum number of audio output channels.
show_midi_input_optionsWhether to show MIDI input options.
show_midi_output_selectorWhether to show a MIDI output selector.
show_channels_as_stereo_pairsWhether to show channel pairs as stereo.
hide_advanced_options_with_buttonWhether to hide advanced options behind a button.

Member Function Documentation

◆ resized()

void OpenGlDeviceSelector::resized ( )
inlineoverride

Called when the component is resized; triggers a redraw of the image.


The documentation for this class was generated from the following file: