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

Search Toolkit Book for CCalcCaretPosOStream

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

+ Inheritance diagram for CCalcCaretPosOStream:
+ Collaboration diagram for CCalcCaretPosOStream:

Public Types

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

Public Member Functions

 CCalcCaretPosOStream (wxDC &dc, int x, int y, size_t rowHeight, size_t indentStep, int textPosX, int textPosY)
 
virtual StreamHint GetHint () const
 
virtual CStyledTextOStreamoperator<< (const string &text_in)
 
virtual void Indent (size_t steps)
 
virtual void NewLine ()
 
void GetCaretPos (int &caretPosX, int &caretPosY) const
 
- 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)
 

Private Attributes

int m_TextPosX
 
int m_TextPosY
 
int m_CaretPosX
 
int m_CaretPosY
 

Additional Inherited Members

- Protected Member Functions inherited from CBaseTextOStream
void x_UpdateNBRect (wxSize size)
 
virtual bool x_InNB () const
 
void x_UpdatePos (int chars, int width)
 
- Protected Member Functions inherited from CStyledTextOStream
virtual void x_OnNBStart ()
 
virtual void x_OnNBEnd ()
 
- 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_caretpos_stream.hpp.

Member Typedef Documentation

◆ TParent

Definition at line 45 of file calc_caretpos_stream.hpp.

Constructor & Destructor Documentation

◆ CCalcCaretPosOStream()

CCalcCaretPosOStream::CCalcCaretPosOStream ( wxDC &  dc,
int  x,
int  y,
size_t  rowHeight,
size_t  indentStep,
int  textPosX,
int  textPosY 
)

Member Function Documentation

◆ GetCaretPos()

void CCalcCaretPosOStream::GetCaretPos ( int caretPosX,
int caretPosY 
) const
inline

◆ GetHint()

virtual StreamHint CCalcCaretPosOStream::GetHint ( ) const
inlinevirtual

Implements CStyledTextOStream.

Definition at line 51 of file calc_caretpos_stream.hpp.

References CStyledTextOStream::kDisplay.

◆ Indent()

void CCalcCaretPosOStream::Indent ( size_t  steps)
virtual

◆ NewLine()

void CCalcCaretPosOStream::NewLine ( )
virtual

◆ operator<<()

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

Member Data Documentation

◆ m_CaretPosX

int CCalcCaretPosOStream::m_CaretPosX
private

Definition at line 63 of file calc_caretpos_stream.hpp.

Referenced by CCalcCaretPosOStream(), GetCaretPos(), Indent(), and operator<<().

◆ m_CaretPosY

int CCalcCaretPosOStream::m_CaretPosY
private

Definition at line 64 of file calc_caretpos_stream.hpp.

Referenced by CCalcCaretPosOStream(), GetCaretPos(), and NewLine().

◆ m_TextPosX

int CCalcCaretPosOStream::m_TextPosX
private

Definition at line 60 of file calc_caretpos_stream.hpp.

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

◆ m_TextPosY

int CCalcCaretPosOStream::m_TextPosY
private

Definition at line 61 of file calc_caretpos_stream.hpp.

Referenced by CCalcCaretPosOStream(), Indent(), NewLine(), and operator<<().


The documentation for this class was generated from the following files:
Modified on Thu May 23 12:31:35 2024 by modify_doxy.py rev. 669887