SCRIBBLE_BLOCK Class Reference

#include <pageblk.h>

Inheritance diagram for SCRIBBLE_BLOCK:

PAGE_BLOCK List of all members.

Detailed Description

Class for dealing with scribble block.

Probably destined for 'overlayed' scribble/highlight block

Definition at line 320 of file pageblk.h.

Public Member Functions

Private Attributes


Constructor & Destructor Documentation

SCRIBBLE_BLOCK::SCRIBBLE_BLOCK (  )  [inline]

Definition at line 323 of file pageblk.h.

00323                      { 
00324     }                            //empty constructor

SCRIBBLE_BLOCK::SCRIBBLE_BLOCK ( ICOORDELT_LIST *  points,
BOOL8  backg[NUM_BACKGROUNDS],
INT8  foreg 
)

Set attributes for BLAH, where BLAH is SCRIBBLE_BLOCK.

Definition at line 819 of file pageblk.cpp.

References background, foreground, and BITS16::set_bit().

00819                                                                                                 :PAGE_BLOCK (points,
00820 PB_SCRIBBLE) {
00821   int
00822     i;
00823 
00824   for (i = 0; i < NUM_BACKGROUNDS; i++)
00825     background.set_bit (i, backg[i]);
00826 
00827   foreground = foreg;
00828 }


Member Function Documentation

void SCRIBBLE_BLOCK::de_serialise_asc ( FILE *  f  ) 

Convert BLAH from ascii file, where BLAH is SCRIBBLE_BLOCK.

Definition at line 867 of file pageblk.cpp.

References background, de_serialise_INT32(), foreground, and BITS16::val.

00869                                        {
00870   ((PAGE_BLOCK *) this)->de_serialise_asc (f);
00871   background.val = de_serialise_INT32 (f);
00872   foreground = de_serialise_INT32 (f);
00873 }

SCRIBBLE_BLOCK::make_serialise ( SCRIBBLE_BLOCK   ) 

void SCRIBBLE_BLOCK::set_attrs ( BOOL8  backg[NUM_BACKGROUNDS],
INT8  foreg 
)

Definition at line 832 of file pageblk.cpp.

References background, foreground, and BITS16::set_bit().

00832                                                                    {
00833   int i;
00834 
00835   for (i = 0; i < NUM_BACKGROUNDS; i++)
00836     background.set_bit (i, backg[i]);
00837 
00838   foreground = foreg;
00839 }

void SCRIBBLE_BLOCK::show_attrs ( DEBUG_WIN debug  ) 

Print info about BLAH, where BLAH is SCRIBBLE_BLOCK.

Definition at line 845 of file pageblk.cpp.

References background, blabel, f, foreground, print_background(), and S_START.

00845                                             { 
00846   f->dprintf ("SCRIBBLE BLOCK with attributes %s\n",
00847     blabel[S_START][foreground]);
00848   print_background(f, background); 
00849 }


Member Data Documentation

BITS16 SCRIBBLE_BLOCK::background [private]

FIX:.

Definition at line 340 of file pageblk.h.

Referenced by de_serialise_asc(), SCRIBBLE_BLOCK(), set_attrs(), and show_attrs().

INT8 SCRIBBLE_BLOCK::foreground [private]

FIX:.

Definition at line 342 of file pageblk.h.

Referenced by de_serialise_asc(), SCRIBBLE_BLOCK(), set_attrs(), and show_attrs().


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 19:49:33 2007 for Tesseract by  doxygen 1.5.1