TracktionEngine
Loading...
Searching...
No Matches
engine::Plugin::WindowState Struct Reference

Persistent state for the plugin's editor window (position, visibility, etc.). More...

#include <tracktion_Plugin.h>

Inheritance diagram for engine::Plugin::WindowState:

Public Member Functions

 WindowState (Plugin &)
Public Member Functions inherited from engine::PluginWindowState
 PluginWindowState (Edit &)
void incRefCount ()
void decRefCount ()
bool isWindowShowing () const
void showWindowExplicitly ()
void showWindowIfTemporarilyHidden ()
void recreateWindowIfShowing ()
void closeWindowExplicitly ()
void hideWindowForShutdown ()
void hideWindowTemporarily ()
juce::Point< int > choosePositionForPluginWindow ()
void pluginClicked (const juce::MouseEvent &)
 Can be used to manually fire a mouse event into the window.

Public Attributes

Plugin & plugin
Public Attributes inherited from engine::PluginWindowState
Edit & edit
Engine & engine
std::unique_ptr< juce::Component > pluginWindow
int windowShowerCount = 0
bool temporarilyHidden = false
bool wasExplicitlyClosed = false
std::optional< juce::Rectangle< int > > lastWindowBounds
juce::Time windowOpenTime

Additional Inherited Members

Static Public Member Functions inherited from engine::PluginWindowState
static void hideAllWindowsTemporarily (Edit &)
 Calls hideWindowTemporarily() for any windows of plugins in this edit.
static void showAllTemporarilyHiddenWindows (Edit &)
 Calls showWindowIfTemporarilyHidden() for all plugins in this edit.
static void showOrHideAllWindows (Edit &)
 If any windows are showing, hide them all temporarily, otherwise bring back any temporarily hidden ones.
static std::vector< PluginWindowState * > getAllWindows (Edit &)
 Finds all windows for all plugins in this edit.
static uint32_t getNumOpenWindows (Edit &)
 Counts the number of visible windows for plugins in this edit.

Detailed Description

Persistent state for the plugin's editor window (position, visibility, etc.).

Constructor & Destructor Documentation

◆ WindowState()

engine::Plugin::WindowState::WindowState ( Plugin & )

Member Data Documentation

◆ plugin

Plugin& engine::Plugin::WindowState::plugin

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