typedef WordFlags BitmapMode; #define BM_EDIT_MASK 0x0002 #define BM_CLUSTERED_DITHER 0x0001
VMBlockHandle BlockFromTransferBlockID(id); TransferBlockID id;
This macro extracts the block handle from the given
TransferBlockID
value.
TransferBlockID BlockIDFromFileAndBlock(f, b); VMFileHandle f; VMBlockHandle b;
This macro creates a
TransferBlockID
value from the given file and block handles.
typedef ByteEnum ByteCompact; #define BMC_UNCOMPACTED 0 #define BMC_PACKBITS 1 #define BMC_USER_DEFINED 0x80
This data structure is used to specify what sort of compaction is used to store a graphics bitmap.
typedef ByteEnum BMFormat #define BMF_MONO 0 #define BMF_4BIT 1 #define BMF_8BIT 2 #define BMF_24BIT 3 #define BMF_4CMYK 4
This enumerated type determines a graphics bitmap's depth.
typedef ByteFlags BMType; #define BMT_PALETTE 0x40 #define BMT_HUGE 0x20 #define BMT_MASK 0x10 #define BMT_COMPLEX 0x08 #define BMT_FORMAT 0x07
This structure is used to store various facts about a graphics bitmap.
typedef word Boolean;
Booleans represent true/false values. If the Boolean is false , it will evaluate to zero; otherwise, it will be non-zero.
typedef ByteEnum Button; #define BUTTON_0 0 #define BUTTON_1 1 #define BUTTON_2 2 #define BUTTON_3 3
typedef ByteFlags ButtonInfo; #define BI_PRESS 0x80 #define BI_DOUBLE_PRESS 0x40 #define BI_B3_DOWN 0x20 #define BI_B2_DOWN 0x10 #define BI_B1_DOWN 0x08 #define BI_B0_DOWN 0x04 #define BI_BUTTON 0x03
This structure contains the state of a mouse's buttons.
typedef ByteEnum CallbackType; #define CT_FUNCTION_TO_TOKEN 0 #define CT_NAME_TO_TOKEN 1 #define CT_CHECK_NAME_EXISTS 2 #define CT_CHECK_NAME_SPACE 3 #define CT_EVAL_FUNCTION 4 #define CT_LOCK_NAME 5 #define CT_UNLOCK 6 #define CT_FORMAT_FUNCTION 7 #define CT_FORMAT_NAME 8 #define CT_CREATE_CELL 9 #define CT_EMPTY_CELL 10 #define CT_NAME_TO_CELL 11 #define CT_FUNCTION_TO_CELL 12 #define CT_DEREF_CELL 13 #define CT_SPECIAL_FUNCTION 14
typedef struct { Bitmap CB_simple; word CB_startScan; word CB_numScans; word CB_devInfo; word CB_data; word CB_palette; word CB_xres; word CB_yres; } CBitmap;
The CBitmap structure contains the information for a "complex" bitmap. Use the CBitmap structure to hold bitmaps which need to keep track of resolution information, a palette, or a mask.