Back to index

texmacs  1.0.7.15
Public Member Functions | Public Attributes
char_bitstream Struct Reference
Collaboration diagram for char_bitstream:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 char_bitstream (glyph &gl2)
void write (int num, int times=1, int repeat=0)

Public Attributes

glyphgl
int x
int y
QNpos
int bit

Detailed Description

Definition at line 177 of file load_pk.cpp.


Constructor & Destructor Documentation

Definition at line 183 of file load_pk.cpp.

                             :
    gl (gl2), x(0), y(0), pos (gl->raster), bit (0) {}

Member Function Documentation

void char_bitstream::write ( int  num,
int  times = 1,
int  repeat = 0 
) [inline]

Definition at line 185 of file load_pk.cpp.

                                                  {
    int i, j;
    for (i=0; i<times; i++) {
      (*pos) += (num<<bit);
      bit= (bit+1)&7;
      if (bit==0) pos++;
      x++;
      if (x==gl->width) {
       x=0; y++;
       while (repeat>0) {
         for (j=0; j<gl->width; j++) {
           (*pos) += ((gl->get_1 (j, y-1))<<bit);
           bit= (bit+1)&7;
           if (bit==0) pos++;
         }
         y++;
         repeat--;
       }
      }
    }
  }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 181 of file load_pk.cpp.

Definition at line 178 of file load_pk.cpp.

Definition at line 180 of file load_pk.cpp.

Definition at line 179 of file load_pk.cpp.

Definition at line 179 of file load_pk.cpp.


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