mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added a default constructor for RectanglePlacement.
This commit is contained in:
parent
010ba396e9
commit
a90c0635bc
2 changed files with 4 additions and 3 deletions
|
|
@ -41,6 +41,9 @@ public:
|
|||
/** Creates a RectanglePlacement object using a combination of flags from the Flags enum. */
|
||||
inline RectanglePlacement (int placementFlags) noexcept : flags (placementFlags) {}
|
||||
|
||||
/** Creates a default RectanglePlacement object, which is equivalent to using the 'centred' flag. */
|
||||
inline RectanglePlacement() noexcept : flags (centred) {}
|
||||
|
||||
/** Creates a copy of another RectanglePlacement object. */
|
||||
RectanglePlacement (const RectanglePlacement& other) noexcept;
|
||||
|
||||
|
|
|
|||
|
|
@ -2229,9 +2229,7 @@ void LookAndFeel_V2::drawTableHeaderColumn (Graphics& g, const String& columnNam
|
|||
1.0f, 0.0f);
|
||||
|
||||
g.setColour (Colour (0x99000000));
|
||||
g.fillPath (sortArrow, RectanglePlacement (RectanglePlacement::centred)
|
||||
.getTransformToFit (sortArrow.getBounds(),
|
||||
area.removeFromRight (height / 2).reduced (2).toFloat()));
|
||||
g.fillPath (sortArrow, sortArrow.getTransformToScaleToFit (area.removeFromRight (height / 2).reduced (2).toFloat(), true));
|
||||
}
|
||||
|
||||
g.setColour (Colours::black);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue