1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Added a getPropertyPanelSectionHeaderHeight() method to PropertyComponent::LookAndFeelMethods

This commit is contained in:
ed 2017-11-27 10:47:54 +00:00
parent 27df960a52
commit 3eaeb3795e
4 changed files with 54 additions and 54 deletions

View file

@ -2490,6 +2490,11 @@ Rectangle<int> LookAndFeel_V2::getPropertyComponentContentPosition (PropertyComp
return Rectangle<int> (textW, 1, component.getWidth() - textW - 1, component.getHeight() - 3);
}
int LookAndFeel_V2::getPropertyPanelSectionHeaderHeight (const String& sectionTitle)
{
return sectionTitle.isEmpty() ? 0 : 22;
}
//==============================================================================
void LookAndFeel_V2::drawCallOutBoxBackground (CallOutBox& box, Graphics& g,
const Path& path, Image& cachedImage)

View file

@ -313,6 +313,7 @@ public:
void drawPropertyComponentBackground (Graphics&, int width, int height, PropertyComponent&) override;
void drawPropertyComponentLabel (Graphics&, int width, int height, PropertyComponent&) override;
Rectangle<int> getPropertyComponentContentPosition (PropertyComponent&) override;
int getPropertyPanelSectionHeaderHeight (const String& sectionTitle) override;
//==============================================================================
void drawCallOutBoxBackground (CallOutBox&, Graphics&, const Path& path, Image& cachedImage) override;