File indexing completed on 2024-04-06 12:11:36
0001 #ifndef Fireworks_Core_FWBoxIconBase_h
0002 #define Fireworks_Core_FWBoxIconBase_h
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022 #include "GuiTypes.h"
0023
0024
0025
0026
0027
0028 class FWBoxIconBase {
0029 public:
0030 FWBoxIconBase(unsigned int iEdgeLength);
0031 virtual ~FWBoxIconBase();
0032
0033
0034 void draw(Drawable_t iID, GContext_t iContext, int iX, int iY) const;
0035
0036 unsigned int edgeLength() const { return m_edgeLength; }
0037
0038
0039
0040
0041 FWBoxIconBase(const FWBoxIconBase&) = delete;
0042
0043 const FWBoxIconBase& operator=(const FWBoxIconBase&) = delete;
0044
0045 private:
0046 virtual void drawInsideBox(Drawable_t iID, GContext_t iContext, int iX, int iY, unsigned int iSize) const = 0;
0047
0048
0049 unsigned int m_edgeLength;
0050 };
0051
0052 #endif