NCBI C++ ToolKit
Public Types | Public Member Functions | Protected Member Functions | Private Attributes | List of all members
CCalcTextPosOStream Class Reference

Search Toolkit Book for CCalcTextPosOStream

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

+ Inheritance diagram for CCalcTextPosOStream:
+ Collaboration diagram for CCalcTextPosOStream:

Public Types

typedef CBaseTextOStream TParent
 
- Public Types inherited from CStyledTextOStream
enum  StreamHint { kDisplay , kTextPos , kCopyText }
 

Public Member Functions

 CCalcTextPosOStream (wxDC &dc, int x, int y, size_t rowHeight, size_t indentStep, int mouseX, int mouseY)
 
virtual StreamHint GetHint () const
 
virtual CStyledTextOStreamoperator<< (const string &text_in)
 
virtual void Indent (size_t steps)
 
virtual void NewLine ()
 
void GetTextPos (int &textPosX, int &textPosY) const
 
string GetCurrentLine ()
 
- Public Member Functions inherited from CBaseTextOStream
 CBaseTextOStream (wxDC &dc, int x, int y, size_t rowHeight, size_t indentStep)
 
 ~CBaseTextOStream ()
 
virtual int CurrentRowLength () const
 
virtual void SetStyle (const CTextStyle *style)
 
virtual void SetDefaultStyle ()
 
virtual void NBtoggle ()
 
wxRect GetNBRect () const
 
- Public Member Functions inherited from CStyledTextOStream
virtual ~CStyledTextOStream ()
 
virtual wxTextOutputStream * GetTextStream () const
 
virtual bool IsVisible () const
 
virtual void UpdatePosition (int)
 
void WriteMultiLineText (const string &text)
 

Protected Member Functions

virtual void x_OnNBStart ()
 
virtual void x_OnNBEnd ()
 
- Protected Member Functions inherited from CBaseTextOStream
void x_UpdateNBRect (wxSize size)
 
virtual bool x_InNB () const
 
void x_UpdatePos (int chars, int width)
 

Private Attributes

int m_MouseX
 
int m_MouseY
 
int m_TextPosX
 
int m_TextPosY
 
int m_NBStartChar
 
int m_NBRow
 
CNcbiOstrstream m_Ostr
 

Additional Inherited Members

- Protected Attributes inherited from CBaseTextOStream
wxDC & m_DC
 
int m_StartX
 
int m_StartY
 
int m_RowHeight
 
size_t m_IndentStep
 
int m_x
 
int m_Row
 
const CTextStylem_CurrentStyle
 
int m_CurrentLineLength
 
int m_BackgroundMode
 
wxColor m_TextForeground
 
wxColor m_TextBackground
 
wxFont m_SaveFont
 
wxBrush m_SaveBrush
 
wxPen m_SavePen
 
bool m_NB
 
wxRect m_NBRect
 

Detailed Description

Definition at line 42 of file calc_textpos_stream.hpp.

Member Typedef Documentation

◆ TParent

Definition at line 45 of file calc_textpos_stream.hpp.

Constructor & Destructor Documentation

◆ CCalcTextPosOStream()

CCalcTextPosOStream::CCalcTextPosOStream ( wxDC &  dc,
int  x,
int  y,
size_t  rowHeight,
size_t  indentStep,
int  mouseX,
int  mouseY 
)

Definition at line 39 of file calc_textpos_stream.cpp.

References m_MouseY, CBaseTextOStream::m_RowHeight, and m_TextPosY.

Member Function Documentation

◆ GetCurrentLine()

string CCalcTextPosOStream::GetCurrentLine ( )
inline

Definition at line 59 of file calc_textpos_stream.hpp.

References m_Ostr, and string.

Referenced by CTextSelectItem::MouseLeftDClick().

◆ GetHint()

virtual StreamHint CCalcTextPosOStream::GetHint ( ) const
inlinevirtual

Implements CStyledTextOStream.

Definition at line 51 of file calc_textpos_stream.hpp.

References CStyledTextOStream::kTextPos.

◆ GetTextPos()

void CCalcTextPosOStream::GetTextPos ( int textPosX,
int textPosY 
) const
inline

◆ Indent()

void CCalcTextPosOStream::Indent ( size_t  steps)
virtual

◆ NewLine()

void CCalcTextPosOStream::NewLine ( )
virtual

◆ operator<<()

CStyledTextOStream & CCalcTextPosOStream::operator<< ( const string text_in)
virtual

◆ x_OnNBEnd()

void CCalcTextPosOStream::x_OnNBEnd ( )
protectedvirtual

◆ x_OnNBStart()

void CCalcTextPosOStream::x_OnNBStart ( )
protectedvirtual

Member Data Documentation

◆ m_MouseX

int CCalcTextPosOStream::m_MouseX
private

Definition at line 66 of file calc_textpos_stream.hpp.

Referenced by Indent(), operator<<(), and x_OnNBEnd().

◆ m_MouseY

int CCalcTextPosOStream::m_MouseY
private

Definition at line 67 of file calc_textpos_stream.hpp.

Referenced by CCalcTextPosOStream(), Indent(), NewLine(), operator<<(), and x_OnNBEnd().

◆ m_NBRow

int CCalcTextPosOStream::m_NBRow
private

Definition at line 72 of file calc_textpos_stream.hpp.

Referenced by x_OnNBStart().

◆ m_NBStartChar

int CCalcTextPosOStream::m_NBStartChar
private

Definition at line 71 of file calc_textpos_stream.hpp.

Referenced by x_OnNBEnd(), and x_OnNBStart().

◆ m_Ostr

CNcbiOstrstream CCalcTextPosOStream::m_Ostr
private

Definition at line 74 of file calc_textpos_stream.hpp.

Referenced by GetCurrentLine(), Indent(), and operator<<().

◆ m_TextPosX

int CCalcTextPosOStream::m_TextPosX
private

Definition at line 68 of file calc_textpos_stream.hpp.

Referenced by GetTextPos(), Indent(), operator<<(), and x_OnNBEnd().

◆ m_TextPosY

int CCalcTextPosOStream::m_TextPosY
private

The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:13 2024 by modify_doxy.py rev. 669887