NCBI C++ ToolKit
Public Member Functions | Protected Attributes | List of all members
CGlyph Class Referenceabstract

Search Toolkit Book for CGlyph

#include <gui/widgets/text_widget/glyph.hpp>

+ Inheritance diagram for CGlyph:

Public Member Functions

 CGlyph ()
 
virtual ~CGlyph ()
 
virtual wxPoint GetPosition () const
 
virtual wxSize GetSize () const
 
virtual wxRect GetRect () const
 
virtual void MouseEvent (wxMouseEvent &)
 
void SetPosition (wxPoint pos)
 
void SetSize (wxSize size)
 
void SetRect (wxRect rect)
 
virtual void Draw (wxDC &dc, CTextPanelContext *context)=0
 
virtual void CalcSize (wxDC &dc, CTextPanelContext *context)=0
 

Protected Attributes

wxPoint m_Pos
 
wxSize m_Size
 

Detailed Description

Definition at line 44 of file glyph.hpp.

Constructor & Destructor Documentation

◆ CGlyph()

CGlyph::CGlyph ( )
inline

Definition at line 47 of file glyph.hpp.

◆ ~CGlyph()

virtual CGlyph::~CGlyph ( )
inlinevirtual

Definition at line 48 of file glyph.hpp.

Member Function Documentation

◆ CalcSize()

virtual void CGlyph::CalcSize ( wxDC &  dc,
CTextPanelContext context 
)
pure virtual

Implemented in CHyperlinkGlyph, CEditToolbar, and CExpandGlyph.

◆ Draw()

virtual void CGlyph::Draw ( wxDC &  dc,
CTextPanelContext context 
)
pure virtual

Implemented in CEditToolbar, CHyperlinkGlyph, and CExpandGlyph.

Referenced by CExpandItem::Draw().

◆ GetPosition()

virtual wxPoint CGlyph::GetPosition ( void  ) const
inlinevirtual

Definition at line 50 of file glyph.hpp.

References m_Pos.

Referenced by CFlatFileLocusItem::OnHyperlinkClick().

◆ GetRect()

virtual wxRect CGlyph::GetRect ( ) const
inlinevirtual

◆ GetSize()

virtual wxSize CGlyph::GetSize ( void  ) const
inlinevirtual

Definition at line 52 of file glyph.hpp.

References m_Size.

Referenced by CFlatFileLocusItem::CalcSize().

◆ MouseEvent()

virtual void CGlyph::MouseEvent ( wxMouseEvent &  )
inlinevirtual

Reimplemented in CEditToolbar, CHyperlinkGlyph, and CExpandGlyph.

Definition at line 56 of file glyph.hpp.

Referenced by CExpandItem::MouseEvent().

◆ SetPosition()

void CGlyph::SetPosition ( wxPoint  pos)
inline

Definition at line 58 of file glyph.hpp.

References m_Pos.

Referenced by CFlatFileLocusItem::CalcSize().

◆ SetRect()

void CGlyph::SetRect ( wxRect  rect)
inline

Definition at line 60 of file glyph.hpp.

References m_Pos, and m_Size.

Referenced by CExpandItem::CalcSize().

◆ SetSize()

void CGlyph::SetSize ( wxSize  size)
inline

Definition at line 59 of file glyph.hpp.

References m_Size, and ncbi::grid::netcache::search::fields::size.

Referenced by CEditToolbar::CEditToolbar().

Member Data Documentation

◆ m_Pos

wxPoint CGlyph::m_Pos
protected

Definition at line 67 of file glyph.hpp.

Referenced by GetPosition(), GetRect(), SetPosition(), and SetRect().

◆ m_Size

wxSize CGlyph::m_Size
protected

The documentation for this class was generated from the following file:
Modified on Fri Jun 14 16:53:49 2024 by modify_doxy.py rev. 669887