30 :
Component (name), preferredHeight (height)
48 c->setBounds (
getLookAndFeel().getPropertyComponentContentPosition (*
this));
The base class for all JUCE user-interface objects.
int getHeight() const noexcept
Returns the component's height in pixels.
void repaint()
Marks the whole component as needing to be redrawn.
Component * getChildComponent(int index) const noexcept
Returns one of this component's child components, by it index.
int getWidth() const noexcept
Returns the component's width in pixels.
LookAndFeel & getLookAndFeel() const noexcept
Finds the appropriate look-and-feel to use for this component.
A graphics context, used for drawing a component or image.
void resized() override
The default resize method positions any child component to the right of this one, based on the look a...
void enablementChanged() override
By default, this just repaints the component.
PropertyComponent(const String &propertyName, int preferredHeight=25)
Creates a PropertyComponent.
void paint(Graphics &) override
The default paint method fills the background and draws a label for the item's name.
~PropertyComponent() override
Destructor.
bool isNotEmpty() const noexcept
Returns true if the string contains at least one character.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...