Vital
Loading...
Searching...
No Matches
expired_section.h
Go to the documentation of this file.
1#pragma once
2
3#include "JuceHeader.h"
4#include "overlay.h"
6
14class ExpiredSection : public Overlay {
15public:
19 static constexpr int kExpiredWidth = 340;
20
24 static constexpr int kExpiredHeight = 85;
25
29 static constexpr int kPaddingX = 25;
30
34 static constexpr int kPaddingY = 20;
35
39 static constexpr int kButtonHeight = 30;
40
45 ExpiredSection(String name);
46
50 virtual ~ExpiredSection() = default;
51
57 void resized() override;
58
63 void setVisible(bool should_be_visible) override;
64
69 Rectangle<int> getExpiredRect();
70
71private:
75 OpenGlQuad body_;
76
80 std::unique_ptr<PlainTextComponent> text_;
81
85 std::unique_ptr<class OpenGlHyperlink> link_;
86
87 JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(ExpiredSection)
88};
A section overlay that displays an expiration message for a beta version of the plugin.
Definition expired_section.h:14
static constexpr int kPaddingX
The horizontal padding within the overlay.
Definition expired_section.h:29
static constexpr int kPaddingY
The vertical padding within the overlay.
Definition expired_section.h:34
void setVisible(bool should_be_visible) override
Sets the visibility of this overlay.
Definition expired_section.cpp:57
static constexpr int kExpiredHeight
The fixed height of the expired section overlay.
Definition expired_section.h:24
static constexpr int kExpiredWidth
The fixed width of the expired section overlay.
Definition expired_section.h:19
ExpiredSection(String name)
Constructs an ExpiredSection overlay.
Definition expired_section.cpp:26
virtual ~ExpiredSection()=default
Destructor.
Rectangle< int > getExpiredRect()
Computes the rectangle area occupied by the expired message section.
Definition expired_section.cpp:68
void resized() override
Called when the component is resized.
Definition expired_section.cpp:41
static constexpr int kButtonHeight
The height of the clickable button area (e.g., hyperlink text).
Definition expired_section.h:39
A convenience class for a single quad rendered via OpenGL.
Definition open_gl_multi_quad.h:447
A SynthSection that displays an overlay with a background and optional listeners.
Definition overlay.h:180