GetDunne Wiki

Notes from the desk of Shane Dunne, software development consultant

User Tools

Site Tools


juce_gui_basics

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
juce_gui_basics [2021/02/08 21:25]
shane [Headline]
juce_gui_basics [2021/02/08 23:52] (current)
shane [Subclassing JUCE GUI classes]
Line 12: Line 12:
 You might choose to subclass //juce::Button// if you want to create your own type of button widget with unique appearance and behavior. To respond to the button being clicked, you would overload the //clicked()// member function. To change its appearance, you would overload //paint()//, and so on. You might choose to subclass //juce::Button// if you want to create your own type of button widget with unique appearance and behavior. To respond to the button being clicked, you would overload the //clicked()// member function. To change its appearance, you would overload //paint()//, and so on.
  
-Creating a derived class like this allows you to override as much of the standard class's functionality as you like, and inherit the rest.+Creating a derived class like this allows you to override as much of the standard class's functionality as you like, and inherit the rest. It's usually more work than the other two approaches.
  
 ==== Listeners ==== ==== Listeners ====
juce_gui_basics.txt ยท Last modified: 2021/02/08 23:52 by shane