SCV
4.2.1
Simple Components for Visual
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
15
class
PopupMenuStyle
{
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
31
int
_menuSpacing
,
_borderHeight
,
_borderWidth
,
_menuHeight
;
32
scv::ComponentTexture
*
_cTexture
;
33
};
34
35
}
// namespace scv
36
37
#endif // __SCV_POPUP_MENU_STYLE_H__
include
SCV
PopupMenuStyle.h
Generated on Fri Dec 14 2012 09:44:49 for SCV by
1.8.2