SCV  4.2.1
Simple Components for Visual
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PopupMenuStyle.h
Go to the documentation of this file.
1 #ifndef __SCV_POPUP_MENU_STYLE_H__
2 #define __SCV_POPUP_MENU_STYLE_H__
3 
4 #include "Point.h"
5 #include "ComponentTexture.h"
6 
7 namespace scv {
8 
9 class ContextMenu;
10 
16 public:
17  virtual bool isInsideItem(const scv::ContextMenu *menu, const scv::Point &pos, int index) const;
18  virtual scv::Point getSubItemPosition(const scv::ContextMenu *menu, int index) const;
19 
20  virtual void drawItem(const scv::ContextMenu *menu, int index) const = 0;
21 
22  virtual int calculateWidth(const scv::ContextMenu *menu) const = 0;
23  virtual int calculateHeight(const scv::ContextMenu *menu) const = 0;
24 
25 protected:
26  PopupMenuStyle(void);
27  virtual ~PopupMenuStyle(void) {}
28 
29  virtual void createTexture(void) = 0;
30 
33 };
34 
35 } // namespace scv
36 
37 #endif // __SCV_POPUP_MENU_STYLE_H__