freetype: set packed structs backing integer
This commit is contained in:
parent
8638ec246e
commit
a2c6319bc4
4 changed files with 12 additions and 12 deletions
|
|
@ -128,7 +128,7 @@ pub const PaletteData = struct {
|
|||
}
|
||||
};
|
||||
|
||||
pub const PaletteFlags = packed struct {
|
||||
pub const PaletteFlags = packed struct(c_ushort) {
|
||||
for_light_background: bool = false,
|
||||
for_dark_background: bool = false,
|
||||
_padding: u14 = 0,
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ pub const Size = struct {
|
|||
}
|
||||
};
|
||||
|
||||
pub const LoadFlags = packed struct {
|
||||
pub const LoadFlags = packed struct(c_int) {
|
||||
no_scale: bool = false,
|
||||
no_hinting: bool = false,
|
||||
render: bool = false,
|
||||
|
|
@ -107,7 +107,7 @@ pub const LoadFlags = packed struct {
|
|||
_padding0: u9 = 0,
|
||||
};
|
||||
|
||||
pub const FaceFlags = packed struct {
|
||||
pub const FaceFlags = packed struct(c_long) {
|
||||
scalable: bool = false,
|
||||
fixed_sizes: bool = false,
|
||||
fixed_width: bool = false,
|
||||
|
|
@ -130,7 +130,7 @@ pub const FaceFlags = packed struct {
|
|||
_padding: if (@sizeOf(c_long) == 4) u13 else u45 = 0,
|
||||
};
|
||||
|
||||
pub const FSType = packed struct {
|
||||
pub const FSType = packed struct(c_ushort) {
|
||||
installable_embedding: bool = false,
|
||||
restriced_license_embedding: bool = false,
|
||||
preview_and_print_embedding: bool = false,
|
||||
|
|
@ -141,13 +141,13 @@ pub const FSType = packed struct {
|
|||
_padding0: u6 = 0,
|
||||
};
|
||||
|
||||
pub const StyleFlags = packed struct {
|
||||
pub const StyleFlags = packed struct(c_long) {
|
||||
italic: bool = false,
|
||||
bold: bool = false,
|
||||
_padding: if (@sizeOf(c_long) == 4) u30 else u62 = 0,
|
||||
};
|
||||
|
||||
pub const OpenFlags = packed struct {
|
||||
pub const OpenFlags = packed struct(c_int) {
|
||||
memory: bool = false,
|
||||
stream: bool = false,
|
||||
path: bool = false,
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ pub const Position = extern struct {
|
|||
_padding: u32, // private
|
||||
};
|
||||
|
||||
pub const GlyphFlags = packed struct {
|
||||
pub const GlyphFlags = packed struct(c_int) {
|
||||
unsafe_to_break: bool = false,
|
||||
unsafe_to_concat: bool = false,
|
||||
_padding: u30 = 0,
|
||||
|
|
@ -87,7 +87,7 @@ pub const SegmentProps = struct {
|
|||
}
|
||||
};
|
||||
|
||||
pub const SerializeFlags = packed struct {
|
||||
pub const SerializeFlags = packed struct(c_int) {
|
||||
no_clusters: bool = false,
|
||||
no_positions: bool = false,
|
||||
no_glyph_names: bool = false,
|
||||
|
|
@ -97,7 +97,7 @@ pub const SerializeFlags = packed struct {
|
|||
_padding: u26 = 0,
|
||||
};
|
||||
|
||||
pub const DiffFlags = packed struct {
|
||||
pub const DiffFlags = packed struct(c_int) {
|
||||
content_type_mismatch: bool = false,
|
||||
length_mismatch: bool = false,
|
||||
notdef_present: bool = false,
|
||||
|
|
@ -110,7 +110,7 @@ pub const DiffFlags = packed struct {
|
|||
};
|
||||
|
||||
pub const Buffer = struct {
|
||||
pub const Flags = packed struct {
|
||||
pub const Flags = packed struct(c_int) {
|
||||
bot: bool = false,
|
||||
eot: bool = false,
|
||||
preserve_default_ignorables: bool = false,
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ pub const Outline = struct {
|
|||
none = c.FT_ORIENTATION_NONE,
|
||||
};
|
||||
|
||||
pub const Flags = packed struct {
|
||||
pub const Flags = packed struct(c_int) {
|
||||
owner: bool = false,
|
||||
even_odd_fill: bool = false,
|
||||
reverse_fill: bool = false,
|
||||
|
|
@ -312,7 +312,7 @@ pub const Raster = struct {
|
|||
clip_box: BBox,
|
||||
};
|
||||
|
||||
pub const Flags = packed struct {
|
||||
pub const Flags = packed struct(c_int) {
|
||||
aa: bool = false,
|
||||
direct: bool = false,
|
||||
clip: bool = false,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue