74 void setTabBarDepth (
int newDepth);
88 void setOutline (
int newThickness);
93 void setIndent (
int indentThickness);
109 void addTab (
const String& tabName,
110 Colour tabBackgroundColour,
112 bool deleteComponentWhenNotNeeded,
113 int insertIndex = -1);
116 void setTabName (
int tabIndex,
const String& newName);
119 void removeTab (
int tabIndex);
124 void moveTab (
int currentIndex,
int newIndex,
bool animate =
false);
127 int getNumTabs()
const;
136 Component* getTabContentComponent (
int tabIndex)
const noexcept;
139 Colour getTabBackgroundColour (
int tabIndex)
const noexcept;
142 void setTabBackgroundColour (
int tabIndex,
Colour newColour);
149 void setCurrentTabIndex (
int newTabIndex,
bool sendChangeMessage =
true);
154 int getCurrentTabIndex()
const;
159 String getCurrentTabName()
const;
170 virtual void currentTabChanged (
int newCurrentTabIndex,
const String& newCurrentTabName);
173 virtual void popupMenuClickOnTab (
int tabIndex,
const String& tabName);
188 backgroundColourId = 0x1005800,
189 outlineColourId = 0x1005801,
197 void resized()
override;
199 void lookAndFeelChanged()
override;
219 int tabDepth = 30, outlineThickness = 1, edgeIndent = 0;
222 void changeCallback (
int newCurrentTabIndex,
const String& newTabName);
Holds a resizable array of primitive or copy-by-value objects.
Represents a colour, also including a transparency value.
The base class for all JUCE user-interface objects.
A graphics context, used for drawing a component or image.
A special array for holding a list of strings.
A component with a TabbedButtonBar along one of its sides.
int getTabBarDepth() const noexcept
Returns the current thickness of the tab bar.
Component * getCurrentContentComponent() const noexcept
Returns the current component that's filling the panel.
ColourIds
A set of colour IDs to use to change the colour of various aspects of the component.
TabbedButtonBar & getTabbedButtonBar() const noexcept
Returns the tab button bar component that is being used.
This class acts as a pointer which will automatically become null if the object to which it points is...