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/draw__text__stream_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/text_widget/draw_text_stream.cpp Source File

40

wxDC& dc,

int

x,

int

y,

41  size_t

rowHeight,

size_t

indentStep) :

54  int

length =

static_cast<int>

(

text

.length());

59  m_DC

.GetPartialTextExtents(

text

, widths);

64  for

(list<CStylePos>::const_iterator it2 = styles.begin();;) {

65

list<CStylePos>::const_iterator it1 = it2++;

66  if

(it2 == styles.end())

break

;

83

wxCoord start =

static_cast<

wxCoord

>

(it1->GetTextPos());

84

wxCoord end =

static_cast<

wxCoord

>

(it2->GetTextPos());

85

wxString substr =

text

.substr(start, end - start);

86  m_DC

.DrawText(substr,

m_x

+ (start > 0 ? widths[start - 1] : 0), y);

102

list<CStylePos> styles =

x_GetStyles

(

static_cast<int>

(steps));

104  for

(list<CStylePos>::const_iterator it2 = styles.begin();;) {

105

list<CStylePos>::const_iterator it1 = it2++;

106  if

(it2 == styles.end())

break

;

111

wxCoord start =

static_cast<

wxCoord

>

(

m_IndentStep

*it1->GetTextPos());

112

wxCoord end =

static_cast<

wxCoord

>

(

m_IndentStep

*it2->GetTextPos());

122

wxPen savePen =

m_DC

.GetPen();

123  m_DC

.SetPen(wxPen(wxColor(128,128,128),1));

133  m_DC

.SetPen(savePen);

138

list<CStylePos> styles;

140

styles.push_back(

CStylePos

(textLength, 0));

143  if

(

m_Row

>= mit->m_StartRow && m_Row <= mit->m_EndRow) {

146

start =

min

(

max

(start, 0), textLength);

147

end =

min

(

max

(end, 0), textLength);

150

list<CStylePos>::iterator it1 = styles.begin(), it2 = --styles.end();

152  for

(list<CStylePos>::iterator it = styles.begin(); it != styles.end();) {

153  auto

pos = it->GetTextPos();

159  else if

(pos < end) {

160

prevStyle = it->GetStyle();

161

it = styles.erase(it);

168  if

(end < it2->GetTextPos())

169

styles.insert(it2,

CStylePos

(end, prevStyle));

171  if

(it1->GetTextPos() == start)

172

it1 = styles.erase(it1);

175

styles.insert(it1,

CStylePos

(start, mit->m_Style));

const CTextStyle * m_CurrentStyle

void x_UpdateNBRect(wxSize size)

void x_UpdatePos(int chars, int width)

virtual bool x_InNB() const

virtual void SetStyle(wxDC &dc)=0

virtual void Indent(size_t steps)

CDrawTextOStream(wxDC &dc, int x, int y, size_t rowHeight, size_t indentStep)

void AddMarker(int startRow, int startCol, int endRow, int endCol, IStyleModifier *style)

vector< SMarker > m_Markers

virtual CStyledTextOStream & operator<<(const string &text)

list< CStylePos > x_GetStyles(int textLength)

wxColor GetTextForeground() const

wxColor GetTextBackground() const

int GetBackgroundMode() const

#define REVERSE_ITERATE(Type, Var, Cont)

ITERATE macro to reverse sequence through container elements.

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

unsigned int

A callback function used to compare two keys in a database.

static void text(MDB_val *v)

wxString ToWxString(const string &s)


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