mirror of
https://github.com/claunia/libexeinfo.git
synced 2025-12-16 19:14:24 +00:00
Correct Atari ST field signed-ness.
This commit is contained in:
@@ -30,7 +30,7 @@ namespace libexeinfo
|
||||
{
|
||||
public partial class AtariST
|
||||
{
|
||||
public enum ObjectTypes : ushort
|
||||
public enum ObjectTypes : short
|
||||
{
|
||||
/// <summary>
|
||||
/// A graphic box. Its <see cref="ObjectNode.ob_spec" /> contains the object's color word and thickness.
|
||||
@@ -106,7 +106,7 @@ namespace libexeinfo
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum ObjectFlags : ushort
|
||||
public enum ObjectFlags : short
|
||||
{
|
||||
/// <summary>
|
||||
/// No flags
|
||||
@@ -151,7 +151,7 @@ namespace libexeinfo
|
||||
}
|
||||
|
||||
[Flags]
|
||||
public enum ObjectStates : ushort
|
||||
public enum ObjectStates : short
|
||||
{
|
||||
/// <summary>
|
||||
/// Indicates that the object is drawn in normal colors
|
||||
|
||||
@@ -34,454 +34,441 @@ namespace libexeinfo
|
||||
public struct AtariHeader
|
||||
{
|
||||
public ushort signature;
|
||||
public uint text_len;
|
||||
public uint data_len;
|
||||
public uint bss_len;
|
||||
public uint symb_len;
|
||||
public int text_len;
|
||||
public int data_len;
|
||||
public int bss_len;
|
||||
public int symb_len;
|
||||
public uint mint;
|
||||
public uint flags;
|
||||
public ushort absflags;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct AtariResource
|
||||
public struct AtariResourceHeader
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains the version number of the resource file. This value is 0x0000 or 0x0001 in old format RSC files and has
|
||||
/// the third bit set (i.e. 0x0004) in the new file format. If file is in the new format, it is appended at the end
|
||||
/// with <see cref="AtariResourceExtension" />
|
||||
/// the third bit set (i.e. 0x0004) in the new file format. If file is in the new format, it is appended at the end with <see cref="AtariResourceExtension"/>
|
||||
/// </summary>
|
||||
public ushort rsh_vrsn;
|
||||
public short rsh_vrsn;
|
||||
/// <summary>
|
||||
/// Contains an offset from the beginning of the file to the OBJECT structures.
|
||||
/// </summary>
|
||||
public ushort rsh_object;
|
||||
public short rsh_object;
|
||||
/// <summary>
|
||||
/// Contains an offset from the beginning of the file to the TEDINFO structures.
|
||||
/// </summary>
|
||||
public ushort rsh_tedinfo;
|
||||
public short rsh_tedinfo;
|
||||
/// <summary>
|
||||
/// Contains an offset from the beginning of the file to the ICONBLK structures.
|
||||
/// </summary>
|
||||
public ushort rsh_iconblk;
|
||||
public short rsh_iconblk;
|
||||
/// <summary>
|
||||
/// Contains an offset from the beginning of the file to the BITBLK structures.
|
||||
/// </summary>
|
||||
public ushort rsh_bitblk;
|
||||
public short rsh_bitblk;
|
||||
/// <summary>
|
||||
/// Contains an offset from the beginning of the file to the string pointer table.
|
||||
/// </summary>
|
||||
public ushort rsh_frstr;
|
||||
public short rsh_frstr;
|
||||
/// <summary>
|
||||
/// Contains an offset from the beginning of the file to the string data.
|
||||
/// </summary>
|
||||
public ushort rsh_string;
|
||||
public short rsh_string;
|
||||
/// <summary>
|
||||
/// Contains an offset from the beginning of the file to the image data.
|
||||
/// </summary>
|
||||
public ushort rsh_imdata;
|
||||
public short rsh_imdata;
|
||||
/// <summary>
|
||||
/// Contains an offset from the beginning of the file to the image pointer table.
|
||||
/// </summary>
|
||||
public ushort rsh_frimg;
|
||||
public short rsh_frimg;
|
||||
/// <summary>
|
||||
/// Contains an offset from the beginning of the file to the tree pointer table.
|
||||
/// </summary>
|
||||
public ushort rsh_trindex;
|
||||
public short rsh_trindex;
|
||||
/// <summary>
|
||||
/// Number of OBJECTs in the file.
|
||||
/// </summary>
|
||||
public ushort rsh_nobs;
|
||||
public short rsh_nobs;
|
||||
/// <summary>
|
||||
/// Number of object trees in the file.
|
||||
/// </summary>
|
||||
public ushort rsh_ntree;
|
||||
public short rsh_ntree;
|
||||
/// <summary>
|
||||
/// Number of TEDINFOs in the file.
|
||||
/// </summary>
|
||||
public ushort rsh_nted;
|
||||
public short rsh_nted;
|
||||
/// <summary>
|
||||
/// Number of ICONBLKs in the file.
|
||||
/// </summary>
|
||||
public ushort rsh_nib;
|
||||
public short rsh_nib;
|
||||
/// <summary>
|
||||
/// Number of BITBLKs in the file.
|
||||
/// </summary>
|
||||
public ushort rsh_nbb;
|
||||
public short rsh_nbb;
|
||||
/// <summary>
|
||||
/// Number of free strings in the file.
|
||||
/// </summary>
|
||||
public ushort rsh_nstring;
|
||||
public short rsh_nstring;
|
||||
/// <summary>
|
||||
/// Number of free images in the file.
|
||||
/// </summary>
|
||||
public ushort rsh_nimages;
|
||||
public short rsh_nimages;
|
||||
/// <summary>
|
||||
/// Size of the resource file (in bytes). Note that this is the size of the old format resource file. If the newer
|
||||
/// format file is being used then this value can be used as an offset to the extension array.
|
||||
/// </summary>
|
||||
public ushort rsh_rssize;
|
||||
public short rsh_rssize;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct AtariResourceExtension
|
||||
{
|
||||
/// <summary>
|
||||
/// Size of the file
|
||||
/// Size of the file
|
||||
/// </summary>
|
||||
public uint filesize;
|
||||
public int filesize;
|
||||
/// <summary>
|
||||
/// Slot for color icons containing an offset to <see cref="ColorIconBlock" /> table. The table is an array of
|
||||
/// <see cref="int" /> offsets in file with -1 meaning table end.
|
||||
/// Slot for color icons containing an offset to <see cref="ColorIconBlock"/> table. The table is an array of <see cref="int"/> offsets in file with -1 meaning table end.
|
||||
/// </summary>
|
||||
public uint color_ic;
|
||||
public int color_ic;
|
||||
/// <summary>
|
||||
/// If not 0, it's an unknown extension, 0 means last extension
|
||||
/// If not 0, it's an unknown extension, 0 means last extension
|
||||
/// </summary>
|
||||
public uint end_extensions;
|
||||
public int end_extensions;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The OBJECT structure contains values that describe the object, its relationship to the other objects in the tree,
|
||||
/// and its location relative to its parent or (in the case of the root object) the screen.
|
||||
/// The OBJECT structure contains values that describe the object, its relationship to the other objects in the tree, and its location relative to its parent or (in the case of the root object) the screen.
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct ObjectNode
|
||||
{
|
||||
/// <summary>
|
||||
/// A word containing the index of the object's next sibling in the object tree array
|
||||
/// A word containing the index of the object's next sibling in the object tree array
|
||||
/// </summary>
|
||||
public ushort ob_next;
|
||||
public short ob_next;
|
||||
/// <summary>
|
||||
/// A word containing the index of the first child: the head of the list of the object's children in the object tree
|
||||
/// array
|
||||
/// A word containing the index of the first child: the head of the list of the object's children in the object tree array
|
||||
/// </summary>
|
||||
public ushort ob_head;
|
||||
public short ob_head;
|
||||
/// <summary>
|
||||
/// A word contianing the index of the last child: the tail of the list of the object's children in the object tree
|
||||
/// array
|
||||
/// A word contianing the index of the last child: the tail of the list of the object's children in the object tree array
|
||||
/// </summary>
|
||||
public ushort ob_tail;
|
||||
public short ob_tail;
|
||||
/// <summary>
|
||||
/// A word containing the object type. GEM AES ignored the high byte of this word
|
||||
/// A word containing the object type. GEM AES ignored the high byte of this word
|
||||
/// </summary>
|
||||
public ushort ob_type;
|
||||
public short ob_type;
|
||||
/// <summary>
|
||||
/// A word containing the object flags
|
||||
/// A word containing the object flags
|
||||
/// </summary>
|
||||
public ushort ob_flags;
|
||||
/// <summary>
|
||||
/// A word containing the object state
|
||||
/// A word containing the object state
|
||||
/// </summary>
|
||||
public ushort ob_state;
|
||||
/// <summary>
|
||||
/// A long value containing object specific data. Depending on the object's type, can be a pointer to any combination
|
||||
/// of word and/or byte values that add up to 32 bits.
|
||||
/// A long value containing object specific data. Depending on the object's type, can be a pointer to any combination of word and/or byte values that add up to 32 bits.
|
||||
/// </summary>
|
||||
public uint ob_spec;
|
||||
public int ob_spec;
|
||||
/// <summary>
|
||||
/// A word containing the X-coordinate of the object relative to its parent or (for the root object) the screen
|
||||
/// A word containing the X-coordinate of the object relative to its parent or (for the root object) the screen
|
||||
/// </summary>
|
||||
public ushort ob_x;
|
||||
public short ob_x;
|
||||
/// <summary>
|
||||
/// A word containing the Y-coordinate of the object relative to its parent or (for the root object) the screen
|
||||
/// A word containing the Y-coordinate of the object relative to its parent or (for the root object) the screen
|
||||
/// </summary>
|
||||
public ushort ob_y;
|
||||
public short ob_y;
|
||||
/// <summary>
|
||||
/// A word containing the width of the object in pixels
|
||||
/// A word containing the width of the object in pixels
|
||||
/// </summary>
|
||||
public ushort ob_width;
|
||||
public short ob_width;
|
||||
/// <summary>
|
||||
/// A word containing the height of the object in pixels
|
||||
/// A word containing the height of the object in pixels
|
||||
/// </summary>
|
||||
public ushort ob_height;
|
||||
public short ob_height;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The TEDINFO structure lets a user edit formatted text. The object types G_TEXT, G_BOXTEXT, G_FTEXT and G_FBOXTEXT
|
||||
/// use their <see cref="ObjectNode.ob_spec" /> to point to TEDINFO structures.
|
||||
/// The TEDINFO structure lets a user edit formatted text. The object types G_TEXT, G_BOXTEXT, G_FTEXT and G_FBOXTEXT use their <see cref="ObjectNode.ob_spec"/> to point to TEDINFO structures.
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct TedInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// A pointer to the actual text. If the first character is '@', the field is blank.
|
||||
/// A pointer to the actual text. If the first character is '@', the field is blank.
|
||||
/// </summary>
|
||||
public uint te_ptext;
|
||||
public int te_ptext;
|
||||
/// <summary>
|
||||
/// A pointer to a string template for any data entry. The editable portion is represented by underscores.
|
||||
/// A pointer to a string template for any data entry. The editable portion is represented by underscores.
|
||||
/// </summary>
|
||||
public uint te_ptmplt;
|
||||
public int te_ptmplt;
|
||||
/// <summary>
|
||||
/// A pointer to a text string contianing characters tht validate any entered text
|
||||
/// A pointer to a text string contianing characters tht validate any entered text
|
||||
/// </summary>
|
||||
public uint te_pvalid;
|
||||
public int te_pvalid;
|
||||
/// <summary>
|
||||
/// A word identifying the font used to draw the text. 3 for system font, 5 for small font.
|
||||
/// A word identifying the font used to draw the text. 3 for system font, 5 for small font.
|
||||
/// </summary>
|
||||
public ushort te_font;
|
||||
public short te_font;
|
||||
/// <summary>
|
||||
/// Reserved for future use
|
||||
/// Reserved for future use
|
||||
/// </summary>
|
||||
public ushort te_resvd1;
|
||||
public short te_resvd1;
|
||||
/// <summary>
|
||||
/// A word identifying the type of text justification desired. 0 = left, 1 = right, 2 = center
|
||||
/// A word identifying the type of text justification desired. 0 = left, 1 = right, 2 = center
|
||||
/// </summary>
|
||||
public ushort te_just;
|
||||
public short te_just;
|
||||
/// <summary>
|
||||
/// A word identifying the color and pattern of box-type objects
|
||||
/// A word identifying the color and pattern of box-type objects
|
||||
/// </summary>
|
||||
public ushort te_color;
|
||||
public short te_color;
|
||||
/// <summary>
|
||||
/// Reserved for future use
|
||||
/// Reserved for future use
|
||||
/// </summary>
|
||||
public ushort te_resvd2;
|
||||
public short te_resvd2;
|
||||
/// <summary>
|
||||
/// A word containing the thickness in pixels of the border of the text box. 0 for none, positive for inside, negative
|
||||
/// for outside
|
||||
/// A word containing the thickness in pixels of the border of the text box. 0 for none, positive for inside, negative for outside
|
||||
/// </summary>
|
||||
public ushort te_thickness;
|
||||
public short te_thickness;
|
||||
/// <summary>
|
||||
/// A word containing the length of the string pointed by <see cref="te_ptext" />.
|
||||
/// A word containing the length of the string pointed by <see cref="te_ptext"/>.
|
||||
/// </summary>
|
||||
public ushort te_txtlen;
|
||||
public short te_txtlen;
|
||||
/// <summary>
|
||||
/// A word containing the length of the string pointed by <see cref="te_ptmplt" />.
|
||||
/// A word containing the length of the string pointed by <see cref="te_ptmplt"/>.
|
||||
/// </summary>
|
||||
public ushort te_tmplen;
|
||||
public short te_tmplen;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The ICONBLK structure is used to hold the data that defines icons. The object type G_ICON points with its
|
||||
/// <see cref="ObjectNode.ob_spec" /> pointer to an ICONBLK structure.
|
||||
/// The ICONBLK structure is used to hold the data that defines icons. The object type G_ICON points with its <see cref="ObjectNode.ob_spec"/> pointer to an ICONBLK structure.
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct IconBlock
|
||||
{
|
||||
/// <summary>
|
||||
/// A pointer to an array of words representing the mask bit image of the icon
|
||||
/// A pointer to an array of words representing the mask bit image of the icon
|
||||
/// </summary>
|
||||
public uint ib_pmask;
|
||||
public int ib_pmask;
|
||||
/// <summary>
|
||||
/// A pointer to an array of words representing the data bit image of the icon
|
||||
/// A pointer to an array of words representing the data bit image of the icon
|
||||
/// </summary>
|
||||
public uint ib_pdata;
|
||||
public int ib_pdata;
|
||||
/// <summary>
|
||||
/// A pointer to the icon's text
|
||||
/// A pointer to the icon's text
|
||||
/// </summary>
|
||||
public uint ib_ptext;
|
||||
public int ib_ptext;
|
||||
/// <summary>
|
||||
/// A word containing a character to be drawn in the icon. The high byte contains the foreground color in the high
|
||||
/// nibble and the background color in the low nibble.
|
||||
/// A word containing a character to be drawn in the icon. The high byte contains the foreground color in the high nibble and the background color in the low nibble.
|
||||
/// </summary>
|
||||
public ushort ib_char;
|
||||
public short ib_char;
|
||||
/// <summary>
|
||||
/// A word containing the X-coordinate of <see cref="ib_char" />
|
||||
/// A word containing the X-coordinate of <see cref="ib_char"/>
|
||||
/// </summary>
|
||||
public ushort ib_xchar;
|
||||
public short ib_xchar;
|
||||
/// <summary>
|
||||
/// A word containing the Y-coordinate of <see cref="ib_char" />
|
||||
/// A word containing the Y-coordinate of <see cref="ib_char"/>
|
||||
/// </summary>
|
||||
public ushort ib_ychar;
|
||||
public short ib_ychar;
|
||||
/// <summary>
|
||||
/// A word containing the X-coordinate of the icon
|
||||
/// A word containing the X-coordinate of the icon
|
||||
/// </summary>
|
||||
public ushort ib_xicon;
|
||||
public short ib_xicon;
|
||||
/// <summary>
|
||||
/// A word containing the Y-coordinate of the icon
|
||||
/// A word containing the Y-coordinate of the icon
|
||||
/// </summary>
|
||||
public ushort ib_yicon;
|
||||
public short ib_yicon;
|
||||
/// <summary>
|
||||
/// A word containing the width of the icon in pixels. Must be divisible by 16.
|
||||
/// A word containing the width of the icon in pixels. Must be divisible by 16.
|
||||
/// </summary>
|
||||
public ushort ib_wicon;
|
||||
public short ib_wicon;
|
||||
/// <summary>
|
||||
/// A word containing the height of the icon in pixels
|
||||
/// A word containing the height of the icon in pixels
|
||||
/// </summary>
|
||||
public ushort ib_hicon;
|
||||
public short ib_hicon;
|
||||
/// <summary>
|
||||
/// A word containing the X-coordinate of the icon's text
|
||||
/// A word containing the X-coordinate of the icon's text
|
||||
/// </summary>
|
||||
public ushort ib_xtext;
|
||||
public short ib_xtext;
|
||||
/// <summary>
|
||||
/// A word containing the Y-coordinate of the icon's text
|
||||
/// A word containing the Y-coordinate of the icon's text
|
||||
/// </summary>
|
||||
public ushort ib_ytext;
|
||||
public short ib_ytext;
|
||||
/// <summary>
|
||||
/// A word containing the width of a rectangle in which the icon's text will be centered
|
||||
/// A word containing the width of a rectangle in which the icon's text will be centered
|
||||
/// </summary>
|
||||
public ushort ib_wtext;
|
||||
public short ib_wtext;
|
||||
/// <summary>
|
||||
/// A word containing the height of the icon's text in pixels
|
||||
/// A word containing the height of the icon's text in pixels
|
||||
/// </summary>
|
||||
public ushort ib_htext;
|
||||
public short ib_htext;
|
||||
/// <summary>
|
||||
/// Zeros
|
||||
/// Zeros
|
||||
/// </summary>
|
||||
public ushort empty;
|
||||
public short empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The object type G_IMAGE uses the BITBLK structure to draw bit images like cursor forms or icons
|
||||
/// The object type G_IMAGE uses the BITBLK structure to draw bit images like cursor forms or icons
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct BitBlock
|
||||
{
|
||||
/// <summary>
|
||||
/// A pointer to an array of words contianing the bit image
|
||||
/// A pointer to an array of words contianing the bit image
|
||||
/// </summary>
|
||||
public uint bi_pdata;
|
||||
public int bi_pdata;
|
||||
/// <summary>
|
||||
/// A word containing the width of the <see cref="bi_pdata" /> array in bytes
|
||||
/// A word containing the width of the <see cref="bi_pdata"/> array in bytes
|
||||
/// </summary>
|
||||
public ushort bi_wb;
|
||||
public short bi_wb;
|
||||
/// <summary>
|
||||
/// A word containing the height of the bit block in scan lines (pixels)
|
||||
/// A word containing the height of the bit block in scan lines (pixels)
|
||||
/// </summary>
|
||||
public ushort bi_hl;
|
||||
public short bi_hl;
|
||||
/// <summary>
|
||||
/// A word containing the source X in bit form, relative to the <see cref="bi_pdata" /> array
|
||||
/// A word containing the source X in bit form, relative to the <see cref="bi_pdata"/> array
|
||||
/// </summary>
|
||||
public ushort bi_x;
|
||||
public short bi_x;
|
||||
/// <summary>
|
||||
/// A word containing the source Y in bit form, relative to the <see cref="bi_pdata" /> array
|
||||
/// A word containing the source Y in bit form, relative to the <see cref="bi_pdata"/> array
|
||||
/// </summary>
|
||||
public ushort bi_y;
|
||||
public short bi_y;
|
||||
/// <summary>
|
||||
/// A word containing the color GEM AES uses when displaying the bit image.
|
||||
/// A word containing the color GEM AES uses when displaying the bit image.
|
||||
/// </summary>
|
||||
public ushort bi_color;
|
||||
public short bi_color;
|
||||
/// <summary>
|
||||
/// Zeros
|
||||
/// Zeros
|
||||
/// </summary>
|
||||
public ushort empty;
|
||||
public short empty;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The USERBLK structure is used to locate and call an application-defined routine that will draw and/or change an
|
||||
/// object. The object type G_UERDEF points with its <see cref="ObjectNode.ob_spec" /> pointer to an USERBLK structure.
|
||||
/// The USERBLK structure is used to locate and call an application-defined routine that will draw and/or change an object. The object type G_UERDEF points with its <see cref="ObjectNode.ob_spec"/> pointer to an USERBLK structure.
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct UserBlock
|
||||
{
|
||||
/// <summary>
|
||||
/// A pointer to the routine for drawing and/or changing the object
|
||||
/// A pointer to the routine for drawing and/or changing the object
|
||||
/// </summary>
|
||||
public uint ub_code;
|
||||
public int ub_code;
|
||||
/// <summary>
|
||||
/// A long value (optionally provided by the application) passed as a parameter when calling the routine
|
||||
/// A long value (optionally provided by the application) passed as a parameter when calling the routine
|
||||
/// </summary>
|
||||
public uint ub_parm;
|
||||
public int ub_parm;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The PARMBLK structure is used to store information relevant to the application's drawing or changing an object.
|
||||
/// The PARMBLK structure is used to store information relevant to the application's drawing or changing an object.
|
||||
/// </summary>
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct ParameterBlock
|
||||
{
|
||||
/// <summary>
|
||||
/// A pointer to the object tree that contains the application defined object
|
||||
/// A pointer to the object tree that contains the application defined object
|
||||
/// </summary>
|
||||
public uint pb_tree;
|
||||
public int pb_tree;
|
||||
/// <summary>
|
||||
/// A word containing the object index of the application defined object
|
||||
/// A word containing the object index of the application defined object
|
||||
/// </summary>
|
||||
public ushort pb_obj;
|
||||
public short pb_obj;
|
||||
/// <summary>
|
||||
/// A word containing the old state of an object to be changed
|
||||
/// A word containing the old state of an object to be changed
|
||||
/// </summary>
|
||||
public ushort pb_prevstate;
|
||||
public short pb_prevstate;
|
||||
/// <summary>
|
||||
/// A word containing the changed (new) state of an object
|
||||
/// A word containing the changed (new) state of an object
|
||||
/// </summary>
|
||||
public ushort pb_currstate;
|
||||
public short pb_currstate;
|
||||
/// <summary>
|
||||
/// A word containing the X-coordinate of a rectangle defining the location of the object on the physical screen
|
||||
/// A word containing the X-coordinate of a rectangle defining the location of the object on the physical screen
|
||||
/// </summary>
|
||||
public ushort pb_x;
|
||||
public short pb_x;
|
||||
/// <summary>
|
||||
/// A word containing the Y-coordinate of a rectangle defining the location of the object on the physical screen
|
||||
/// A word containing the Y-coordinate of a rectangle defining the location of the object on the physical screen
|
||||
/// </summary>
|
||||
public ushort pb_y;
|
||||
public short pb_y;
|
||||
/// <summary>
|
||||
/// A word containing the width in pixels of a rectanble defining the size of the object on the physical screen
|
||||
/// A word containing the width in pixels of a rectanble defining the size of the object on the physical screen
|
||||
/// </summary>
|
||||
public ushort pb_w;
|
||||
public short pb_w;
|
||||
/// <summary>
|
||||
/// A word containing the height in pixels of a rectanble defining the size of the object on the physical screen
|
||||
/// A word containing the height in pixels of a rectanble defining the size of the object on the physical screen
|
||||
/// </summary>
|
||||
public ushort pb_h;
|
||||
public short pb_h;
|
||||
/// <summary>
|
||||
/// A word containing the X-coordinate of the current clip rectangle on the physical screen
|
||||
/// A word containing the X-coordinate of the current clip rectangle on the physical screen
|
||||
/// </summary>
|
||||
public ushort pb_xc;
|
||||
public short pb_xc;
|
||||
/// <summary>
|
||||
/// A word containing the Y-coordinate of the current clip rectangle on the physical screen
|
||||
/// A word containing the Y-coordinate of the current clip rectangle on the physical screen
|
||||
/// </summary>
|
||||
public ushort pb_yc;
|
||||
public short pb_yc;
|
||||
/// <summary>
|
||||
/// A word containing the width in pixels of the current clip rectnagle on the physical screen
|
||||
/// A word containing the width in pixels of the current clip rectnagle on the physical screen
|
||||
/// </summary>
|
||||
public ushort pb_wc;
|
||||
public short pb_wc;
|
||||
/// <summary>
|
||||
/// A word containing the heigth in pixels of the current clip rectnagle on the physical screen
|
||||
/// A word containing the heigth in pixels of the current clip rectnagle on the physical screen
|
||||
/// </summary>
|
||||
public ushort pb_hc;
|
||||
public short pb_hc;
|
||||
/// <summary>
|
||||
/// A long value, identical to <see cref="UserBlock.ub_parm" />, that is passed to the application when it is time for
|
||||
/// the application to draw or change the object. Low word.
|
||||
/// A long value, identical to <see cref="UserBlock.ub_parm"/>, that is passed to the application when it is time for the application to draw or change the object. Low word.
|
||||
/// </summary>
|
||||
public ushort pb_parm_low;
|
||||
public short pb_parm_low;
|
||||
/// <summary>
|
||||
/// A long value, identical to <see cref="UserBlock.ub_parm" />, that is passed to the application when it is time for
|
||||
/// the application to draw or change the object. High word.
|
||||
/// A long value, identical to <see cref="UserBlock.ub_parm"/>, that is passed to the application when it is time for the application to draw or change the object. High word.
|
||||
/// </summary>
|
||||
public ushort pb_parm_high;
|
||||
public short pb_parm_high;
|
||||
/// <summary>
|
||||
/// Zeros
|
||||
/// Zeros
|
||||
/// </summary>
|
||||
public ushort empty;
|
||||
public short empty;
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct ColorIcon
|
||||
{
|
||||
/// <summary>
|
||||
/// Number of planes in the following data
|
||||
/// Number of planes in the following data
|
||||
/// </summary>
|
||||
public ushort num_planes;
|
||||
public short num_planes;
|
||||
/// <summary>
|
||||
/// Pointer to color bitmap in standard form
|
||||
/// Pointer to color bitmap in standard form
|
||||
/// </summary>
|
||||
public uint col_data;
|
||||
public int col_data;
|
||||
/// <summary>
|
||||
/// Pointer to single plane mask of <see cref="col_data" />
|
||||
/// Pointer to single plane mask of <see cref="col_data"/>
|
||||
/// </summary>
|
||||
public uint col_mask;
|
||||
public int col_mask;
|
||||
/// <summary>
|
||||
/// Pointer to color bitmap of selected icon
|
||||
/// Pointer to color bitmap of selected icon
|
||||
/// </summary>
|
||||
public uint sel_data;
|
||||
public int sel_data;
|
||||
/// <summary>
|
||||
/// Pointer to single plane mask of <see cref="sel_data" />
|
||||
/// Pointer to single plane mask of <see cref="sel_data"/>
|
||||
/// </summary>
|
||||
public uint sel_mask;
|
||||
public int sel_mask;
|
||||
/// <summary>
|
||||
/// Pointer to next icon
|
||||
/// Pointer to next icon
|
||||
/// </summary>
|
||||
public uint next_res;
|
||||
public int next_res;
|
||||
}
|
||||
|
||||
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct ColorIconBlock
|
||||
{
|
||||
/// <summary>
|
||||
/// Default monochrome icon
|
||||
/// Default monochrome icon
|
||||
/// </summary>
|
||||
IconBlock monoblk;
|
||||
/// <summary>
|
||||
/// List of color icons for diferent resolutions
|
||||
/// List of color icons for diferent resolutions
|
||||
/// </summary>
|
||||
ColorIcon[] mainlist;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user