All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
werd.cpp File Reference
#include "blckerr.h"
#include "helpers.h"
#include "linlsq.h"
#include "werd.h"

Go to the source code of this file.

Macros

#define FIRST_COLOUR   ScrollView::RED
 
#define LAST_COLOUR   ScrollView::AQUAMARINE
 
#define CHILD_COLOUR   ScrollView::BROWN
 

Functions

int word_comparator (const void *word1p, const void *word2p)
 

Variables

const ERRCODE CANT_SCALE_EDGESTEPS
 

Macro Definition Documentation

#define CHILD_COLOUR   ScrollView::BROWN

Definition at line 32 of file werd.cpp.

#define FIRST_COLOUR   ScrollView::RED

Definition at line 30 of file werd.cpp.

#define LAST_COLOUR   ScrollView::AQUAMARINE

Definition at line 31 of file werd.cpp.

Function Documentation

int word_comparator ( const void *  word1p,
const void *  word2p 
)

word_comparator()

word comparator used to sort a word list so that words are in increasing order of left edge.

Definition at line 394 of file werd.cpp.

394  {
395  WERD *word1 = *(WERD **)word1p;
396  WERD *word2 = *(WERD **)word2p;
397  return word1->bounding_box().left() - word2->bounding_box().left();
398 }
TBOX bounding_box() const
Definition: werd.cpp:160
inT16 left() const
Definition: rect.h:68
Definition: werd.h:60

Variable Documentation

const ERRCODE CANT_SCALE_EDGESTEPS
Initial value:
=
"Attempted to scale an edgestep format word"

Definition at line 34 of file werd.cpp.