Go to the SVN repository for this file.
1 #ifndef GUI_WIDGETS_WX___MAP_ITEM__HPP 2 #define GUI_WIDGETS_WX___MAP_ITEM__HPP 57 const string& descr,
boolseparator =
false);
60 const string&
GetLabel()
const{
returnm_Label; }
61 const string&
GetDescr()
const{
returnm_Descr; }
63 voidSetIcon(wxBitmap& image);
67 virtual voidSetCommand(
TCmdID cmd, wxEvtHandler* target);
71 virtual void SetRect(
constwxRect& rc);
72 virtual void GetRect(wxRect& rc)
const;
78 virtual bool OnHotTrack(
constwxPoint& ms_pos) {
return false; }
86 virtual intx_GetItemShift()
const;
89 virtual intx_PreferredSeparatorHeight(wxDC& dc)
const;
96 virtual voidx_DrawText(wxDC& dc,
const string&
text,
constwxRect& rc,
boolselected,
boolfocused,
CMapItem This is a base class for IwxMapItem implementations.
virtual void OnMouseDown(const wxPoint &ms_pos)
virtual bool OnHotTrack(const wxPoint &ms_pos)
const string & GetLabel() const
wxEvtHandler * m_CmdTarget
const string & GetDescr() const
virtual void OnLeftDoubleClick(const wxPoint &ms_pos)
IwxMapItem Abstarct item of the Map Control.
virtual void Layout(wxDC &dc, SwxMapItemProperties &props)=0
virtual bool IsGroupSeparator() const =0
virtual int PreferredHeight(wxDC &dc, SwxMapItemProperties &props, int width)=0
virtual void SetRect(const wxRect &rc)=0
virtual void Draw(wxDC &dc, int state, SwxMapItemProperties &props)=0
Draws item in the given rectangle, state is a combination of EItemState flags.
virtual void OnDefaultAction()=0
a callback to perform a default action associated with the item
virtual void GetRect(wxRect &rc) const =0
Include a standard set of the NCBI C++ Toolkit most basic headers.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_WX_EXPORT
static const char label[]
static void text(MDB_val *v)
SwxMapItemProperties - properties of the IwxMapItem.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4