JUCE Designer
 All Classes Functions Variables
JUCED_ColourPropertyComponent Class Reference

PropertyComponent that shows a CallOutBox with a ColourSelector in it. More...

Inheritance diagram for JUCED_ColourPropertyComponent:
TextWithButtonPropertyComponent

Public Member Functions

 JUCED_ColourPropertyComponent (const Value &ValueToControl, const String &propertyName)
 Creates a colour selector property component.
 
void buttonClicked (Button *buttonThatWasClicked)
 Called when the user clicks the button.
 
void changeListenerCallback (ChangeBroadcaster *source)
 Called whenever the colour within the ColourSelector changes.
 
- Public Member Functions inherited from TextWithButtonPropertyComponent
 TextWithButtonPropertyComponent (const Value &ValueToControl, const String &propertyName)
 Creates a PropertyComponent with an editable Label and a TextButton on the right.
 
void resized ()
 Called automatically to resize child components.
 

Public Attributes

Colour colour
 
- Public Attributes inherited from TextWithButtonPropertyComponent
TextButton * button
 Pointer to TextButton object.
 
Label * textLabel
 Pointer to Label object.
 

Detailed Description

PropertyComponent that shows a CallOutBox with a ColourSelector in it.

Used to allow the user change Colour Attributes from fomponents

Inherits TextWithButtonPropertyComponent, ChangeListener.

Definition at line 20 of file ColourPropertyComponent.cpp.

Constructor & Destructor Documentation

JUCED_ColourPropertyComponent::JUCED_ColourPropertyComponent ( const Value &  ValueToControl,
const String &  propertyName 
)
inline

Creates a colour selector property component.

See Also
ColourSelector, TextWithButtonPropertyComponent
Parameters
ValueToControlValue reference to control.
propertyNameString containing the display name for this PropertyComponent.

Definition at line 32 of file ColourPropertyComponent.cpp.

References TextWithButtonPropertyComponent::textLabel.

Member Function Documentation

void JUCED_ColourPropertyComponent::buttonClicked ( Button *  buttonThatWasClicked)
inlinevirtual

Called when the user clicks the button.

Implements TextWithButtonPropertyComponent.

Definition at line 41 of file ColourPropertyComponent.cpp.

References TextWithButtonPropertyComponent::button.

void JUCED_ColourPropertyComponent::changeListenerCallback ( ChangeBroadcaster *  source)
inline

Called whenever the colour within the ColourSelector changes.

Definition at line 56 of file ColourPropertyComponent.cpp.

References TextWithButtonPropertyComponent::textLabel.


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