29ToolbarItemFactory::ToolbarItemFactory() {}
39 toolbarStyle (
Toolbar::iconsOnly),
43 isBeingDragged (
false),
78 if (isBeingUsedAsAButton)
84 auto indent = contentArea.
getX();
140 else if (overlayComp ==
nullptr)
144 overlayComp->parentSizeChanged();
161 return std::make_unique<detail::ButtonAccessibilityHandler> (*
this, AccessibilityRole::button);
int proportionOfWidth(float proportion) const noexcept
Returns a proportion of the component's width.
Component * getParentComponent() const noexcept
Returns the component which this component is inside.
int proportionOfHeight(float proportion) const noexcept
Returns a proportion of the component's height.
int getHeight() const noexcept
Returns the component's height in pixels.
void addAndMakeVisible(Component *child, int zOrder=-1)
Adds a child component to this one, and also makes the child visible if it isn't already.
void repaint()
Marks the whole component as needing to be redrawn.
int getWidth() const noexcept
Returns the component's width in pixels.
LookAndFeel & getLookAndFeel() const noexcept
Finds the appropriate look-and-feel to use for this component.
Uses RAII to save and restore the state of a graphics context.
A graphics context, used for drawing a component or image.
bool reduceClipRegion(int x, int y, int width, int height)
Intersects the current clipping region with another region.
void setOrigin(Point< int > newOrigin)
Moves the position of the context's origin.
Manages a rectangle and allows geometric operations to be performed on it.
ValueType getX() const noexcept
Returns the x coordinate of the rectangle's left-hand-side.
Point< ValueType > getPosition() const noexcept
Returns the rectangle's top-left position as a Point.
ValueType getBottom() const noexcept
Returns the y coordinate of the rectangle's bottom edge.
ValueType getWidth() const noexcept
Returns the width of the rectangle.
bool isEmpty() const noexcept
Returns true if the rectangle's width or height are zero or less.
ValueType getHeight() const noexcept
Returns the height of the rectangle.
constexpr Type jmin(Type a, Type b)
Returns the smaller of two values.
Type unalignedPointerCast(void *ptr) noexcept
Casts a pointer to another type via void*, which suppresses the cast-align warning which sometimes ar...