Qt 4.8
Public Functions | Public Variables | List of all members
QBidiControl Struct Reference

Public Functions

unsigned int baseLevel () const
 
QChar::Direction basicDirection () const
 
bool canPop () const
 
QChar::Direction direction () const
 
void embed (bool rtl, bool o=false)
 
void pdf ()
 
 QBidiControl (bool rtl)
 

Public Variables

const unsigned int base
 
unsigned int cCtx
 
struct {
   unsigned int   level
 
   bool   override
 
ctx [MaxBidiLevel]
 

Detailed Description

Definition at line 256 of file qtextengine.cpp.

Constructors and Destructors

◆ QBidiControl()

QBidiControl::QBidiControl ( bool  rtl)
inline

Definition at line 257 of file qtextengine.cpp.

258  : cCtx(0), base(rtl ? 1 : 0), level(rtl ? 1 : 0), override(false) {}
unsigned int level
const unsigned int base
unsigned int cCtx

Functions

◆ baseLevel()

unsigned int QBidiControl::baseLevel ( ) const
inline

Definition at line 284 of file qtextengine.cpp.

Referenced by QTextEngine::itemize().

284  {
285  return base;
286  }
const unsigned int base

◆ basicDirection()

QChar::Direction QBidiControl::basicDirection ( ) const
inline

Definition at line 281 of file qtextengine.cpp.

Referenced by bidiItemize(), and skipBoundryNeutrals().

281  {
282  return (base ? QChar::DirR : QChar:: DirL);
283  }
const unsigned int base

◆ canPop()

bool QBidiControl::canPop ( ) const
inline

Definition at line 273 of file qtextengine.cpp.

Referenced by bidiItemize().

273 { return cCtx != 0; }
unsigned int cCtx

◆ direction()

QChar::Direction QBidiControl::direction ( ) const
inline

Definition at line 287 of file qtextengine.cpp.

Referenced by bidiItemize().

287  {
288  return ((level%2) ? QChar::DirR : QChar:: DirL);
289  }
unsigned int level

◆ embed()

void QBidiControl::embed ( bool  rtl,
bool  o = false 
)
inline

Definition at line 260 of file qtextengine.cpp.

Referenced by bidiItemize().

260  {
261  unsigned int toAdd = 1;
262  if((level%2 != 0) == rtl ) {
263  ++toAdd;
264  }
265  if (level + toAdd <= MaxBidiLevel) {
266  ctx[cCtx].level = level;
267  ctx[cCtx].override = override;
268  cCtx++;
269  override = o;
270  level += toAdd;
271  }
272  }
unsigned int level
struct QBidiControl::@293 ctx[MaxBidiLevel]
unsigned int cCtx

◆ pdf()

void QBidiControl::pdf ( )
inline

Definition at line 274 of file qtextengine.cpp.

Referenced by bidiItemize().

274  {
275  Q_ASSERT(cCtx);
276  --cCtx;
277  level = ctx[cCtx].level;
278  override = ctx[cCtx].override;
279  }
unsigned int level
struct QBidiControl::@293 ctx[MaxBidiLevel]
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
unsigned int cCtx

Properties

◆ base

const unsigned int QBidiControl::base

Definition at line 296 of file qtextengine.cpp.

◆ cCtx

unsigned int QBidiControl::cCtx

Definition at line 295 of file qtextengine.cpp.

◆ ctx

struct { ... } QBidiControl::ctx[MaxBidiLevel]

◆ level

unsigned int QBidiControl::level

Definition at line 292 of file qtextengine.cpp.

Referenced by appendItems(), bidiItemize(), and skipBoundryNeutrals().

◆ override

bool QBidiControl::override

Definition at line 293 of file qtextengine.cpp.

Referenced by appendItems(), and bidiItemize().


The documentation for this struct was generated from the following file: