A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCMapItem.html below:

NCBI C++ ToolKit: CMapItem Class Reference

Search Toolkit Book for CMapItem

CMapItem This is a base class for IwxMapItem implementations. More...

#include <gui/widgets/wx/map_item.hpp>

  CMapItem ()   CMapItem. More...
    CMapItem (const string &label, wxBitmap &icon, const string &descr, bool separator=false)   virtual  ~CMapItem ()   const stringGetLabel () const   const stringGetDescr () const   void  SetIcon (wxBitmap &image)   virtual void  SetCommand (TCmdID cmd, wxEvtHandler *target)   enables sending commands on default action; set target to NULL to disable More...
  virtual void  SetRect (const wxRect &rc)   virtual void  GetRect (wxRect &rc) const   virtual void  Layout (wxDC &dc, SwxMapItemProperties &props)   virtual int  PreferredHeight (wxDC &dc, SwxMapItemProperties &props, int width)   virtual bool  IsGroupSeparator () const   virtual void  Draw (wxDC &dc, int state, SwxMapItemProperties &props)   Draws item in the given rectangle, state is a combination of EItemState flags. More...
  virtual void  OnDefaultAction ()   a callback to perform a default action associated with the item More...
  virtual bool  OnHotTrack (const wxPoint &ms_pos)   virtual void  OnMouseDown (const wxPoint &ms_pos)   virtual void  OnLeftDoubleClick (const wxPoint &ms_pos)     CObject (void)   Constructor. More...
    CObject (const CObject &src)   Copy constructor. More...
  virtual  ~CObject (void)   Destructor. More...
  CObjectoperator= (const CObject &src) THROWS_NONE   Assignment operator. More...
  bool  CanBeDeleted (void) const THROWS_NONE   Check if object can be deleted. More...
  bool  IsAllocatedInPool (void) const THROWS_NONE   Check if object is allocated in memory pool (not system heap) More...
  bool  Referenced (void) const THROWS_NONE   Check if object is referenced. More...
  bool  ReferencedOnlyOnce (void) const THROWS_NONE   Check if object is referenced only once. More...
  void  AddReference (void) const   Add reference to object. More...
  void  RemoveReference (void) const   Remove reference to object. More...
  void  ReleaseReference (void) const   Remove reference without deleting object. More...
  virtual void  DoNotDeleteThisObject (void)   Mark this object as not allocated in heap – do not delete this object. More...
  virtual void  DoDeleteThisObject (void)   Mark this object as allocated in heap – object can be deleted. More...
  void *  operator new (size_t size)   Define new operator for memory allocation. More...
  void *  operator new[] (size_t size)   Define new[] operator for 'array' memory allocation. More...
  void  operator delete (void *ptr)   Define delete operator for memory deallocation. More...
  void  operator delete[] (void *ptr)   Define delete[] operator for memory deallocation. More...
  void *  operator new (size_t size, void *place)   Define new operator. More...
  void  operator delete (void *ptr, void *place)   Define delete operator. More...
  void *  operator new (size_t size, CObjectMemoryPool *place)   Define new operator using memory pool. More...
  void  operator delete (void *ptr, CObjectMemoryPool *place)   Define delete operator. More...
  virtual void  DebugDump (CDebugDumpContext ddc, unsigned int depth) const   Define method for dumping debug information. More...
    CDebugDumpable (void)   virtual  ~CDebugDumpable (void)   void  DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const   void  DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const   void  DumpToConsole (void) const   virtual  ~IwxMapItem ()   void  x_Init ()   virtual int  x_GetItemShift () const   virtual int  x_GetTextAreaWidth (SwxMapItemProperties &props, int width) const   virtual void  x_UpdatePreferredHeights (wxDC &dc, SwxMapItemProperties &props, int width)   virtual int  x_PreferredSeparatorHeight (wxDC &dc) const   virtual int  x_PreferredLabelHeight (wxDC &dc, SwxMapItemProperties &props, int text_w) const   virtual int  x_CalculateRealTextWidth (wxDC &dc, SwxMapItemProperties &props)   virtual void  x_DrawFocusRect (wxDC &dc, const wxRect &rc, int state, SwxMapItemProperties &props)   virtual void  x_DrawBackground (wxDC &dc, const wxRect &rc, int state, SwxMapItemProperties &props)   virtual void  x_DrawSeparator (wxDC &dc, const wxRect &rc, SwxMapItemProperties &props)   virtual void  x_DrawText (wxDC &dc, const string &text, const wxRect &rc, bool selected, bool focused, bool highlighted, SwxMapItemProperties &props)   virtual void  DeleteThis (void)   Virtual method "deleting" this object. More...
 

CMapItem This is a base class for IwxMapItem implementations.

Provides basic services.

Definition at line 50 of file map_item.hpp.

