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

Search Toolkit Book for CTextStyle

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

Public Member Functions

 CTextStyle (unsigned char rFore, unsigned char gFore, unsigned char bFore, unsigned char rBack, unsigned char gBack, unsigned char bBack, int backgroundMode, bool textBold, bool textItalic)
 
wxColor GetTextForeground () const
 
wxColor GetTextBackground () const
 
int GetBackgroundMode () const
 
bool IsTextBold () const
 
bool IsTextItalic () const
 

Private Attributes

wxColor m_TextForeground
 
wxColor m_TextBackground
 
int m_BackgroundMode
 
bool m_TextBold
 
bool m_TextItalic
 

Friends

CStyledTextOStreamoperator<< (CStyledTextOStream &os, const CTextStyle &style)
 

Detailed Description

Definition at line 79 of file draw_styled_text.hpp.

Constructor & Destructor Documentation

◆ CTextStyle()

CTextStyle::CTextStyle ( unsigned char  rFore,
unsigned char  gFore,
unsigned char  bFore,
unsigned char  rBack,
unsigned char  gBack,
unsigned char  bBack,
int  backgroundMode,
bool  textBold,
bool  textItalic 
)
inline

Definition at line 82 of file draw_styled_text.hpp.

Member Function Documentation

◆ GetBackgroundMode()

int CTextStyle::GetBackgroundMode ( ) const
inline

Definition at line 99 of file draw_styled_text.hpp.

References m_BackgroundMode.

Referenced by CDrawTextOStream::operator<<(), and CBaseTextOStream::SetStyle().

◆ GetTextBackground()

wxColor CTextStyle::GetTextBackground ( ) const
inline

Definition at line 98 of file draw_styled_text.hpp.

References m_TextBackground.

Referenced by CDrawTextOStream::operator<<(), and CBaseTextOStream::SetStyle().

◆ GetTextForeground()

wxColor CTextStyle::GetTextForeground ( ) const
inline

Definition at line 97 of file draw_styled_text.hpp.

References m_TextForeground.

Referenced by CDrawTextOStream::operator<<(), and CBaseTextOStream::SetStyle().

◆ IsTextBold()

bool CTextStyle::IsTextBold ( ) const
inline

Definition at line 100 of file draw_styled_text.hpp.

References m_TextBold.

Referenced by CBaseTextOStream::SetStyle().

◆ IsTextItalic()

bool CTextStyle::IsTextItalic ( ) const
inline

Definition at line 101 of file draw_styled_text.hpp.

References m_TextItalic.

Referenced by CBaseTextOStream::SetStyle().

Friends And Related Function Documentation

◆ operator<<

CStyledTextOStream& operator<< ( CStyledTextOStream os,
const CTextStyle style 
)
friend

Definition at line 93 of file draw_styled_text.hpp.

Member Data Documentation

◆ m_BackgroundMode

int CTextStyle::m_BackgroundMode
private

Definition at line 106 of file draw_styled_text.hpp.

Referenced by GetBackgroundMode().

◆ m_TextBackground

wxColor CTextStyle::m_TextBackground
private

Definition at line 105 of file draw_styled_text.hpp.

Referenced by GetTextBackground().

◆ m_TextBold

bool CTextStyle::m_TextBold
private

Definition at line 107 of file draw_styled_text.hpp.

Referenced by IsTextBold().

◆ m_TextForeground

wxColor CTextStyle::m_TextForeground
private

Definition at line 104 of file draw_styled_text.hpp.

Referenced by GetTextForeground().

◆ m_TextItalic

bool CTextStyle::m_TextItalic
private

Definition at line 108 of file draw_styled_text.hpp.

Referenced by IsTextItalic().


The documentation for this class was generated from the following file:
Modified on Tue May 28 05:51:36 2024 by modify_doxy.py rev. 669887