FWBoxIconBase

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
#ifndef Fireworks_Core_FWBoxIconBase_h
#define Fireworks_Core_FWBoxIconBase_h
// -*- C++ -*-
//
// Package:     Core
// Class  :     FWBoxIconBase
//
/**\class FWBoxIconBase FWBoxIconBase.h Fireworks/Core/interface/FWBoxIconBase.h

 Description: Base class for rendering an icon which has a box as an outline

 Usage:
    <usage>

*/
//
// Original Author:  Chris Jones
//         Created:  Thu Feb 19 15:09:30 CST 2009
//

// system include files
#include "GuiTypes.h"

// user include files

// forward declarations

class FWBoxIconBase {
public:
  FWBoxIconBase(unsigned int iEdgeLength);
  virtual ~FWBoxIconBase();

  // ---------- const member functions ---------------------
  void draw(Drawable_t iID, GContext_t iContext, int iX, int iY) const;

  unsigned int edgeLength() const { return m_edgeLength; }
  // ---------- static member functions --------------------

  // ---------- member functions ---------------------------

  FWBoxIconBase(const FWBoxIconBase&) = delete;  // stop default

  const FWBoxIconBase& operator=(const FWBoxIconBase&) = delete;  // stop default

private:
  virtual void drawInsideBox(Drawable_t iID, GContext_t iContext, int iX, int iY, unsigned int iSize) const = 0;

  // ---------- member data --------------------------------
  unsigned int m_edgeLength;
};

#endif