◆ CMapItem() [1/2] ◆ CMapItem() [2/2] ◆ ~CMapItem() ◆ Draw()

Draws item in the given rectangle, state is a combination of EItemState flags.

Implements IwxMapItem.

Reimplemented in CGroupMapWidget::CGroupItem.

Definition at line 297 of file map_item.cpp.

References CSelectionControl::fItemSelected, CSelectionControl::fWidgetFocused, kSeparatorH, SwxMapItemProperties::m_Border, SwxMapItemProperties::m_Font, m_Icon, m_IconPos, m_Label, m_LabelRect, m_Rect, SwxMapItemProperties::m_SelBackColor, m_Separator, x_DrawBackground(), x_DrawFocusRect(), x_DrawSeparator(), and x_DrawText().

◆ GetDescr() ◆ GetLabel() ◆ GetRect() void CMapItem::GetRect ( wxRect &  rc ) const virtual ◆ IsGroupSeparator() bool CMapItem::IsGroupSeparator ( ) const virtual ◆ Layout()

Implements IwxMapItem.

Reimplemented in CGroupMapWidget::CGroupItem.

Definition at line 108 of file map_item.cpp.

References _TRACE, kDefIconHeight, kDefIconWidth, SwxMapItemProperties::m_Border, SwxMapItemProperties::m_CenterLabelAndIcon, SwxMapItemProperties::m_HorzMargin, m_Icon, m_IconPos, m_Label, m_LabelPrefH, m_LabelRect, m_PrefsDirty, m_Rect, m_Separator, SwxMapItemProperties::m_VertMargin, max(), min(), x_GetItemShift(), x_PreferredSeparatorHeight(), and x_UpdatePreferredHeights().

Referenced by CGroupMapWidget::CGroupItem::Layout().

◆ OnDefaultAction() void CMapItem::OnDefaultAction ( ) virtual ◆ OnHotTrack() virtual bool CMapItem::OnHotTrack ( const wxPoint &  ms_pos ) inlinevirtual ◆ OnLeftDoubleClick() virtual void CMapItem::OnLeftDoubleClick ( const wxPoint &  ms_pos ) inlinevirtual ◆ OnMouseDown() virtual void CMapItem::OnMouseDown ( const wxPoint &  ms_pos ) inlinevirtual ◆ PreferredHeight() ◆ SetCommand() void CMapItem::SetCommand ( TCmdID  cmd, wxEvtHandler *  target  ) virtual ◆ SetIcon() void CMapItem::SetIcon ( wxBitmap &  image ) ◆ SetRect() void CMapItem::SetRect ( const wxRect &  rc ) virtual ◆ x_CalculateRealTextWidth()

Definition at line 235 of file map_item.cpp.

References abs, ewxTruncate_EllipsisAlways, i, int, len, SwxMapItemProperties::m_HorzMargin, m_Label, m_LabelRect, SwxMapItemProperties::m_VertMargin, max(), min(), ncbi::grid::netcache::search::fields::size, text(), ToWxString(), TruncateText(), and WrapText().

◆ x_DrawBackground() ◆ x_DrawFocusRect() ◆ x_DrawSeparator() ◆ x_DrawText()

Definition at line 391 of file map_item.cpp.

References abs, ewxTruncate_EllipsisAlways, i, int, len, SwxMapItemProperties::m_HiTextColor, SwxMapItemProperties::m_HorzMargin, SwxMapItemProperties::m_SelTextColor, SwxMapItemProperties::m_TextColor, SwxMapItemProperties::m_VertMargin, max(), min(), text(), ToWxString(), TruncateText(), and WrapText().

Referenced by Draw().

◆ x_GetItemShift() int CMapItem::x_GetItemShift ( ) const protectedvirtual ◆ x_GetTextAreaWidth() ◆ x_Init() void CMapItem::x_Init ( void  ) protected ◆ x_PreferredLabelHeight() ◆ x_PreferredSeparatorHeight() int CMapItem::x_PreferredSeparatorHeight ( wxDC &  dc ) const protectedvirtual ◆ x_UpdatePreferredHeights() ◆ m_Cmd ◆ m_CmdTarget wxEvtHandler* CMapItem::m_CmdTarget protected ◆ m_Descr ◆ m_Icon wxBitmap CMapItem::m_Icon protected ◆ m_IconPos wxPoint CMapItem::m_IconPos protected ◆ m_Label ◆ m_LabelPrefH int CMapItem::m_LabelPrefH protected ◆ m_LabelRect wxRect CMapItem::m_LabelRect protected ◆ m_PrefsDirty bool CMapItem::m_PrefsDirty protected ◆ m_Rect ◆ m_Separator bool CMapItem::m_Separator protected

The documentation for this class was generated from the following files:


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