25 #ifndef JUCE_TABBEDBUTTONBAR_H_INCLUDED 26 #define JUCE_TABBEDBUTTONBAR_H_INCLUDED 69 void setExtraComponent (
Component* extraTabComponent,
92 Colour getTabBackgroundColour()
const;
95 bool isFrontTab()
const;
104 virtual int getBestTabLength (
int depth);
112 bool hitTest (
int x,
int y)
override;
195 void setMinimumTabScaleFactor (
double newMinimumScale);
207 void addTab (
const String& tabName,
208 Colour tabBackgroundColour,
212 void setTabName (
int tabIndex,
const String& newName);
215 void removeTab (
int tabIndex,
bool animate =
false);
220 void moveTab (
int currentIndex,
int newIndex,
bool animate =
false);
223 int getNumTabs()
const;
235 void setCurrentTabIndex (
int newTabIndex,
bool sendChangeMessage =
true);
240 String getCurrentTabName()
const;
255 int indexOfTabButton (
const TabBarButton* button)
const;
264 virtual void currentTabChanged (
int newCurrentTabIndex,
265 const String& newCurrentTabName);
268 virtual void popupMenuClickOnTab (
int tabIndex,
const String& tabName);
273 Colour getTabBackgroundColour (
int tabIndex);
278 void setTabBackgroundColour (
int tabIndex,
Colour newColour);
290 tabOutlineColourId = 0x1005812,
291 tabTextColourId = 0x1005813,
293 frontOutlineColourId = 0x1005814,
294 frontTextColourId = 0x1005815,
307 virtual int getTabButtonSpaceAroundImage() = 0;
308 virtual int getTabButtonOverlap (
int tabDepth) = 0;
309 virtual int getTabButtonBestWidth (
TabBarButton&,
int tabDepth) = 0;
313 virtual void drawTabButtonText (
TabBarButton&,
Graphics&,
bool isMouseOver,
bool isMouseDown) = 0;
317 virtual void createTabButtonShape (
TabBarButton&,
Path& path,
bool isMouseOver,
bool isMouseDown) = 0;
318 virtual void fillTabButtonShape (
TabBarButton&,
Graphics&,
const Path& path,
bool isMouseOver,
bool isMouseDown) = 0;
320 virtual Button* createTabBarExtrasButton() = 0;
327 void resized()
override;
329 void lookAndFeelChanged()
override;
361 void showExtraItemsMenu();
363 void updateTabPositions (
bool animate);
369 #endif // JUCE_TABBEDBUTTONBAR_H_INCLUDED
#define noexcept
Definition: juce_CompilerSupport.h:141
int getWidth() const noexcept
Definition: juce_Component.h:268
Definition: juce_ModifierKeys.h:38
Definition: juce_String.h:43
Definition: juce_ChangeBroadcaster.h:35
int getHeight() const noexcept
Definition: juce_Component.h:271
#define JUCE_API
Definition: juce_StandardHeader.h:139
Definition: juce_Rectangle.h:36
virtual void resized()
Definition: juce_Component.cpp:2272
Definition: juce_Path.h:62
Definition: juce_Colour.h:35
Definition: juce_Component.h:33
Definition: juce_StringArray.h:39
Definition: juce_ContainerDeletePolicy.h:44
Definition: juce_GraphicsContext.h:42
virtual void childBoundsChanged(Component *child)
Definition: juce_Component.cpp:2274
virtual bool hitTest(int x, int y)
Definition: juce_Component.cpp:1365