96 bool addToDesktop =
true);
109 void setName (
const String& newName)
override;
117 void setIcon (
const Image& imageToUse);
120 void setTitleBarHeight (
int newHeight);
123 int getTitleBarHeight()
const;
138 void setTitleBarButtonsRequired (
int requiredButtons,
139 bool positionTitleBarButtonsOnLeft);
146 void setTitleBarTextCentred (
bool textShouldBeCentred);
161 int menuBarHeight = 0);
167 Component* getMenuBarComponent() const noexcept;
172 void setMenuBarComponent (
Component* newMenuBarComponent);
195 virtual
void closeButtonPressed();
204 virtual
void minimiseButtonPressed();
214 virtual
void maximiseButtonPressed();
218 Button* getCloseButton() const noexcept;
221 Button* getMinimiseButton() const noexcept;
224 Button* getMaximiseButton() const noexcept;
236 textColourId = 0x1005701,
250 int titleSpaceX,
int titleSpaceW,
252 bool drawTitleTextOnLeft) = 0;
254 virtual Button* createDocumentWindowButton (
int buttonType) = 0;
257 int titleBarX,
int titleBarY,
int titleBarW,
int titleBarH,
261 bool positionTitleBarButtonsOnLeft) = 0;
269 void resized()
override;
271 void lookAndFeelChanged()
override;
277 void mouseDoubleClick (
const MouseEvent&)
override;
279 void userTriedToCloseWindow()
override;
281 void activeWindowStatusChanged()
override;
283 int getDesktopWindowStyleFlags()
const override;
285 void parentHierarchyChanged()
override;
292 int titleBarHeight = 26, menuBarHeight = 24, requiredButtons;
293 bool positionTitleBarButtonsOnLeft, drawTitleTextCentred =
true;
302 void repaintTitleBar();
Specifies a set of gaps to be left around the sides of a rectangle.
Represents a colour, also including a transparency value.
The base class for all JUCE user-interface objects.
A resizable window with a title bar and maximise, minimise and close buttons.
ColourIds
A set of colour IDs to use to change the colour of various aspects of the window.
TitleBarButtons
The set of available button-types that can be put on the title bar.
A graphics context, used for drawing a component or image.
Holds a fixed-size bitmap.
Contains position and status information about a mouse event.
Manages a rectangle and allows geometric operations to be performed on it.
A base class for top-level windows that can be dragged around and resized.
This abstract base class is implemented by LookAndFeel classes to provide window drawing functionalit...