#include <prnmks.h>
Public Member Functions | |
MarkFormat () | |
Construct a Mark format object. | |
BOOL | IsValid () const |
void | MakeValid () |
BYTE | GetAsFlagByte (void) |
Fill in a mark format object from a "flags byte" Used for native file load/save. | |
void | SetFromFlagByte (BYTE Flags) |
Fill in a mark format object from a "flags byte" Used for native file load/save. | |
Public Attributes | |
BYTE | Left: 1 |
BYTE | Centre: 1 |
BYTE | Right: 1 |
BYTE | Top: 1 |
BYTE | Middle: 1 |
BYTE | Bottom: 1 |
BYTE | unused: 1 |
BYTE | unused1: 1 |
Friends | |
INT32 | operator== (const MarkFormat &x, const MarkFormat &y) |
Definition at line 197 of file prnmks.h.
|
Construct a Mark format object.
Definition at line 164 of file prnmks.cpp.
|
|
Fill in a mark format object from a "flags byte" Used for native file load/save.
Definition at line 210 of file prnmks.cpp. 00211 { 00212 BYTE Flags = 0; 00213 00214 if (Left) Flags |= 0x01; 00215 if (Centre) Flags |= 0x02; 00216 if (Right) Flags |= 0x04; 00217 if (Top) Flags |= 0x08; 00218 if (Middle) Flags |= 0x10; 00219 if (Bottom) Flags |= 0x20; 00220 00221 return(Flags); 00222 }
|
|
Definition at line 170 of file prnmks.cpp.
|
|
Definition at line 175 of file prnmks.cpp.
|
|
Fill in a mark format object from a "flags byte" Used for native file load/save.
Definition at line 242 of file prnmks.cpp. 00243 { 00244 Left = (Flags & 0x01) ? TRUE : FALSE; 00245 Centre = (Flags & 0x02) ? TRUE : FALSE; 00246 Right = (Flags & 0x04) ? TRUE : FALSE; 00247 Top = (Flags & 0x08) ? TRUE : FALSE; 00248 Middle = (Flags & 0x10) ? TRUE : FALSE; 00249 Bottom = (Flags & 0x20) ? TRUE : FALSE; 00250 }
|
|
Definition at line 181 of file prnmks.cpp. 00182 { 00183 return ( (x.Centre == y.Centre) && 00184 (x.Middle == y.Middle) && 00185 (x.Left == y.Left) && 00186 (x.Right == y.Right) && 00187 (x.Top == y.Top) && 00188 (x.Bottom == y.Bottom) 00189 ); 00190 }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|