mirror of
https://github.com/wez/wezterm.git
synced 2024-11-26 08:25:50 +03:00
freetype: regenerate ffi bindings
This commit is contained in:
parent
40eef5b5dd
commit
7d8819b8d6
55
deps/freetype/src/lib.rs
vendored
55
deps/freetype/src/lib.rs
vendored
@ -1,4 +1,4 @@
|
||||
/* automatically generated by rust-bindgen */
|
||||
/* automatically generated by rust-bindgen 0.59.2 */
|
||||
|
||||
#![allow(non_snake_case)]
|
||||
#![allow(non_camel_case_types)]
|
||||
@ -16,6 +16,22 @@ pub const FT_RENDER_POOL_SIZE: u32 = 16384;
|
||||
pub const FT_MAX_MODULES: u32 = 32;
|
||||
pub const TT_CONFIG_OPTION_SUBPIXEL_HINTING: u32 = 2;
|
||||
pub const TT_CONFIG_OPTION_MAX_RUNNABLE_OPCODES: u32 = 1000000;
|
||||
pub const FT_CHAR_BIT: u32 = 8;
|
||||
pub const FT_USHORT_MAX: u32 = 65535;
|
||||
pub const FT_INT_MAX: u32 = 2147483647;
|
||||
pub const FT_INT_MIN: i32 = -2147483648;
|
||||
pub const FT_UINT_MAX: u32 = 4294967295;
|
||||
pub const FT_LONG_MIN: i64 = -9223372036854775808;
|
||||
pub const FT_LONG_MAX: u64 = 9223372036854775807;
|
||||
pub const FT_ULONG_MAX: i32 = -1;
|
||||
pub const FT_LLONG_MAX: u64 = 9223372036854775807;
|
||||
pub const FT_LLONG_MIN: i64 = -9223372036854775808;
|
||||
pub const FT_ULLONG_MAX: i32 = -1;
|
||||
pub const FT_SIZEOF_INT: u32 = 4;
|
||||
pub const FT_SIZEOF_LONG: u32 = 8;
|
||||
pub const FT_SIZEOF_LONG_LONG: u32 = 8;
|
||||
pub const FT_OUTLINE_CONTOURS_MAX: u32 = 32767;
|
||||
pub const FT_OUTLINE_POINTS_MAX: u32 = 32767;
|
||||
pub const FT_OUTLINE_NONE: u32 = 0;
|
||||
pub const FT_OUTLINE_OWNER: u32 = 1;
|
||||
pub const FT_OUTLINE_EVEN_ODD_FILL: u32 = 2;
|
||||
@ -775,7 +791,6 @@ pub type FT_Stream = *mut FT_StreamRec_;
|
||||
pub union FT_StreamDesc_ {
|
||||
pub value: ::std::os::raw::c_long,
|
||||
pub pointer: *mut ::std::os::raw::c_void,
|
||||
_bindgen_union_align: u64,
|
||||
}
|
||||
pub type FT_StreamDesc = FT_StreamDesc_;
|
||||
pub type FT_Stream_IoFunc = ::std::option::Option<
|
||||
@ -820,7 +835,7 @@ pub struct FT_BBox_ {
|
||||
}
|
||||
pub type FT_BBox = FT_BBox_;
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum FT_Pixel_Mode_ {
|
||||
FT_PIXEL_MODE_NONE = 0,
|
||||
FT_PIXEL_MODE_MONO = 1,
|
||||
@ -896,7 +911,7 @@ pub struct FT_Outline_Funcs_ {
|
||||
}
|
||||
pub type FT_Outline_Funcs = FT_Outline_Funcs_;
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum FT_Glyph_Format_ {
|
||||
FT_GLYPH_FORMAT_NONE = 0,
|
||||
FT_GLYPH_FORMAT_COMPOSITE = 1668246896,
|
||||
@ -1034,7 +1049,7 @@ pub type FT_Matrix = FT_Matrix_;
|
||||
#[derive(Debug, Copy, Clone)]
|
||||
pub struct FT_Data_ {
|
||||
pub pointer: *const FT_Byte,
|
||||
pub length: FT_Int,
|
||||
pub length: FT_UInt,
|
||||
}
|
||||
pub type FT_Data = FT_Data_;
|
||||
pub type FT_Generic_Finalizer =
|
||||
@ -1089,7 +1104,7 @@ pub const FT_Mod_Err_GXvalid: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
|
||||
pub const FT_Mod_Err_Sdf: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Base;
|
||||
pub const FT_Mod_Err_Max: _bindgen_ty_1 = _bindgen_ty_1::FT_Mod_Err_Max;
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum _bindgen_ty_1 {
|
||||
FT_Mod_Err_Base = 0,
|
||||
FT_Mod_Err_Max = 1,
|
||||
@ -1204,7 +1219,7 @@ pub const FT_Err_Corrupted_Font_Header: _bindgen_ty_2 = _bindgen_ty_2::FT_Err_Co
|
||||
pub const FT_Err_Corrupted_Font_Glyphs: _bindgen_ty_2 = _bindgen_ty_2::FT_Err_Corrupted_Font_Glyphs;
|
||||
pub const FT_Err_Max: _bindgen_ty_2 = _bindgen_ty_2::FT_Err_Max;
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum _bindgen_ty_2 {
|
||||
FT_Err_Ok = 0,
|
||||
FT_Err_Cannot_Open_Resource = 1,
|
||||
@ -1374,7 +1389,7 @@ impl FT_Encoding_ {
|
||||
pub const FT_ENCODING_MS_JOHAB: FT_Encoding_ = FT_Encoding_::FT_ENCODING_JOHAB;
|
||||
}
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum FT_Encoding_ {
|
||||
FT_ENCODING_NONE = 0,
|
||||
FT_ENCODING_MS_SYMBOL = 1937337698,
|
||||
@ -1577,7 +1592,7 @@ extern "C" {
|
||||
pub fn FT_Select_Size(face: FT_Face, strike_index: FT_Int) -> FT_Error;
|
||||
}
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum FT_Size_Request_Type_ {
|
||||
FT_SIZE_REQUEST_TYPE_NOMINAL = 0,
|
||||
FT_SIZE_REQUEST_TYPE_REAL_DIM = 1,
|
||||
@ -1630,7 +1645,7 @@ extern "C" {
|
||||
pub fn FT_Get_Transform(face: FT_Face, matrix: *mut FT_Matrix, delta: *mut FT_Vector);
|
||||
}
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum FT_Render_Mode_ {
|
||||
FT_RENDER_MODE_NORMAL = 0,
|
||||
FT_RENDER_MODE_LIGHT = 1,
|
||||
@ -1645,7 +1660,7 @@ extern "C" {
|
||||
pub fn FT_Render_Glyph(slot: FT_GlyphSlot, render_mode: FT_Render_Mode) -> FT_Error;
|
||||
}
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum FT_Kerning_Mode_ {
|
||||
FT_KERNING_DEFAULT = 0,
|
||||
FT_KERNING_UNFITTED = 1,
|
||||
@ -1781,7 +1796,7 @@ extern "C" {
|
||||
pub fn FT_Face_SetUnpatentedHinting(face: FT_Face, value: FT_Bool) -> FT_Bool;
|
||||
}
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum FT_LcdFilter_ {
|
||||
FT_LCD_FILTER_NONE = 0,
|
||||
FT_LCD_FILTER_DEFAULT = 1,
|
||||
@ -1967,7 +1982,7 @@ pub struct TT_MaxProfile_ {
|
||||
}
|
||||
pub type TT_MaxProfile = TT_MaxProfile_;
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum FT_Sfnt_Tag_ {
|
||||
FT_SFNT_HEAD = 0,
|
||||
FT_SFNT_MAXP = 1,
|
||||
@ -2082,7 +2097,7 @@ extern "C" {
|
||||
pub fn FT_Add_Default_Modules(library: FT_Library);
|
||||
}
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum FT_TrueTypeEngineType_ {
|
||||
FT_TRUETYPE_ENGINE_TYPE_NONE = 0,
|
||||
FT_TRUETYPE_ENGINE_TYPE_UNPATENTED = 1,
|
||||
@ -2160,7 +2175,7 @@ impl FT_Orientation_ {
|
||||
FT_Orientation_::FT_ORIENTATION_POSTSCRIPT;
|
||||
}
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum FT_Orientation_ {
|
||||
FT_ORIENTATION_TRUETYPE = 0,
|
||||
FT_ORIENTATION_POSTSCRIPT = 1,
|
||||
@ -2227,7 +2242,7 @@ impl PS_Dict_Keys_ {
|
||||
pub const PS_DICT_MAX: PS_Dict_Keys_ = PS_Dict_Keys_::PS_DICT_ITALIC_ANGLE;
|
||||
}
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum PS_Dict_Keys_ {
|
||||
PS_DICT_FONT_TYPE = 0,
|
||||
PS_DICT_FONT_MATRIX = 1,
|
||||
@ -2469,8 +2484,8 @@ extern "C" {
|
||||
extern "C" {
|
||||
pub fn FT_Glyph_Transform(
|
||||
glyph: FT_Glyph,
|
||||
matrix: *mut FT_Matrix,
|
||||
delta: *mut FT_Vector,
|
||||
matrix: *const FT_Matrix,
|
||||
delta: *const FT_Vector,
|
||||
) -> FT_Error;
|
||||
}
|
||||
impl FT_Glyph_BBox_Mode_ {
|
||||
@ -2478,7 +2493,7 @@ impl FT_Glyph_BBox_Mode_ {
|
||||
FT_Glyph_BBox_Mode_::FT_GLYPH_BBOX_UNSCALED;
|
||||
}
|
||||
#[repr(u32)]
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
|
||||
pub enum FT_Glyph_BBox_Mode_ {
|
||||
FT_GLYPH_BBOX_UNSCALED = 0,
|
||||
FT_GLYPH_BBOX_GRIDFIT = 1,
|
||||
@ -2493,7 +2508,7 @@ extern "C" {
|
||||
pub fn FT_Glyph_To_Bitmap(
|
||||
the_glyph: *mut FT_Glyph,
|
||||
render_mode: FT_Render_Mode,
|
||||
origin: *mut FT_Vector,
|
||||
origin: *const FT_Vector,
|
||||
destroy: FT_Bool,
|
||||
) -> FT_Error;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user