Guest User

Untitled

a guest
Sep 21st, 2020
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #pragma once
  2.  
  3. #include "../StandardIncludes.h"
  4.  
  5. class FillComponent : public juce::Component {
  6.   public:
  7.     explicit FillComponent(juce::Colour color) noexcept;
  8.  
  9.     auto paint(juce::Graphics& g) noexcept -> void override;
  10.  
  11.     inline auto setColor(juce::Colour color) noexcept -> void {
  12.         mColour = color;
  13.     }
  14.  
  15.     inline auto getColour() const noexcept -> juce::Colour {
  16.         return mColour;
  17.     }
  18.  
  19. #if defined(PACE_ENABLED)
  20.     DECLARE_SECURITY_FUNCTIONS();
  21. #endif
  22.  
  23.   private:
  24.     juce::Colour mColour;
  25.  
  26.     JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(FillComponent)
  27. };
Advertisement
Add Comment
Please, Sign In to add comment