Merge pull request #471 from imgui-rs/dear-update-182

This commit is contained in:
Thom Chiovoloni 2021-04-05 11:42:44 -07:00 committed by GitHub
commit 830022f10f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
17 changed files with 2261 additions and 1778 deletions

View File

@ -23,8 +23,15 @@
- BREAKING: `PopupModal`'s `new` was reworked so that it didn't take `Ui` until `build` was called. This is a breaking change if you were invoking it directly. Simply move your `ui` call to `build` or `begin`.
- Upgrade to [Dear ImGui v1.81](https://github.com/ocornut/imgui/releases/tag/v1.81)
- Upgrade to from v1.80 to [Dear ImGui v1.82](https://github.com/ocornut/imgui/releases/tag/v1.82) (see also the [Dear ImGui v1.81](https://github.com/ocornut/imgui/releases/tag/v1.81) release notes)
- BREAKING: `imgui::ListBox::calculate_size(items_count: ..., height_in_items: ...)` has been removed as the function backing it has been marked as obsolete. The recommended approach is to calculate the size yourself and use `.size(...)` (or use the default auto-calculated size)
- BREAKING: `draw_list::CornerFlags` has been renamed to `draw_list::DrawFlags` to match the upstream change, and refle. However, the only draw flags that are useful to Rust currently are still the ones reflecting corner rounding.
- Similarly, the flag names have been updated so that `CornerFlags::$WHERE` has become `DrawFlags::ROUND_CORNERS_$WHERE`, for ecample `CornerFlags::TOP_LEFT` => `DrawFlags::ROUND_CORNERS_TOP_LEFT`.
- Importantly, `CornerFlags::NONE` became `DrawFlags::ROUND_CORNERS_NONE` (following the patter) and **not** `DrawFlags::NONE` which does exist now, and is a separate value.
- BREAKING: `InputTextFlags::ALWAYS_INSERT_MODE` is renamed to `InputTextFlags::
- However, the `always_insert_mode` funcitons on the various input builders remain as a (non-deprecated) alias, as the C++ code has kept an equivalent inline stub.
- BREAKING: `Style::circle_segment_max_error` is no more. `Style::circle_tesselation_max_error` behaves very similarly, but `circle_segment_max_error` values are not equivalent to `circle_tesselation_max_error` values.
- For example, the default `circle_segment_max_error` was 1.6, but the default `circle_tesselation_max_error` is 0.3. In practice, it's unlikely to matter much either way, though.
- Restored methods to access keyboard based on backend-defined keyboard map indexes. These allow access to most keys, not just those defined in the small subset of `imgui::Keys` (note the available keys may be expanded in future by [imgui PR #2625](https://github.com/ocornut/imgui/pull/2625))
- The new methods on `imgui::Ui` are `is_key_index_down`, `is_key_index_pressed`, `is_key_index_pressed_no_repeat`, `is_key_index_released`, `is_key_index_released`

View File

@ -1,20 +1,19 @@
/* automatically generated by rust-bindgen 0.56.0 */
/* automatically generated by rust-bindgen 0.58.0 */
#![allow(nonstandard_style, clippy::all)]
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage, Align> {
pub struct __BindgenBitfieldUnit<Storage> {
storage: Storage,
align: [Align; 0],
}
impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align> {
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
Self { storage, align: [] }
Self { storage }
}
}
impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align>
impl<Storage> __BindgenBitfieldUnit<Storage>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
@ -108,7 +107,7 @@ pub type ImGuiMouseCursor = cty::c_int;
pub type ImGuiSortDirection = cty::c_int;
pub type ImGuiStyleVar = cty::c_int;
pub type ImGuiTableBgTarget = cty::c_int;
pub type ImDrawCornerFlags = cty::c_int;
pub type ImDrawFlags = cty::c_int;
pub type ImDrawListFlags = cty::c_int;
pub type ImFontAtlasFlags = cty::c_int;
pub type ImGuiBackendFlags = cty::c_int;
@ -139,6 +138,12 @@ pub type ImGuiInputTextCallback = ::core::option::Option<
>;
pub type ImGuiSizeCallback =
::core::option::Option<unsafe extern "C" fn(data: *mut ImGuiSizeCallbackData)>;
pub type ImGuiMemAllocFunc = ::core::option::Option<
unsafe extern "C" fn(sz: usize, user_data: *mut cty::c_void) -> *mut cty::c_void,
>;
pub type ImGuiMemFreeFunc = ::core::option::Option<
unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void),
>;
pub type ImWchar16 = cty::c_ushort;
pub type ImWchar = ImWchar16;
pub type ImU8 = cty::c_uchar;
@ -411,7 +416,7 @@ pub const ImGuiInputTextFlags_CallbackCharFilter: ImGuiInputTextFlags_ = 512;
pub const ImGuiInputTextFlags_AllowTabInput: ImGuiInputTextFlags_ = 1024;
pub const ImGuiInputTextFlags_CtrlEnterForNewLine: ImGuiInputTextFlags_ = 2048;
pub const ImGuiInputTextFlags_NoHorizontalScroll: ImGuiInputTextFlags_ = 4096;
pub const ImGuiInputTextFlags_AlwaysInsertMode: ImGuiInputTextFlags_ = 8192;
pub const ImGuiInputTextFlags_AlwaysOverwrite: ImGuiInputTextFlags_ = 8192;
pub const ImGuiInputTextFlags_ReadOnly: ImGuiInputTextFlags_ = 16384;
pub const ImGuiInputTextFlags_Password: ImGuiInputTextFlags_ = 32768;
pub const ImGuiInputTextFlags_NoUndoRedo: ImGuiInputTextFlags_ = 65536;
@ -871,7 +876,7 @@ pub struct ImGuiStyle {
pub AntiAliasedLinesUseTex: bool,
pub AntiAliasedFill: bool,
pub CurveTessellationTol: f32,
pub CircleSegmentMaxError: f32,
pub CircleTessellationMaxError: f32,
pub Colors: [ImVec4; 53usize],
}
impl Default for ImGuiStyle {
@ -881,7 +886,7 @@ impl Default for ImGuiStyle {
}
impl ::core::fmt::Debug for ImGuiStyle {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
write ! (f , "ImGuiStyle {{ Alpha: {:?}, WindowPadding: {:?}, WindowRounding: {:?}, WindowBorderSize: {:?}, WindowMinSize: {:?}, WindowTitleAlign: {:?}, WindowMenuButtonPosition: {:?}, ChildRounding: {:?}, ChildBorderSize: {:?}, PopupRounding: {:?}, PopupBorderSize: {:?}, FramePadding: {:?}, FrameRounding: {:?}, FrameBorderSize: {:?}, ItemSpacing: {:?}, ItemInnerSpacing: {:?}, CellPadding: {:?}, TouchExtraPadding: {:?}, IndentSpacing: {:?}, ColumnsMinSpacing: {:?}, ScrollbarSize: {:?}, ScrollbarRounding: {:?}, GrabMinSize: {:?}, GrabRounding: {:?}, LogSliderDeadzone: {:?}, TabRounding: {:?}, TabBorderSize: {:?}, TabMinWidthForCloseButton: {:?}, ColorButtonPosition: {:?}, ButtonTextAlign: {:?}, SelectableTextAlign: {:?}, DisplayWindowPadding: {:?}, DisplaySafeAreaPadding: {:?}, MouseCursorScale: {:?}, AntiAliasedLines: {:?}, AntiAliasedLinesUseTex: {:?}, AntiAliasedFill: {:?}, CurveTessellationTol: {:?}, CircleSegmentMaxError: {:?}, Colors: [...] }}" , self . Alpha , self . WindowPadding , self . WindowRounding , self . WindowBorderSize , self . WindowMinSize , self . WindowTitleAlign , self . WindowMenuButtonPosition , self . ChildRounding , self . ChildBorderSize , self . PopupRounding , self . PopupBorderSize , self . FramePadding , self . FrameRounding , self . FrameBorderSize , self . ItemSpacing , self . ItemInnerSpacing , self . CellPadding , self . TouchExtraPadding , self . IndentSpacing , self . ColumnsMinSpacing , self . ScrollbarSize , self . ScrollbarRounding , self . GrabMinSize , self . GrabRounding , self . LogSliderDeadzone , self . TabRounding , self . TabBorderSize , self . TabMinWidthForCloseButton , self . ColorButtonPosition , self . ButtonTextAlign , self . SelectableTextAlign , self . DisplayWindowPadding , self . DisplaySafeAreaPadding , self . MouseCursorScale , self . AntiAliasedLines , self . AntiAliasedLinesUseTex , self . AntiAliasedFill , self . CurveTessellationTol , self . CircleSegmentMaxError)
write ! (f , "ImGuiStyle {{ Alpha: {:?}, WindowPadding: {:?}, WindowRounding: {:?}, WindowBorderSize: {:?}, WindowMinSize: {:?}, WindowTitleAlign: {:?}, WindowMenuButtonPosition: {:?}, ChildRounding: {:?}, ChildBorderSize: {:?}, PopupRounding: {:?}, PopupBorderSize: {:?}, FramePadding: {:?}, FrameRounding: {:?}, FrameBorderSize: {:?}, ItemSpacing: {:?}, ItemInnerSpacing: {:?}, CellPadding: {:?}, TouchExtraPadding: {:?}, IndentSpacing: {:?}, ColumnsMinSpacing: {:?}, ScrollbarSize: {:?}, ScrollbarRounding: {:?}, GrabMinSize: {:?}, GrabRounding: {:?}, LogSliderDeadzone: {:?}, TabRounding: {:?}, TabBorderSize: {:?}, TabMinWidthForCloseButton: {:?}, ColorButtonPosition: {:?}, ButtonTextAlign: {:?}, SelectableTextAlign: {:?}, DisplayWindowPadding: {:?}, DisplaySafeAreaPadding: {:?}, MouseCursorScale: {:?}, AntiAliasedLines: {:?}, AntiAliasedLinesUseTex: {:?}, AntiAliasedFill: {:?}, CurveTessellationTol: {:?}, CircleTessellationMaxError: {:?}, Colors: [...] }}" , self . Alpha , self . WindowPadding , self . WindowRounding , self . WindowBorderSize , self . WindowMinSize , self . WindowTitleAlign , self . WindowMenuButtonPosition , self . ChildRounding , self . ChildBorderSize , self . PopupRounding , self . PopupBorderSize , self . FramePadding , self . FrameRounding , self . FrameBorderSize , self . ItemSpacing , self . ItemInnerSpacing , self . CellPadding , self . TouchExtraPadding , self . IndentSpacing , self . ColumnsMinSpacing , self . ScrollbarSize , self . ScrollbarRounding , self . GrabMinSize , self . GrabRounding , self . LogSliderDeadzone , self . TabRounding , self . TabBorderSize , self . TabMinWidthForCloseButton , self . ColorButtonPosition , self . ButtonTextAlign , self . SelectableTextAlign , self . DisplayWindowPadding , self . DisplaySafeAreaPadding , self . MouseCursorScale , self . AntiAliasedLines , self . AntiAliasedLinesUseTex , self . AntiAliasedFill , self . CurveTessellationTol , self . CircleTessellationMaxError)
}
}
#[repr(C)]
@ -1045,7 +1050,8 @@ pub struct ImGuiTableColumnSortSpecs {
pub ColumnUserID: ImGuiID,
pub ColumnIndex: ImS16,
pub SortOrder: ImS16,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize], u8>,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
pub __bindgen_padding_0: [u8; 3usize],
}
impl ImGuiTableColumnSortSpecs {
@ -1063,9 +1069,8 @@ impl ImGuiTableColumnSortSpecs {
#[inline]
pub fn new_bitfield_1(
SortDirection: ImGuiSortDirection,
) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
Default::default();
) -> __BindgenBitfieldUnit<[u8; 1usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 8u8, {
let SortDirection: u32 = unsafe { ::core::mem::transmute(SortDirection) };
SortDirection as u64
@ -1144,7 +1149,6 @@ pub union ImGuiStoragePair__bindgen_ty_1 {
pub val_i: cty::c_int,
pub val_f: f32,
pub val_p: *mut cty::c_void,
_bindgen_union_align: u64,
}
impl Default for ImGuiStoragePair__bindgen_ty_1 {
fn default() -> Self {
@ -1254,17 +1258,21 @@ impl Default for ImDrawListSplitter {
unsafe { ::core::mem::zeroed() }
}
}
pub const ImDrawCornerFlags_None: ImDrawCornerFlags_ = 0;
pub const ImDrawCornerFlags_TopLeft: ImDrawCornerFlags_ = 1;
pub const ImDrawCornerFlags_TopRight: ImDrawCornerFlags_ = 2;
pub const ImDrawCornerFlags_BotLeft: ImDrawCornerFlags_ = 4;
pub const ImDrawCornerFlags_BotRight: ImDrawCornerFlags_ = 8;
pub const ImDrawCornerFlags_Top: ImDrawCornerFlags_ = 3;
pub const ImDrawCornerFlags_Bot: ImDrawCornerFlags_ = 12;
pub const ImDrawCornerFlags_Left: ImDrawCornerFlags_ = 5;
pub const ImDrawCornerFlags_Right: ImDrawCornerFlags_ = 10;
pub const ImDrawCornerFlags_All: ImDrawCornerFlags_ = 15;
pub type ImDrawCornerFlags_ = cty::c_uint;
pub const ImDrawFlags_None: ImDrawFlags_ = 0;
pub const ImDrawFlags_Closed: ImDrawFlags_ = 1;
pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16;
pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32;
pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64;
pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128;
pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256;
pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48;
pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192;
pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80;
pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160;
pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240;
pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240;
pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496;
pub type ImDrawFlags_ = cty::c_uint;
pub const ImDrawListFlags_None: ImDrawListFlags_ = 0;
pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1;
pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2;
@ -1348,7 +1356,8 @@ impl ::core::fmt::Debug for ImFontConfig {
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, PartialEq)]
pub struct ImFontGlyph {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub AdvanceX: f32,
pub X0: f32,
pub Y0: f32,
@ -1398,9 +1407,8 @@ impl ImFontGlyph {
Colored: cty::c_uint,
Visible: cty::c_uint,
Codepoint: cty::c_uint,
) -> __BindgenBitfieldUnit<[u8; 4usize], u32> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u32> =
Default::default();
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let Colored: u32 = unsafe { ::core::mem::transmute(Colored) };
Colored as u64
@ -1451,11 +1459,12 @@ pub type ImFontAtlasFlags_ = cty::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ImFontAtlas {
pub Locked: bool,
pub Flags: ImFontAtlasFlags,
pub TexID: ImTextureID,
pub TexDesiredWidth: cty::c_int,
pub TexGlyphPadding: cty::c_int,
pub Locked: bool,
pub TexPixelsUseColors: bool,
pub TexPixelsAlpha8: *mut cty::c_uchar,
pub TexPixelsRGBA32: *mut cty::c_uint,
pub TexWidth: cty::c_int,
@ -1478,7 +1487,7 @@ impl Default for ImFontAtlas {
}
impl ::core::fmt::Debug for ImFontAtlas {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
write ! (f , "ImFontAtlas {{ Locked: {:?}, Flags: {:?}, TexID: {:?}, TexDesiredWidth: {:?}, TexGlyphPadding: {:?}, TexPixelsAlpha8: {:?}, TexPixelsRGBA32: {:?}, TexWidth: {:?}, TexHeight: {:?}, TexUvScale: {:?}, TexUvWhitePixel: {:?}, Fonts: {:?}, CustomRects: {:?}, ConfigData: {:?}, TexUvLines: [...], FontBuilderIO: {:?}, FontBuilderFlags: {:?}, PackIdMouseCursors: {:?}, PackIdLines: {:?} }}" , self . Locked , self . Flags , self . TexID , self . TexDesiredWidth , self . TexGlyphPadding , self . TexPixelsAlpha8 , self . TexPixelsRGBA32 , self . TexWidth , self . TexHeight , self . TexUvScale , self . TexUvWhitePixel , self . Fonts , self . CustomRects , self . ConfigData , self . FontBuilderIO , self . FontBuilderFlags , self . PackIdMouseCursors , self . PackIdLines)
write ! (f , "ImFontAtlas {{ Flags: {:?}, TexID: {:?}, TexDesiredWidth: {:?}, TexGlyphPadding: {:?}, Locked: {:?}, TexPixelsUseColors: {:?}, TexPixelsAlpha8: {:?}, TexPixelsRGBA32: {:?}, TexWidth: {:?}, TexHeight: {:?}, TexUvScale: {:?}, TexUvWhitePixel: {:?}, Fonts: {:?}, CustomRects: {:?}, ConfigData: {:?}, TexUvLines: [...], FontBuilderIO: {:?}, FontBuilderFlags: {:?}, PackIdMouseCursors: {:?}, PackIdLines: {:?} }}" , self . Flags , self . TexID , self . TexDesiredWidth , self . TexGlyphPadding , self . Locked , self . TexPixelsUseColors , self . TexPixelsAlpha8 , self . TexPixelsRGBA32 , self . TexWidth , self . TexHeight , self . TexUvScale , self . TexUvWhitePixel , self . Fonts , self . CustomRects , self . ConfigData , self . FontBuilderIO , self . FontBuilderFlags , self . PackIdMouseCursors , self . PackIdLines)
}
}
#[repr(C)]
@ -2791,7 +2800,7 @@ extern "C" {
label: *const cty::c_char,
flags: ImGuiTableColumnFlags,
init_width_or_weight: f32,
user_id: ImU32,
user_id: ImGuiID,
);
}
extern "C" {
@ -3158,15 +3167,18 @@ extern "C" {
}
extern "C" {
pub fn igSetAllocatorFunctions(
alloc_func: ::core::option::Option<
unsafe extern "C" fn(sz: usize, user_data: *mut cty::c_void) -> *mut cty::c_void,
>,
free_func: ::core::option::Option<
unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void),
>,
alloc_func: ImGuiMemAllocFunc,
free_func: ImGuiMemFreeFunc,
user_data: *mut cty::c_void,
);
}
extern "C" {
pub fn igGetAllocatorFunctions(
p_alloc_func: *mut ImGuiMemAllocFunc,
p_free_func: *mut ImGuiMemFreeFunc,
p_user_data: *mut *mut cty::c_void,
);
}
extern "C" {
pub fn igMemAlloc(size: usize) -> *mut cty::c_void;
}
@ -3570,7 +3582,7 @@ extern "C" {
p_max: ImVec2,
col: ImU32,
rounding: f32,
rounding_corners: ImDrawCornerFlags,
flags: ImDrawFlags,
thickness: f32,
);
}
@ -3581,7 +3593,7 @@ extern "C" {
p_max: ImVec2,
col: ImU32,
rounding: f32,
rounding_corners: ImDrawCornerFlags,
flags: ImDrawFlags,
);
}
extern "C" {
@ -3701,7 +3713,7 @@ extern "C" {
points: *const ImVec2,
num_points: cty::c_int,
col: ImU32,
closed: bool,
flags: ImDrawFlags,
thickness: f32,
);
}
@ -3772,7 +3784,7 @@ extern "C" {
uv_max: ImVec2,
col: ImU32,
rounding: f32,
rounding_corners: ImDrawCornerFlags,
flags: ImDrawFlags,
);
}
extern "C" {
@ -3788,7 +3800,12 @@ extern "C" {
pub fn ImDrawList_PathFillConvex(self_: *mut ImDrawList, col: ImU32);
}
extern "C" {
pub fn ImDrawList_PathStroke(self_: *mut ImDrawList, col: ImU32, closed: bool, thickness: f32);
pub fn ImDrawList_PathStroke(
self_: *mut ImDrawList,
col: ImU32,
flags: ImDrawFlags,
thickness: f32,
);
}
extern "C" {
pub fn ImDrawList_PathArcTo(
@ -3832,7 +3849,7 @@ extern "C" {
rect_min: ImVec2,
rect_max: ImVec2,
rounding: f32,
rounding_corners: ImDrawCornerFlags,
flags: ImDrawFlags,
);
}
extern "C" {
@ -3925,6 +3942,32 @@ extern "C" {
extern "C" {
pub fn ImDrawList__OnChangedVtxOffset(self_: *mut ImDrawList);
}
extern "C" {
pub fn ImDrawList__CalcCircleAutoSegmentCount(
self_: *mut ImDrawList,
radius: f32,
) -> cty::c_int;
}
extern "C" {
pub fn ImDrawList__PathArcToFastEx(
self_: *mut ImDrawList,
center: ImVec2,
radius: f32,
a_min_sample: cty::c_int,
a_max_sample: cty::c_int,
a_step: cty::c_int,
);
}
extern "C" {
pub fn ImDrawList__PathArcToN(
self_: *mut ImDrawList,
center: ImVec2,
radius: f32,
a_min: f32,
a_max: f32,
num_segments: cty::c_int,
);
}
extern "C" {
pub fn ImDrawData_ImDrawData() -> *mut ImDrawData;
}

View File

@ -1,20 +1,19 @@
/* automatically generated by rust-bindgen 0.56.0 */
/* automatically generated by rust-bindgen 0.58.0 */
#![allow(nonstandard_style, clippy::all)]
#[repr(C)]
#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
pub struct __BindgenBitfieldUnit<Storage, Align> {
pub struct __BindgenBitfieldUnit<Storage> {
storage: Storage,
align: [Align; 0],
}
impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align> {
impl<Storage> __BindgenBitfieldUnit<Storage> {
#[inline]
pub const fn new(storage: Storage) -> Self {
Self { storage, align: [] }
Self { storage }
}
}
impl<Storage, Align> __BindgenBitfieldUnit<Storage, Align>
impl<Storage> __BindgenBitfieldUnit<Storage>
where
Storage: AsRef<[u8]> + AsMut<[u8]>,
{
@ -108,7 +107,7 @@ pub type ImGuiMouseCursor = cty::c_int;
pub type ImGuiSortDirection = cty::c_int;
pub type ImGuiStyleVar = cty::c_int;
pub type ImGuiTableBgTarget = cty::c_int;
pub type ImDrawCornerFlags = cty::c_int;
pub type ImDrawFlags = cty::c_int;
pub type ImDrawListFlags = cty::c_int;
pub type ImFontAtlasFlags = cty::c_int;
pub type ImGuiBackendFlags = cty::c_int;
@ -139,6 +138,12 @@ pub type ImGuiInputTextCallback = ::core::option::Option<
>;
pub type ImGuiSizeCallback =
::core::option::Option<unsafe extern "C" fn(data: *mut ImGuiSizeCallbackData)>;
pub type ImGuiMemAllocFunc = ::core::option::Option<
unsafe extern "C" fn(sz: usize, user_data: *mut cty::c_void) -> *mut cty::c_void,
>;
pub type ImGuiMemFreeFunc = ::core::option::Option<
unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void),
>;
pub type ImWchar16 = cty::c_ushort;
pub type ImWchar = ImWchar16;
pub type ImU8 = cty::c_uchar;
@ -411,7 +416,7 @@ pub const ImGuiInputTextFlags_CallbackCharFilter: ImGuiInputTextFlags_ = 512;
pub const ImGuiInputTextFlags_AllowTabInput: ImGuiInputTextFlags_ = 1024;
pub const ImGuiInputTextFlags_CtrlEnterForNewLine: ImGuiInputTextFlags_ = 2048;
pub const ImGuiInputTextFlags_NoHorizontalScroll: ImGuiInputTextFlags_ = 4096;
pub const ImGuiInputTextFlags_AlwaysInsertMode: ImGuiInputTextFlags_ = 8192;
pub const ImGuiInputTextFlags_AlwaysOverwrite: ImGuiInputTextFlags_ = 8192;
pub const ImGuiInputTextFlags_ReadOnly: ImGuiInputTextFlags_ = 16384;
pub const ImGuiInputTextFlags_Password: ImGuiInputTextFlags_ = 32768;
pub const ImGuiInputTextFlags_NoUndoRedo: ImGuiInputTextFlags_ = 65536;
@ -871,7 +876,7 @@ pub struct ImGuiStyle {
pub AntiAliasedLinesUseTex: bool,
pub AntiAliasedFill: bool,
pub CurveTessellationTol: f32,
pub CircleSegmentMaxError: f32,
pub CircleTessellationMaxError: f32,
pub Colors: [ImVec4; 53usize],
}
impl Default for ImGuiStyle {
@ -881,7 +886,7 @@ impl Default for ImGuiStyle {
}
impl ::core::fmt::Debug for ImGuiStyle {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
write ! (f , "ImGuiStyle {{ Alpha: {:?}, WindowPadding: {:?}, WindowRounding: {:?}, WindowBorderSize: {:?}, WindowMinSize: {:?}, WindowTitleAlign: {:?}, WindowMenuButtonPosition: {:?}, ChildRounding: {:?}, ChildBorderSize: {:?}, PopupRounding: {:?}, PopupBorderSize: {:?}, FramePadding: {:?}, FrameRounding: {:?}, FrameBorderSize: {:?}, ItemSpacing: {:?}, ItemInnerSpacing: {:?}, CellPadding: {:?}, TouchExtraPadding: {:?}, IndentSpacing: {:?}, ColumnsMinSpacing: {:?}, ScrollbarSize: {:?}, ScrollbarRounding: {:?}, GrabMinSize: {:?}, GrabRounding: {:?}, LogSliderDeadzone: {:?}, TabRounding: {:?}, TabBorderSize: {:?}, TabMinWidthForCloseButton: {:?}, ColorButtonPosition: {:?}, ButtonTextAlign: {:?}, SelectableTextAlign: {:?}, DisplayWindowPadding: {:?}, DisplaySafeAreaPadding: {:?}, MouseCursorScale: {:?}, AntiAliasedLines: {:?}, AntiAliasedLinesUseTex: {:?}, AntiAliasedFill: {:?}, CurveTessellationTol: {:?}, CircleSegmentMaxError: {:?}, Colors: [...] }}" , self . Alpha , self . WindowPadding , self . WindowRounding , self . WindowBorderSize , self . WindowMinSize , self . WindowTitleAlign , self . WindowMenuButtonPosition , self . ChildRounding , self . ChildBorderSize , self . PopupRounding , self . PopupBorderSize , self . FramePadding , self . FrameRounding , self . FrameBorderSize , self . ItemSpacing , self . ItemInnerSpacing , self . CellPadding , self . TouchExtraPadding , self . IndentSpacing , self . ColumnsMinSpacing , self . ScrollbarSize , self . ScrollbarRounding , self . GrabMinSize , self . GrabRounding , self . LogSliderDeadzone , self . TabRounding , self . TabBorderSize , self . TabMinWidthForCloseButton , self . ColorButtonPosition , self . ButtonTextAlign , self . SelectableTextAlign , self . DisplayWindowPadding , self . DisplaySafeAreaPadding , self . MouseCursorScale , self . AntiAliasedLines , self . AntiAliasedLinesUseTex , self . AntiAliasedFill , self . CurveTessellationTol , self . CircleSegmentMaxError)
write ! (f , "ImGuiStyle {{ Alpha: {:?}, WindowPadding: {:?}, WindowRounding: {:?}, WindowBorderSize: {:?}, WindowMinSize: {:?}, WindowTitleAlign: {:?}, WindowMenuButtonPosition: {:?}, ChildRounding: {:?}, ChildBorderSize: {:?}, PopupRounding: {:?}, PopupBorderSize: {:?}, FramePadding: {:?}, FrameRounding: {:?}, FrameBorderSize: {:?}, ItemSpacing: {:?}, ItemInnerSpacing: {:?}, CellPadding: {:?}, TouchExtraPadding: {:?}, IndentSpacing: {:?}, ColumnsMinSpacing: {:?}, ScrollbarSize: {:?}, ScrollbarRounding: {:?}, GrabMinSize: {:?}, GrabRounding: {:?}, LogSliderDeadzone: {:?}, TabRounding: {:?}, TabBorderSize: {:?}, TabMinWidthForCloseButton: {:?}, ColorButtonPosition: {:?}, ButtonTextAlign: {:?}, SelectableTextAlign: {:?}, DisplayWindowPadding: {:?}, DisplaySafeAreaPadding: {:?}, MouseCursorScale: {:?}, AntiAliasedLines: {:?}, AntiAliasedLinesUseTex: {:?}, AntiAliasedFill: {:?}, CurveTessellationTol: {:?}, CircleTessellationMaxError: {:?}, Colors: [...] }}" , self . Alpha , self . WindowPadding , self . WindowRounding , self . WindowBorderSize , self . WindowMinSize , self . WindowTitleAlign , self . WindowMenuButtonPosition , self . ChildRounding , self . ChildBorderSize , self . PopupRounding , self . PopupBorderSize , self . FramePadding , self . FrameRounding , self . FrameBorderSize , self . ItemSpacing , self . ItemInnerSpacing , self . CellPadding , self . TouchExtraPadding , self . IndentSpacing , self . ColumnsMinSpacing , self . ScrollbarSize , self . ScrollbarRounding , self . GrabMinSize , self . GrabRounding , self . LogSliderDeadzone , self . TabRounding , self . TabBorderSize , self . TabMinWidthForCloseButton , self . ColorButtonPosition , self . ButtonTextAlign , self . SelectableTextAlign , self . DisplayWindowPadding , self . DisplaySafeAreaPadding , self . MouseCursorScale , self . AntiAliasedLines , self . AntiAliasedLinesUseTex , self . AntiAliasedFill , self . CurveTessellationTol , self . CircleTessellationMaxError)
}
}
#[repr(C)]
@ -1045,7 +1050,8 @@ pub struct ImGuiTableColumnSortSpecs {
pub ColumnUserID: ImGuiID,
pub ColumnIndex: ImS16,
pub SortOrder: ImS16,
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize], u8>,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1usize]>,
pub __bindgen_padding_0: [u8; 3usize],
}
impl ImGuiTableColumnSortSpecs {
@ -1063,9 +1069,8 @@ impl ImGuiTableColumnSortSpecs {
#[inline]
pub fn new_bitfield_1(
SortDirection: ImGuiSortDirection,
) -> __BindgenBitfieldUnit<[u8; 1usize], u8> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize], u8> =
Default::default();
) -> __BindgenBitfieldUnit<[u8; 1usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 1usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 8u8, {
let SortDirection: u32 = unsafe { ::core::mem::transmute(SortDirection) };
SortDirection as u64
@ -1144,7 +1149,6 @@ pub union ImGuiStoragePair__bindgen_ty_1 {
pub val_i: cty::c_int,
pub val_f: f32,
pub val_p: *mut cty::c_void,
_bindgen_union_align: u64,
}
impl Default for ImGuiStoragePair__bindgen_ty_1 {
fn default() -> Self {
@ -1254,17 +1258,21 @@ impl Default for ImDrawListSplitter {
unsafe { ::core::mem::zeroed() }
}
}
pub const ImDrawCornerFlags_None: ImDrawCornerFlags_ = 0;
pub const ImDrawCornerFlags_TopLeft: ImDrawCornerFlags_ = 1;
pub const ImDrawCornerFlags_TopRight: ImDrawCornerFlags_ = 2;
pub const ImDrawCornerFlags_BotLeft: ImDrawCornerFlags_ = 4;
pub const ImDrawCornerFlags_BotRight: ImDrawCornerFlags_ = 8;
pub const ImDrawCornerFlags_Top: ImDrawCornerFlags_ = 3;
pub const ImDrawCornerFlags_Bot: ImDrawCornerFlags_ = 12;
pub const ImDrawCornerFlags_Left: ImDrawCornerFlags_ = 5;
pub const ImDrawCornerFlags_Right: ImDrawCornerFlags_ = 10;
pub const ImDrawCornerFlags_All: ImDrawCornerFlags_ = 15;
pub type ImDrawCornerFlags_ = cty::c_uint;
pub const ImDrawFlags_None: ImDrawFlags_ = 0;
pub const ImDrawFlags_Closed: ImDrawFlags_ = 1;
pub const ImDrawFlags_RoundCornersTopLeft: ImDrawFlags_ = 16;
pub const ImDrawFlags_RoundCornersTopRight: ImDrawFlags_ = 32;
pub const ImDrawFlags_RoundCornersBottomLeft: ImDrawFlags_ = 64;
pub const ImDrawFlags_RoundCornersBottomRight: ImDrawFlags_ = 128;
pub const ImDrawFlags_RoundCornersNone: ImDrawFlags_ = 256;
pub const ImDrawFlags_RoundCornersTop: ImDrawFlags_ = 48;
pub const ImDrawFlags_RoundCornersBottom: ImDrawFlags_ = 192;
pub const ImDrawFlags_RoundCornersLeft: ImDrawFlags_ = 80;
pub const ImDrawFlags_RoundCornersRight: ImDrawFlags_ = 160;
pub const ImDrawFlags_RoundCornersAll: ImDrawFlags_ = 240;
pub const ImDrawFlags_RoundCornersDefault_: ImDrawFlags_ = 240;
pub const ImDrawFlags_RoundCornersMask_: ImDrawFlags_ = 496;
pub type ImDrawFlags_ = cty::c_uint;
pub const ImDrawListFlags_None: ImDrawListFlags_ = 0;
pub const ImDrawListFlags_AntiAliasedLines: ImDrawListFlags_ = 1;
pub const ImDrawListFlags_AntiAliasedLinesUseTex: ImDrawListFlags_ = 2;
@ -1348,7 +1356,8 @@ impl ::core::fmt::Debug for ImFontConfig {
#[repr(C)]
#[derive(Debug, Default, Copy, Clone, PartialEq)]
pub struct ImFontGlyph {
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize], u32>,
pub _bitfield_align_1: [u32; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4usize]>,
pub AdvanceX: f32,
pub X0: f32,
pub Y0: f32,
@ -1398,9 +1407,8 @@ impl ImFontGlyph {
Colored: cty::c_uint,
Visible: cty::c_uint,
Codepoint: cty::c_uint,
) -> __BindgenBitfieldUnit<[u8; 4usize], u32> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize], u32> =
Default::default();
) -> __BindgenBitfieldUnit<[u8; 4usize]> {
let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit<[u8; 4usize]> = Default::default();
__bindgen_bitfield_unit.set(0usize, 1u8, {
let Colored: u32 = unsafe { ::core::mem::transmute(Colored) };
Colored as u64
@ -1451,11 +1459,12 @@ pub type ImFontAtlasFlags_ = cty::c_uint;
#[repr(C)]
#[derive(Copy, Clone)]
pub struct ImFontAtlas {
pub Locked: bool,
pub Flags: ImFontAtlasFlags,
pub TexID: ImTextureID,
pub TexDesiredWidth: cty::c_int,
pub TexGlyphPadding: cty::c_int,
pub Locked: bool,
pub TexPixelsUseColors: bool,
pub TexPixelsAlpha8: *mut cty::c_uchar,
pub TexPixelsRGBA32: *mut cty::c_uint,
pub TexWidth: cty::c_int,
@ -1478,7 +1487,7 @@ impl Default for ImFontAtlas {
}
impl ::core::fmt::Debug for ImFontAtlas {
fn fmt(&self, f: &mut ::core::fmt::Formatter<'_>) -> ::core::fmt::Result {
write ! (f , "ImFontAtlas {{ Locked: {:?}, Flags: {:?}, TexID: {:?}, TexDesiredWidth: {:?}, TexGlyphPadding: {:?}, TexPixelsAlpha8: {:?}, TexPixelsRGBA32: {:?}, TexWidth: {:?}, TexHeight: {:?}, TexUvScale: {:?}, TexUvWhitePixel: {:?}, Fonts: {:?}, CustomRects: {:?}, ConfigData: {:?}, TexUvLines: [...], FontBuilderIO: {:?}, FontBuilderFlags: {:?}, PackIdMouseCursors: {:?}, PackIdLines: {:?} }}" , self . Locked , self . Flags , self . TexID , self . TexDesiredWidth , self . TexGlyphPadding , self . TexPixelsAlpha8 , self . TexPixelsRGBA32 , self . TexWidth , self . TexHeight , self . TexUvScale , self . TexUvWhitePixel , self . Fonts , self . CustomRects , self . ConfigData , self . FontBuilderIO , self . FontBuilderFlags , self . PackIdMouseCursors , self . PackIdLines)
write ! (f , "ImFontAtlas {{ Flags: {:?}, TexID: {:?}, TexDesiredWidth: {:?}, TexGlyphPadding: {:?}, Locked: {:?}, TexPixelsUseColors: {:?}, TexPixelsAlpha8: {:?}, TexPixelsRGBA32: {:?}, TexWidth: {:?}, TexHeight: {:?}, TexUvScale: {:?}, TexUvWhitePixel: {:?}, Fonts: {:?}, CustomRects: {:?}, ConfigData: {:?}, TexUvLines: [...], FontBuilderIO: {:?}, FontBuilderFlags: {:?}, PackIdMouseCursors: {:?}, PackIdLines: {:?} }}" , self . Flags , self . TexID , self . TexDesiredWidth , self . TexGlyphPadding , self . Locked , self . TexPixelsUseColors , self . TexPixelsAlpha8 , self . TexPixelsRGBA32 , self . TexWidth , self . TexHeight , self . TexUvScale , self . TexUvWhitePixel , self . Fonts , self . CustomRects , self . ConfigData , self . FontBuilderIO , self . FontBuilderFlags , self . PackIdMouseCursors , self . PackIdLines)
}
}
#[repr(C)]
@ -3044,7 +3053,7 @@ extern "C" {
label: *const cty::c_char,
flags: ImGuiTableColumnFlags,
init_width_or_weight: f32,
user_id: ImU32,
user_id: ImGuiID,
);
}
#[link(wasm_import_module = "imgui-sys-v0")]
@ -3516,16 +3525,20 @@ extern "C" {
#[link(wasm_import_module = "imgui-sys-v0")]
extern "C" {
pub fn igSetAllocatorFunctions(
alloc_func: ::core::option::Option<
unsafe extern "C" fn(sz: usize, user_data: *mut cty::c_void) -> *mut cty::c_void,
>,
free_func: ::core::option::Option<
unsafe extern "C" fn(ptr: *mut cty::c_void, user_data: *mut cty::c_void),
>,
alloc_func: ImGuiMemAllocFunc,
free_func: ImGuiMemFreeFunc,
user_data: *mut cty::c_void,
);
}
#[link(wasm_import_module = "imgui-sys-v0")]
extern "C" {
pub fn igGetAllocatorFunctions(
p_alloc_func: *mut ImGuiMemAllocFunc,
p_free_func: *mut ImGuiMemFreeFunc,
p_user_data: *mut *mut cty::c_void,
);
}
#[link(wasm_import_module = "imgui-sys-v0")]
extern "C" {
pub fn igMemAlloc(size: usize) -> *mut cty::c_void;
}
@ -4032,7 +4045,7 @@ extern "C" {
p_max: ImVec2,
col: ImU32,
rounding: f32,
rounding_corners: ImDrawCornerFlags,
flags: ImDrawFlags,
thickness: f32,
);
}
@ -4044,7 +4057,7 @@ extern "C" {
p_max: ImVec2,
col: ImU32,
rounding: f32,
rounding_corners: ImDrawCornerFlags,
flags: ImDrawFlags,
);
}
#[link(wasm_import_module = "imgui-sys-v0")]
@ -4176,7 +4189,7 @@ extern "C" {
points: *const ImVec2,
num_points: cty::c_int,
col: ImU32,
closed: bool,
flags: ImDrawFlags,
thickness: f32,
);
}
@ -4253,7 +4266,7 @@ extern "C" {
uv_max: ImVec2,
col: ImU32,
rounding: f32,
rounding_corners: ImDrawCornerFlags,
flags: ImDrawFlags,
);
}
#[link(wasm_import_module = "imgui-sys-v0")]
@ -4274,7 +4287,12 @@ extern "C" {
}
#[link(wasm_import_module = "imgui-sys-v0")]
extern "C" {
pub fn ImDrawList_PathStroke(self_: *mut ImDrawList, col: ImU32, closed: bool, thickness: f32);
pub fn ImDrawList_PathStroke(
self_: *mut ImDrawList,
col: ImU32,
flags: ImDrawFlags,
thickness: f32,
);
}
#[link(wasm_import_module = "imgui-sys-v0")]
extern "C" {
@ -4323,7 +4341,7 @@ extern "C" {
rect_min: ImVec2,
rect_max: ImVec2,
rounding: f32,
rounding_corners: ImDrawCornerFlags,
flags: ImDrawFlags,
);
}
#[link(wasm_import_module = "imgui-sys-v0")]
@ -4437,6 +4455,35 @@ extern "C" {
pub fn ImDrawList__OnChangedVtxOffset(self_: *mut ImDrawList);
}
#[link(wasm_import_module = "imgui-sys-v0")]
extern "C" {
pub fn ImDrawList__CalcCircleAutoSegmentCount(
self_: *mut ImDrawList,
radius: f32,
) -> cty::c_int;
}
#[link(wasm_import_module = "imgui-sys-v0")]
extern "C" {
pub fn ImDrawList__PathArcToFastEx(
self_: *mut ImDrawList,
center: ImVec2,
radius: f32,
a_min_sample: cty::c_int,
a_max_sample: cty::c_int,
a_step: cty::c_int,
);
}
#[link(wasm_import_module = "imgui-sys-v0")]
extern "C" {
pub fn ImDrawList__PathArcToN(
self_: *mut ImDrawList,
center: ImVec2,
radius: f32,
a_min: f32,
a_max: f32,
num_segments: cty::c_int,
);
}
#[link(wasm_import_module = "imgui-sys-v0")]
extern "C" {
pub fn ImDrawData_ImDrawData() -> *mut ImDrawData;
}

View File

@ -1,5 +1,5 @@
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
//based on imgui.h file version "1.81" from Dear ImGui https://github.com/ocornut/imgui
//based on imgui.h file version "1.82" from Dear ImGui https://github.com/ocornut/imgui
#include "./imgui/imgui.h"
#ifdef CIMGUI_FREETYPE
@ -1099,7 +1099,7 @@ CIMGUI_API bool igTableSetColumnIndex(int column_n)
{
return ImGui::TableSetColumnIndex(column_n);
}
CIMGUI_API void igTableSetupColumn(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImU32 user_id)
CIMGUI_API void igTableSetupColumn(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id)
{
return ImGui::TableSetupColumn(label,flags,init_width_or_weight,user_id);
}
@ -1219,6 +1219,10 @@ CIMGUI_API void igLogButtons()
{
return ImGui::LogButtons();
}
CIMGUI_API void igLogTextV(const char* fmt,va_list args)
{
return ImGui::LogTextV(fmt,args);
}
CIMGUI_API bool igBeginDragDropSource(ImGuiDragDropFlags flags)
{
return ImGui::BeginDragDropSource(flags);
@ -1519,10 +1523,14 @@ CIMGUI_API bool igDebugCheckVersionAndDataLayout(const char* version_str,size_t
{
return ImGui::DebugCheckVersionAndDataLayout(version_str,sz_io,sz_style,sz_vec2,sz_vec4,sz_drawvert,sz_drawidx);
}
CIMGUI_API void igSetAllocatorFunctions(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data)
CIMGUI_API void igSetAllocatorFunctions(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data)
{
return ImGui::SetAllocatorFunctions(alloc_func,free_func,user_data);
}
CIMGUI_API void igGetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data)
{
return ImGui::GetAllocatorFunctions(p_alloc_func,p_free_func,p_user_data);
}
CIMGUI_API void* igMemAlloc(size_t size)
{
return ImGui::MemAlloc(size);
@ -1939,13 +1947,13 @@ CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2 p1,const ImVec2
{
return self->AddLine(p1,p2,col,thickness);
}
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawCornerFlags rounding_corners,float thickness)
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness)
{
return self->AddRect(p_min,p_max,col,rounding,rounding_corners,thickness);
return self->AddRect(p_min,p_max,col,rounding,flags,thickness);
}
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawCornerFlags rounding_corners)
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags)
{
return self->AddRectFilled(p_min,p_max,col,rounding,rounding_corners);
return self->AddRectFilled(p_min,p_max,col,rounding,flags);
}
CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left)
{
@ -1991,9 +1999,9 @@ CIMGUI_API void ImDrawList_AddTextFontPtr(ImDrawList* self,const ImFont* font,fl
{
return self->AddText(font,font_size,pos,col,text_begin,text_end,wrap_width,cpu_fine_clip_rect);
}
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,bool closed,float thickness)
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness)
{
return self->AddPolyline(points,num_points,col,closed,thickness);
return self->AddPolyline(points,num_points,col,flags,thickness);
}
CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col)
{
@ -2015,9 +2023,9 @@ CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self,ImTextureID user_textur
{
return self->AddImageQuad(user_texture_id,p1,p2,p3,p4,uv1,uv2,uv3,uv4,col);
}
CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawCornerFlags rounding_corners)
CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags)
{
return self->AddImageRounded(user_texture_id,p_min,p_max,uv_min,uv_max,col,rounding,rounding_corners);
return self->AddImageRounded(user_texture_id,p_min,p_max,uv_min,uv_max,col,rounding,flags);
}
CIMGUI_API void ImDrawList_PathClear(ImDrawList* self)
{
@ -2035,9 +2043,9 @@ CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col)
{
return self->PathFillConvex(col);
}
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness)
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness)
{
return self->PathStroke(col,closed,thickness);
return self->PathStroke(col,flags,thickness);
}
CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)
{
@ -2055,9 +2063,9 @@ CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self,const ImV
{
return self->PathBezierQuadraticCurveTo(p2,p3,num_segments);
}
CIMGUI_API void ImDrawList_PathRect(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawCornerFlags rounding_corners)
CIMGUI_API void ImDrawList_PathRect(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags)
{
return self->PathRect(rect_min,rect_max,rounding,rounding_corners);
return self->PathRect(rect_min,rect_max,rounding,flags);
}
CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self,ImDrawCallback callback,void* callback_data)
{
@ -2139,6 +2147,18 @@ CIMGUI_API void ImDrawList__OnChangedVtxOffset(ImDrawList* self)
{
return self->_OnChangedVtxOffset();
}
CIMGUI_API int ImDrawList__CalcCircleAutoSegmentCount(ImDrawList* self,float radius)
{
return self->_CalcCircleAutoSegmentCount(radius);
}
CIMGUI_API void ImDrawList__PathArcToFastEx(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step)
{
return self->_PathArcToFastEx(center,radius,a_min_sample,a_max_sample,a_step);
}
CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments)
{
return self->_PathArcToN(center,radius,a_min,a_max,num_segments);
}
CIMGUI_API ImDrawData* ImDrawData_ImDrawData(void)
{
return IM_NEW(ImDrawData)();

View File

@ -1,5 +1,5 @@
//This file is automatically generated by generator.lua from https://github.com/cimgui/cimgui
//based on imgui.h file version "1.81" from Dear ImGui https://github.com/ocornut/imgui
//based on imgui.h file version "1.82" from Dear ImGui https://github.com/ocornut/imgui
#ifndef CIMGUI_INCLUDED
#define CIMGUI_INCLUDED
#include <stdio.h>
@ -10,9 +10,6 @@
#else
#define API __declspec(dllexport)
#endif
#ifndef __GNUC__
#define snprintf sprintf_s
#endif
#else
#ifdef __GNUC__
#define API __attribute__((__visibility__("default")))
@ -115,7 +112,7 @@ typedef int ImGuiMouseCursor;
typedef int ImGuiSortDirection;
typedef int ImGuiStyleVar;
typedef int ImGuiTableBgTarget;
typedef int ImDrawCornerFlags;
typedef int ImDrawFlags;
typedef int ImDrawListFlags;
typedef int ImFontAtlasFlags;
typedef int ImGuiBackendFlags;
@ -143,6 +140,8 @@ typedef void* ImTextureID;
typedef unsigned int ImGuiID;
typedef int (*ImGuiInputTextCallback)(ImGuiInputTextCallbackData* data);
typedef void (*ImGuiSizeCallback)(ImGuiSizeCallbackData* data);
typedef void* (*ImGuiMemAllocFunc)(size_t sz, void* user_data);
typedef void (*ImGuiMemFreeFunc)(void* ptr, void* user_data);
typedef unsigned short ImWchar16;
typedef unsigned int ImWchar32;
typedef ImWchar16 ImWchar;
@ -230,7 +229,7 @@ typedef enum {
ImGuiInputTextFlags_AllowTabInput = 1 << 10,
ImGuiInputTextFlags_CtrlEnterForNewLine = 1 << 11,
ImGuiInputTextFlags_NoHorizontalScroll = 1 << 12,
ImGuiInputTextFlags_AlwaysInsertMode = 1 << 13,
ImGuiInputTextFlags_AlwaysOverwrite = 1 << 13,
ImGuiInputTextFlags_ReadOnly = 1 << 14,
ImGuiInputTextFlags_Password = 1 << 15,
ImGuiInputTextFlags_NoUndoRedo = 1 << 16,
@ -718,7 +717,7 @@ struct ImGuiStyle
bool AntiAliasedLinesUseTex;
bool AntiAliasedFill;
float CurveTessellationTol;
float CircleSegmentMaxError;
float CircleTessellationMaxError;
ImVec4 Colors[ImGuiCol_COUNT];
};
struct ImGuiIO
@ -926,17 +925,21 @@ struct ImDrawListSplitter
ImVector_ImDrawChannel _Channels;
};
typedef enum {
ImDrawCornerFlags_None = 0,
ImDrawCornerFlags_TopLeft = 1 << 0,
ImDrawCornerFlags_TopRight = 1 << 1,
ImDrawCornerFlags_BotLeft = 1 << 2,
ImDrawCornerFlags_BotRight = 1 << 3,
ImDrawCornerFlags_Top = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight,
ImDrawCornerFlags_Bot = ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight,
ImDrawCornerFlags_Left = ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft,
ImDrawCornerFlags_Right = ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight,
ImDrawCornerFlags_All = 0xF
}ImDrawCornerFlags_;
ImDrawFlags_None = 0,
ImDrawFlags_Closed = 1 << 0,
ImDrawFlags_RoundCornersTopLeft = 1 << 4,
ImDrawFlags_RoundCornersTopRight = 1 << 5,
ImDrawFlags_RoundCornersBottomLeft = 1 << 6,
ImDrawFlags_RoundCornersBottomRight = 1 << 7,
ImDrawFlags_RoundCornersNone = 1 << 8,
ImDrawFlags_RoundCornersTop = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight,
ImDrawFlags_RoundCornersBottom = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
ImDrawFlags_RoundCornersLeft = ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft,
ImDrawFlags_RoundCornersRight = ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight,
ImDrawFlags_RoundCornersAll = ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight,
ImDrawFlags_RoundCornersDefault_ = ImDrawFlags_RoundCornersAll,
ImDrawFlags_RoundCornersMask_ = ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone
}ImDrawFlags_;
typedef enum {
ImDrawListFlags_None = 0,
ImDrawListFlags_AntiAliasedLines = 1 << 0,
@ -1025,11 +1028,12 @@ typedef enum {
}ImFontAtlasFlags_;
struct ImFontAtlas
{
bool Locked;
ImFontAtlasFlags Flags;
ImTextureID TexID;
int TexDesiredWidth;
int TexGlyphPadding;
bool Locked;
bool TexPixelsUseColors;
unsigned char* TexPixelsAlpha8;
unsigned int* TexPixelsRGBA32;
int TexWidth;
@ -1368,7 +1372,7 @@ CIMGUI_API void igEndTable(void);
CIMGUI_API void igTableNextRow(ImGuiTableRowFlags row_flags,float min_row_height);
CIMGUI_API bool igTableNextColumn(void);
CIMGUI_API bool igTableSetColumnIndex(int column_n);
CIMGUI_API void igTableSetupColumn(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImU32 user_id);
CIMGUI_API void igTableSetupColumn(const char* label,ImGuiTableColumnFlags flags,float init_width_or_weight,ImGuiID user_id);
CIMGUI_API void igTableSetupScrollFreeze(int cols,int rows);
CIMGUI_API void igTableHeadersRow(void);
CIMGUI_API void igTableHeader(const char* label);
@ -1398,6 +1402,7 @@ CIMGUI_API void igLogToFile(int auto_open_depth,const char* filename);
CIMGUI_API void igLogToClipboard(int auto_open_depth);
CIMGUI_API void igLogFinish(void);
CIMGUI_API void igLogButtons(void);
CIMGUI_API void igLogTextV(const char* fmt,va_list args);
CIMGUI_API bool igBeginDragDropSource(ImGuiDragDropFlags flags);
CIMGUI_API bool igSetDragDropPayload(const char* type,const void* data,size_t sz,ImGuiCond cond);
CIMGUI_API void igEndDragDropSource(void);
@ -1473,7 +1478,8 @@ CIMGUI_API void igLoadIniSettingsFromMemory(const char* ini_data,size_t ini_size
CIMGUI_API void igSaveIniSettingsToDisk(const char* ini_filename);
CIMGUI_API const char* igSaveIniSettingsToMemory(size_t* out_ini_size);
CIMGUI_API bool igDebugCheckVersionAndDataLayout(const char* version_str,size_t sz_io,size_t sz_style,size_t sz_vec2,size_t sz_vec4,size_t sz_drawvert,size_t sz_drawidx);
CIMGUI_API void igSetAllocatorFunctions(void*(*alloc_func)(size_t sz,void* user_data),void(*free_func)(void* ptr,void* user_data),void* user_data);
CIMGUI_API void igSetAllocatorFunctions(ImGuiMemAllocFunc alloc_func,ImGuiMemFreeFunc free_func,void* user_data);
CIMGUI_API void igGetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func,ImGuiMemFreeFunc* p_free_func,void** p_user_data);
CIMGUI_API void* igMemAlloc(size_t size);
CIMGUI_API void igMemFree(void* ptr);
CIMGUI_API ImGuiStyle* ImGuiStyle_ImGuiStyle(void);
@ -1578,8 +1584,8 @@ CIMGUI_API void ImDrawList_PopTextureID(ImDrawList* self);
CIMGUI_API void ImDrawList_GetClipRectMin(ImVec2 *pOut,ImDrawList* self);
CIMGUI_API void ImDrawList_GetClipRectMax(ImVec2 *pOut,ImDrawList* self);
CIMGUI_API void ImDrawList_AddLine(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,ImU32 col,float thickness);
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawCornerFlags rounding_corners,float thickness);
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawCornerFlags rounding_corners);
CIMGUI_API void ImDrawList_AddRect(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags,float thickness);
CIMGUI_API void ImDrawList_AddRectFilled(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col,float rounding,ImDrawFlags flags);
CIMGUI_API void ImDrawList_AddRectFilledMultiColor(ImDrawList* self,const ImVec2 p_min,const ImVec2 p_max,ImU32 col_upr_left,ImU32 col_upr_right,ImU32 col_bot_right,ImU32 col_bot_left);
CIMGUI_API void ImDrawList_AddQuad(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness);
CIMGUI_API void ImDrawList_AddQuadFilled(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col);
@ -1591,23 +1597,23 @@ CIMGUI_API void ImDrawList_AddNgon(ImDrawList* self,const ImVec2 center,float ra
CIMGUI_API void ImDrawList_AddNgonFilled(ImDrawList* self,const ImVec2 center,float radius,ImU32 col,int num_segments);
CIMGUI_API void ImDrawList_AddTextVec2(ImDrawList* self,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end);
CIMGUI_API void ImDrawList_AddTextFontPtr(ImDrawList* self,const ImFont* font,float font_size,const ImVec2 pos,ImU32 col,const char* text_begin,const char* text_end,float wrap_width,const ImVec4* cpu_fine_clip_rect);
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,bool closed,float thickness);
CIMGUI_API void ImDrawList_AddPolyline(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col,ImDrawFlags flags,float thickness);
CIMGUI_API void ImDrawList_AddConvexPolyFilled(ImDrawList* self,const ImVec2* points,int num_points,ImU32 col);
CIMGUI_API void ImDrawList_AddBezierCubic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,ImU32 col,float thickness,int num_segments);
CIMGUI_API void ImDrawList_AddBezierQuadratic(ImDrawList* self,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,ImU32 col,float thickness,int num_segments);
CIMGUI_API void ImDrawList_AddImage(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col);
CIMGUI_API void ImDrawList_AddImageQuad(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p1,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,const ImVec2 uv1,const ImVec2 uv2,const ImVec2 uv3,const ImVec2 uv4,ImU32 col);
CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawCornerFlags rounding_corners);
CIMGUI_API void ImDrawList_AddImageRounded(ImDrawList* self,ImTextureID user_texture_id,const ImVec2 p_min,const ImVec2 p_max,const ImVec2 uv_min,const ImVec2 uv_max,ImU32 col,float rounding,ImDrawFlags flags);
CIMGUI_API void ImDrawList_PathClear(ImDrawList* self);
CIMGUI_API void ImDrawList_PathLineTo(ImDrawList* self,const ImVec2 pos);
CIMGUI_API void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self,const ImVec2 pos);
CIMGUI_API void ImDrawList_PathFillConvex(ImDrawList* self,ImU32 col);
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,bool closed,float thickness);
CIMGUI_API void ImDrawList_PathStroke(ImDrawList* self,ImU32 col,ImDrawFlags flags,float thickness);
CIMGUI_API void ImDrawList_PathArcTo(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments);
CIMGUI_API void ImDrawList_PathArcToFast(ImDrawList* self,const ImVec2 center,float radius,int a_min_of_12,int a_max_of_12);
CIMGUI_API void ImDrawList_PathBezierCubicCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,const ImVec2 p4,int num_segments);
CIMGUI_API void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self,const ImVec2 p2,const ImVec2 p3,int num_segments);
CIMGUI_API void ImDrawList_PathRect(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawCornerFlags rounding_corners);
CIMGUI_API void ImDrawList_PathRect(ImDrawList* self,const ImVec2 rect_min,const ImVec2 rect_max,float rounding,ImDrawFlags flags);
CIMGUI_API void ImDrawList_AddCallback(ImDrawList* self,ImDrawCallback callback,void* callback_data);
CIMGUI_API void ImDrawList_AddDrawCmd(ImDrawList* self);
CIMGUI_API ImDrawList* ImDrawList_CloneOutput(ImDrawList* self);
@ -1628,6 +1634,9 @@ CIMGUI_API void ImDrawList__PopUnusedDrawCmd(ImDrawList* self);
CIMGUI_API void ImDrawList__OnChangedClipRect(ImDrawList* self);
CIMGUI_API void ImDrawList__OnChangedTextureID(ImDrawList* self);
CIMGUI_API void ImDrawList__OnChangedVtxOffset(ImDrawList* self);
CIMGUI_API int ImDrawList__CalcCircleAutoSegmentCount(ImDrawList* self,float radius);
CIMGUI_API void ImDrawList__PathArcToFastEx(ImDrawList* self,const ImVec2 center,float radius,int a_min_sample,int a_max_sample,int a_step);
CIMGUI_API void ImDrawList__PathArcToN(ImDrawList* self,const ImVec2 center,float radius,float a_min,float a_max,int num_segments);
CIMGUI_API ImDrawData* ImDrawData_ImDrawData(void);
CIMGUI_API void ImDrawData_destroy(ImDrawData* self);
CIMGUI_API void ImDrawData_Clear(ImDrawData* self);

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1 +1 @@
Subproject commit 4df57136e9832327c11e48b5bfe00b0326bd5b63
Subproject commit 35b1148efb839381b84de9290d9caf0b66ad7d03

View File

@ -1,55 +1,75 @@
{
"enums": {
"ImDrawCornerFlags_": [
"ImDrawFlags_": [
{
"calc_value": 0,
"name": "ImDrawCornerFlags_None",
"name": "ImDrawFlags_None",
"value": "0"
},
{
"calc_value": 1,
"name": "ImDrawCornerFlags_TopLeft",
"name": "ImDrawFlags_Closed",
"value": "1 << 0"
},
{
"calc_value": 2,
"name": "ImDrawCornerFlags_TopRight",
"value": "1 << 1"
"calc_value": 16,
"name": "ImDrawFlags_RoundCornersTopLeft",
"value": "1 << 4"
},
{
"calc_value": 4,
"name": "ImDrawCornerFlags_BotLeft",
"value": "1 << 2"
"calc_value": 32,
"name": "ImDrawFlags_RoundCornersTopRight",
"value": "1 << 5"
},
{
"calc_value": 8,
"name": "ImDrawCornerFlags_BotRight",
"value": "1 << 3"
"calc_value": 64,
"name": "ImDrawFlags_RoundCornersBottomLeft",
"value": "1 << 6"
},
{
"calc_value": 3,
"name": "ImDrawCornerFlags_Top",
"value": "ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight"
"calc_value": 128,
"name": "ImDrawFlags_RoundCornersBottomRight",
"value": "1 << 7"
},
{
"calc_value": 12,
"name": "ImDrawCornerFlags_Bot",
"value": "ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight"
"calc_value": 256,
"name": "ImDrawFlags_RoundCornersNone",
"value": "1 << 8"
},
{
"calc_value": 5,
"name": "ImDrawCornerFlags_Left",
"value": "ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft"
"calc_value": 48,
"name": "ImDrawFlags_RoundCornersTop",
"value": "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight"
},
{
"calc_value": 10,
"name": "ImDrawCornerFlags_Right",
"value": "ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight"
"calc_value": 192,
"name": "ImDrawFlags_RoundCornersBottom",
"value": "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight"
},
{
"calc_value": 15,
"name": "ImDrawCornerFlags_All",
"value": "0xF"
"calc_value": 80,
"name": "ImDrawFlags_RoundCornersLeft",
"value": "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft"
},
{
"calc_value": 160,
"name": "ImDrawFlags_RoundCornersRight",
"value": "ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight"
},
{
"calc_value": 240,
"name": "ImDrawFlags_RoundCornersAll",
"value": "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight"
},
{
"calc_value": 240,
"name": "ImDrawFlags_RoundCornersDefault_",
"value": "ImDrawFlags_RoundCornersAll"
},
{
"calc_value": 496,
"name": "ImDrawFlags_RoundCornersMask_",
"value": "ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone"
}
],
"ImDrawListFlags_": [
@ -998,7 +1018,7 @@
},
{
"calc_value": 8192,
"name": "ImGuiInputTextFlags_AlwaysInsertMode",
"name": "ImGuiInputTextFlags_AlwaysOverwrite",
"value": "1 << 13"
},
{
@ -2353,72 +2373,72 @@
},
"enumtypes": [],
"locations": {
"ImColor": "imgui:2197",
"ImDrawChannel": "imgui:2291",
"ImDrawCmd": "imgui:2246",
"ImDrawCmdHeader": "imgui:2283",
"ImDrawCornerFlags_": "imgui:2315",
"ImDrawData": "imgui:2471",
"ImDrawList": "imgui:2349",
"ImDrawListFlags_": "imgui:2331",
"ImDrawListSplitter": "imgui:2300",
"ImDrawVert": "imgui:2268",
"ImFont": "imgui:2686",
"ImFontAtlas": "imgui:2587",
"ImFontAtlasCustomRect": "imgui:2549",
"ImFontAtlasFlags_": "imgui:2562",
"ImFontConfig": "imgui:2493",
"ImFontGlyph": "imgui:2522",
"ImFontGlyphRangesBuilder": "imgui:2534",
"ImGuiBackendFlags_": "imgui:1369",
"ImGuiButtonFlags_": "imgui:1475",
"ImGuiCol_": "imgui:1379",
"ImGuiColorEditFlags_": "imgui:1488",
"ImGuiComboFlags_": "imgui:1008",
"ImGuiCond_": "imgui:1580",
"ImGuiConfigFlags_": "imgui:1353",
"ImGuiDataType_": "imgui:1245",
"ImGuiDir_": "imgui:1261",
"ImGuiDragDropFlags_": "imgui:1223",
"ImGuiFocusedFlags_": "imgui:1195",
"ImGuiHoveredFlags_": "imgui:1207",
"ImGuiIO": "imgui:1740",
"ImGuiInputTextCallbackData": "imgui:1882",
"ImGuiInputTextFlags_": "imgui:923",
"ImGuiKeyModFlags_": "imgui:1308",
"ImGuiKey_": "imgui:1280",
"ImGuiListClipper": "imgui:2148",
"ImGuiMouseButton_": "imgui:1552",
"ImGuiMouseCursor_": "imgui:1562",
"ImGuiNavInput_": "imgui:1321",
"ImGuiOnceUponAFrame": "imgui:2026",
"ImGuiPayload": "imgui:1922",
"ImGuiPopupFlags_": "imgui:981",
"ImGuiSelectableFlags_": "imgui:997",
"ImGuiSizeCallbackData": "imgui:1913",
"ImGuiSliderFlags_": "imgui:1535",
"ImGuiSortDirection_": "imgui:1272",
"ImGuiStorage": "imgui:2088",
"ImGuiStoragePair": "imgui:2091",
"ImGuiStyle": "imgui:1686",
"ImGuiStyleVar_": "imgui:1444",
"ImGuiTabBarFlags_": "imgui:1022",
"ImGuiTabItemFlags_": "imgui:1038",
"ImGuiTableBgTarget_": "imgui:1186",
"ImGuiTableColumnFlags_": "imgui:1131",
"ImGuiTableColumnSortSpecs": "imgui:1944",
"ImGuiTableFlags_": "imgui:1074",
"ImGuiTableRowFlags_": "imgui:1171",
"ImGuiTableSortSpecs": "imgui:1958",
"ImGuiTextBuffer": "imgui:2061",
"ImGuiTextFilter": "imgui:2034",
"ImGuiTextRange": "imgui:2044",
"ImGuiTreeNodeFlags_": "imgui:952",
"ImGuiViewport": "imgui:2757",
"ImGuiViewportFlags_": "imgui:2742",
"ImGuiWindowFlags_": "imgui:883",
"ImVec2": "imgui:227",
"ImVec4": "imgui:240"
"ImColor": "imgui:2167",
"ImDrawChannel": "imgui:2261",
"ImDrawCmd": "imgui:2216",
"ImDrawCmdHeader": "imgui:2253",
"ImDrawData": "imgui:2450",
"ImDrawFlags_": "imgui:2287",
"ImDrawList": "imgui:2325",
"ImDrawListFlags_": "imgui:2307",
"ImDrawListSplitter": "imgui:2270",
"ImDrawVert": "imgui:2238",
"ImFont": "imgui:2667",
"ImFontAtlas": "imgui:2566",
"ImFontAtlasCustomRect": "imgui:2528",
"ImFontAtlasFlags_": "imgui:2541",
"ImFontConfig": "imgui:2472",
"ImFontGlyph": "imgui:2501",
"ImFontGlyphRangesBuilder": "imgui:2513",
"ImGuiBackendFlags_": "imgui:1384",
"ImGuiButtonFlags_": "imgui:1490",
"ImGuiCol_": "imgui:1394",
"ImGuiColorEditFlags_": "imgui:1503",
"ImGuiComboFlags_": "imgui:1023",
"ImGuiCond_": "imgui:1595",
"ImGuiConfigFlags_": "imgui:1368",
"ImGuiDataType_": "imgui:1260",
"ImGuiDir_": "imgui:1276",
"ImGuiDragDropFlags_": "imgui:1238",
"ImGuiFocusedFlags_": "imgui:1210",
"ImGuiHoveredFlags_": "imgui:1222",
"ImGuiIO": "imgui:1755",
"ImGuiInputTextCallbackData": "imgui:1897",
"ImGuiInputTextFlags_": "imgui:933",
"ImGuiKeyModFlags_": "imgui:1323",
"ImGuiKey_": "imgui:1295",
"ImGuiListClipper": "imgui:2118",
"ImGuiMouseButton_": "imgui:1567",
"ImGuiMouseCursor_": "imgui:1577",
"ImGuiNavInput_": "imgui:1336",
"ImGuiOnceUponAFrame": "imgui:1996",
"ImGuiPayload": "imgui:1937",
"ImGuiPopupFlags_": "imgui:996",
"ImGuiSelectableFlags_": "imgui:1012",
"ImGuiSizeCallbackData": "imgui:1928",
"ImGuiSliderFlags_": "imgui:1550",
"ImGuiSortDirection_": "imgui:1287",
"ImGuiStorage": "imgui:2058",
"ImGuiStoragePair": "imgui:2061",
"ImGuiStyle": "imgui:1701",
"ImGuiStyleVar_": "imgui:1459",
"ImGuiTabBarFlags_": "imgui:1037",
"ImGuiTabItemFlags_": "imgui:1053",
"ImGuiTableBgTarget_": "imgui:1201",
"ImGuiTableColumnFlags_": "imgui:1146",
"ImGuiTableColumnSortSpecs": "imgui:1959",
"ImGuiTableFlags_": "imgui:1089",
"ImGuiTableRowFlags_": "imgui:1186",
"ImGuiTableSortSpecs": "imgui:1973",
"ImGuiTextBuffer": "imgui:2031",
"ImGuiTextFilter": "imgui:2004",
"ImGuiTextRange": "imgui:2014",
"ImGuiTreeNodeFlags_": "imgui:967",
"ImGuiViewport": "imgui:2738",
"ImGuiViewportFlags_": "imgui:2723",
"ImGuiWindowFlags_": "imgui:893",
"ImVec2": "imgui:230",
"ImVec4": "imgui:243"
},
"structs": {
"ImColor": [
@ -2689,10 +2709,6 @@
}
],
"ImFontAtlas": [
{
"name": "Locked",
"type": "bool"
},
{
"name": "Flags",
"type": "ImFontAtlasFlags"
@ -2709,6 +2725,14 @@
"name": "TexGlyphPadding",
"type": "int"
},
{
"name": "Locked",
"type": "bool"
},
{
"name": "TexPixelsUseColors",
"type": "bool"
},
{
"name": "TexPixelsAlpha8",
"type": "unsigned char*"
@ -3595,7 +3619,7 @@
"type": "float"
},
{
"name": "CircleSegmentMaxError",
"name": "CircleTessellationMaxError",
"type": "float"
},
{

View File

@ -1,46 +1,62 @@
local defs = {}
defs["enums"] = {}
defs["enums"]["ImDrawCornerFlags_"] = {}
defs["enums"]["ImDrawCornerFlags_"][1] = {}
defs["enums"]["ImDrawCornerFlags_"][1]["calc_value"] = 0
defs["enums"]["ImDrawCornerFlags_"][1]["name"] = "ImDrawCornerFlags_None"
defs["enums"]["ImDrawCornerFlags_"][1]["value"] = "0"
defs["enums"]["ImDrawCornerFlags_"][2] = {}
defs["enums"]["ImDrawCornerFlags_"][2]["calc_value"] = 1
defs["enums"]["ImDrawCornerFlags_"][2]["name"] = "ImDrawCornerFlags_TopLeft"
defs["enums"]["ImDrawCornerFlags_"][2]["value"] = "1 << 0"
defs["enums"]["ImDrawCornerFlags_"][3] = {}
defs["enums"]["ImDrawCornerFlags_"][3]["calc_value"] = 2
defs["enums"]["ImDrawCornerFlags_"][3]["name"] = "ImDrawCornerFlags_TopRight"
defs["enums"]["ImDrawCornerFlags_"][3]["value"] = "1 << 1"
defs["enums"]["ImDrawCornerFlags_"][4] = {}
defs["enums"]["ImDrawCornerFlags_"][4]["calc_value"] = 4
defs["enums"]["ImDrawCornerFlags_"][4]["name"] = "ImDrawCornerFlags_BotLeft"
defs["enums"]["ImDrawCornerFlags_"][4]["value"] = "1 << 2"
defs["enums"]["ImDrawCornerFlags_"][5] = {}
defs["enums"]["ImDrawCornerFlags_"][5]["calc_value"] = 8
defs["enums"]["ImDrawCornerFlags_"][5]["name"] = "ImDrawCornerFlags_BotRight"
defs["enums"]["ImDrawCornerFlags_"][5]["value"] = "1 << 3"
defs["enums"]["ImDrawCornerFlags_"][6] = {}
defs["enums"]["ImDrawCornerFlags_"][6]["calc_value"] = 3
defs["enums"]["ImDrawCornerFlags_"][6]["name"] = "ImDrawCornerFlags_Top"
defs["enums"]["ImDrawCornerFlags_"][6]["value"] = "ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_TopRight"
defs["enums"]["ImDrawCornerFlags_"][7] = {}
defs["enums"]["ImDrawCornerFlags_"][7]["calc_value"] = 12
defs["enums"]["ImDrawCornerFlags_"][7]["name"] = "ImDrawCornerFlags_Bot"
defs["enums"]["ImDrawCornerFlags_"][7]["value"] = "ImDrawCornerFlags_BotLeft | ImDrawCornerFlags_BotRight"
defs["enums"]["ImDrawCornerFlags_"][8] = {}
defs["enums"]["ImDrawCornerFlags_"][8]["calc_value"] = 5
defs["enums"]["ImDrawCornerFlags_"][8]["name"] = "ImDrawCornerFlags_Left"
defs["enums"]["ImDrawCornerFlags_"][8]["value"] = "ImDrawCornerFlags_TopLeft | ImDrawCornerFlags_BotLeft"
defs["enums"]["ImDrawCornerFlags_"][9] = {}
defs["enums"]["ImDrawCornerFlags_"][9]["calc_value"] = 10
defs["enums"]["ImDrawCornerFlags_"][9]["name"] = "ImDrawCornerFlags_Right"
defs["enums"]["ImDrawCornerFlags_"][9]["value"] = "ImDrawCornerFlags_TopRight | ImDrawCornerFlags_BotRight"
defs["enums"]["ImDrawCornerFlags_"][10] = {}
defs["enums"]["ImDrawCornerFlags_"][10]["calc_value"] = 15
defs["enums"]["ImDrawCornerFlags_"][10]["name"] = "ImDrawCornerFlags_All"
defs["enums"]["ImDrawCornerFlags_"][10]["value"] = "0xF"
defs["enums"]["ImDrawFlags_"] = {}
defs["enums"]["ImDrawFlags_"][1] = {}
defs["enums"]["ImDrawFlags_"][1]["calc_value"] = 0
defs["enums"]["ImDrawFlags_"][1]["name"] = "ImDrawFlags_None"
defs["enums"]["ImDrawFlags_"][1]["value"] = "0"
defs["enums"]["ImDrawFlags_"][2] = {}
defs["enums"]["ImDrawFlags_"][2]["calc_value"] = 1
defs["enums"]["ImDrawFlags_"][2]["name"] = "ImDrawFlags_Closed"
defs["enums"]["ImDrawFlags_"][2]["value"] = "1 << 0"
defs["enums"]["ImDrawFlags_"][3] = {}
defs["enums"]["ImDrawFlags_"][3]["calc_value"] = 16
defs["enums"]["ImDrawFlags_"][3]["name"] = "ImDrawFlags_RoundCornersTopLeft"
defs["enums"]["ImDrawFlags_"][3]["value"] = "1 << 4"
defs["enums"]["ImDrawFlags_"][4] = {}
defs["enums"]["ImDrawFlags_"][4]["calc_value"] = 32
defs["enums"]["ImDrawFlags_"][4]["name"] = "ImDrawFlags_RoundCornersTopRight"
defs["enums"]["ImDrawFlags_"][4]["value"] = "1 << 5"
defs["enums"]["ImDrawFlags_"][5] = {}
defs["enums"]["ImDrawFlags_"][5]["calc_value"] = 64
defs["enums"]["ImDrawFlags_"][5]["name"] = "ImDrawFlags_RoundCornersBottomLeft"
defs["enums"]["ImDrawFlags_"][5]["value"] = "1 << 6"
defs["enums"]["ImDrawFlags_"][6] = {}
defs["enums"]["ImDrawFlags_"][6]["calc_value"] = 128
defs["enums"]["ImDrawFlags_"][6]["name"] = "ImDrawFlags_RoundCornersBottomRight"
defs["enums"]["ImDrawFlags_"][6]["value"] = "1 << 7"
defs["enums"]["ImDrawFlags_"][7] = {}
defs["enums"]["ImDrawFlags_"][7]["calc_value"] = 256
defs["enums"]["ImDrawFlags_"][7]["name"] = "ImDrawFlags_RoundCornersNone"
defs["enums"]["ImDrawFlags_"][7]["value"] = "1 << 8"
defs["enums"]["ImDrawFlags_"][8] = {}
defs["enums"]["ImDrawFlags_"][8]["calc_value"] = 48
defs["enums"]["ImDrawFlags_"][8]["name"] = "ImDrawFlags_RoundCornersTop"
defs["enums"]["ImDrawFlags_"][8]["value"] = "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight"
defs["enums"]["ImDrawFlags_"][9] = {}
defs["enums"]["ImDrawFlags_"][9]["calc_value"] = 192
defs["enums"]["ImDrawFlags_"][9]["name"] = "ImDrawFlags_RoundCornersBottom"
defs["enums"]["ImDrawFlags_"][9]["value"] = "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight"
defs["enums"]["ImDrawFlags_"][10] = {}
defs["enums"]["ImDrawFlags_"][10]["calc_value"] = 80
defs["enums"]["ImDrawFlags_"][10]["name"] = "ImDrawFlags_RoundCornersLeft"
defs["enums"]["ImDrawFlags_"][10]["value"] = "ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersTopLeft"
defs["enums"]["ImDrawFlags_"][11] = {}
defs["enums"]["ImDrawFlags_"][11]["calc_value"] = 160
defs["enums"]["ImDrawFlags_"][11]["name"] = "ImDrawFlags_RoundCornersRight"
defs["enums"]["ImDrawFlags_"][11]["value"] = "ImDrawFlags_RoundCornersBottomRight | ImDrawFlags_RoundCornersTopRight"
defs["enums"]["ImDrawFlags_"][12] = {}
defs["enums"]["ImDrawFlags_"][12]["calc_value"] = 240
defs["enums"]["ImDrawFlags_"][12]["name"] = "ImDrawFlags_RoundCornersAll"
defs["enums"]["ImDrawFlags_"][12]["value"] = "ImDrawFlags_RoundCornersTopLeft | ImDrawFlags_RoundCornersTopRight | ImDrawFlags_RoundCornersBottomLeft | ImDrawFlags_RoundCornersBottomRight"
defs["enums"]["ImDrawFlags_"][13] = {}
defs["enums"]["ImDrawFlags_"][13]["calc_value"] = 240
defs["enums"]["ImDrawFlags_"][13]["name"] = "ImDrawFlags_RoundCornersDefault_"
defs["enums"]["ImDrawFlags_"][13]["value"] = "ImDrawFlags_RoundCornersAll"
defs["enums"]["ImDrawFlags_"][14] = {}
defs["enums"]["ImDrawFlags_"][14]["calc_value"] = 496
defs["enums"]["ImDrawFlags_"][14]["name"] = "ImDrawFlags_RoundCornersMask_"
defs["enums"]["ImDrawFlags_"][14]["value"] = "ImDrawFlags_RoundCornersAll | ImDrawFlags_RoundCornersNone"
defs["enums"]["ImDrawListFlags_"] = {}
defs["enums"]["ImDrawListFlags_"][1] = {}
defs["enums"]["ImDrawListFlags_"][1]["calc_value"] = 0
@ -790,7 +806,7 @@ defs["enums"]["ImGuiInputTextFlags_"][14]["name"] = "ImGuiInputTextFlags_NoHoriz
defs["enums"]["ImGuiInputTextFlags_"][14]["value"] = "1 << 12"
defs["enums"]["ImGuiInputTextFlags_"][15] = {}
defs["enums"]["ImGuiInputTextFlags_"][15]["calc_value"] = 8192
defs["enums"]["ImGuiInputTextFlags_"][15]["name"] = "ImGuiInputTextFlags_AlwaysInsertMode"
defs["enums"]["ImGuiInputTextFlags_"][15]["name"] = "ImGuiInputTextFlags_AlwaysOverwrite"
defs["enums"]["ImGuiInputTextFlags_"][15]["value"] = "1 << 13"
defs["enums"]["ImGuiInputTextFlags_"][16] = {}
defs["enums"]["ImGuiInputTextFlags_"][16]["calc_value"] = 16384
@ -1861,72 +1877,72 @@ defs["enums"]["ImGuiWindowFlags_"][30]["name"] = "ImGuiWindowFlags_ChildMenu"
defs["enums"]["ImGuiWindowFlags_"][30]["value"] = "1 << 28"
defs["enumtypes"] = {}
defs["locations"] = {}
defs["locations"]["ImColor"] = "imgui:2197"
defs["locations"]["ImDrawChannel"] = "imgui:2291"
defs["locations"]["ImDrawCmd"] = "imgui:2246"
defs["locations"]["ImDrawCmdHeader"] = "imgui:2283"
defs["locations"]["ImDrawCornerFlags_"] = "imgui:2315"
defs["locations"]["ImDrawData"] = "imgui:2471"
defs["locations"]["ImDrawList"] = "imgui:2349"
defs["locations"]["ImDrawListFlags_"] = "imgui:2331"
defs["locations"]["ImDrawListSplitter"] = "imgui:2300"
defs["locations"]["ImDrawVert"] = "imgui:2268"
defs["locations"]["ImFont"] = "imgui:2686"
defs["locations"]["ImFontAtlas"] = "imgui:2587"
defs["locations"]["ImFontAtlasCustomRect"] = "imgui:2549"
defs["locations"]["ImFontAtlasFlags_"] = "imgui:2562"
defs["locations"]["ImFontConfig"] = "imgui:2493"
defs["locations"]["ImFontGlyph"] = "imgui:2522"
defs["locations"]["ImFontGlyphRangesBuilder"] = "imgui:2534"
defs["locations"]["ImGuiBackendFlags_"] = "imgui:1369"
defs["locations"]["ImGuiButtonFlags_"] = "imgui:1475"
defs["locations"]["ImGuiCol_"] = "imgui:1379"
defs["locations"]["ImGuiColorEditFlags_"] = "imgui:1488"
defs["locations"]["ImGuiComboFlags_"] = "imgui:1008"
defs["locations"]["ImGuiCond_"] = "imgui:1580"
defs["locations"]["ImGuiConfigFlags_"] = "imgui:1353"
defs["locations"]["ImGuiDataType_"] = "imgui:1245"
defs["locations"]["ImGuiDir_"] = "imgui:1261"
defs["locations"]["ImGuiDragDropFlags_"] = "imgui:1223"
defs["locations"]["ImGuiFocusedFlags_"] = "imgui:1195"
defs["locations"]["ImGuiHoveredFlags_"] = "imgui:1207"
defs["locations"]["ImGuiIO"] = "imgui:1740"
defs["locations"]["ImGuiInputTextCallbackData"] = "imgui:1882"
defs["locations"]["ImGuiInputTextFlags_"] = "imgui:923"
defs["locations"]["ImGuiKeyModFlags_"] = "imgui:1308"
defs["locations"]["ImGuiKey_"] = "imgui:1280"
defs["locations"]["ImGuiListClipper"] = "imgui:2148"
defs["locations"]["ImGuiMouseButton_"] = "imgui:1552"
defs["locations"]["ImGuiMouseCursor_"] = "imgui:1562"
defs["locations"]["ImGuiNavInput_"] = "imgui:1321"
defs["locations"]["ImGuiOnceUponAFrame"] = "imgui:2026"
defs["locations"]["ImGuiPayload"] = "imgui:1922"
defs["locations"]["ImGuiPopupFlags_"] = "imgui:981"
defs["locations"]["ImGuiSelectableFlags_"] = "imgui:997"
defs["locations"]["ImGuiSizeCallbackData"] = "imgui:1913"
defs["locations"]["ImGuiSliderFlags_"] = "imgui:1535"
defs["locations"]["ImGuiSortDirection_"] = "imgui:1272"
defs["locations"]["ImGuiStorage"] = "imgui:2088"
defs["locations"]["ImGuiStoragePair"] = "imgui:2091"
defs["locations"]["ImGuiStyle"] = "imgui:1686"
defs["locations"]["ImGuiStyleVar_"] = "imgui:1444"
defs["locations"]["ImGuiTabBarFlags_"] = "imgui:1022"
defs["locations"]["ImGuiTabItemFlags_"] = "imgui:1038"
defs["locations"]["ImGuiTableBgTarget_"] = "imgui:1186"
defs["locations"]["ImGuiTableColumnFlags_"] = "imgui:1131"
defs["locations"]["ImGuiTableColumnSortSpecs"] = "imgui:1944"
defs["locations"]["ImGuiTableFlags_"] = "imgui:1074"
defs["locations"]["ImGuiTableRowFlags_"] = "imgui:1171"
defs["locations"]["ImGuiTableSortSpecs"] = "imgui:1958"
defs["locations"]["ImGuiTextBuffer"] = "imgui:2061"
defs["locations"]["ImGuiTextFilter"] = "imgui:2034"
defs["locations"]["ImGuiTextRange"] = "imgui:2044"
defs["locations"]["ImGuiTreeNodeFlags_"] = "imgui:952"
defs["locations"]["ImGuiViewport"] = "imgui:2757"
defs["locations"]["ImGuiViewportFlags_"] = "imgui:2742"
defs["locations"]["ImGuiWindowFlags_"] = "imgui:883"
defs["locations"]["ImVec2"] = "imgui:227"
defs["locations"]["ImVec4"] = "imgui:240"
defs["locations"]["ImColor"] = "imgui:2167"
defs["locations"]["ImDrawChannel"] = "imgui:2261"
defs["locations"]["ImDrawCmd"] = "imgui:2216"
defs["locations"]["ImDrawCmdHeader"] = "imgui:2253"
defs["locations"]["ImDrawData"] = "imgui:2450"
defs["locations"]["ImDrawFlags_"] = "imgui:2287"
defs["locations"]["ImDrawList"] = "imgui:2325"
defs["locations"]["ImDrawListFlags_"] = "imgui:2307"
defs["locations"]["ImDrawListSplitter"] = "imgui:2270"
defs["locations"]["ImDrawVert"] = "imgui:2238"
defs["locations"]["ImFont"] = "imgui:2667"
defs["locations"]["ImFontAtlas"] = "imgui:2566"
defs["locations"]["ImFontAtlasCustomRect"] = "imgui:2528"
defs["locations"]["ImFontAtlasFlags_"] = "imgui:2541"
defs["locations"]["ImFontConfig"] = "imgui:2472"
defs["locations"]["ImFontGlyph"] = "imgui:2501"
defs["locations"]["ImFontGlyphRangesBuilder"] = "imgui:2513"
defs["locations"]["ImGuiBackendFlags_"] = "imgui:1384"
defs["locations"]["ImGuiButtonFlags_"] = "imgui:1490"
defs["locations"]["ImGuiCol_"] = "imgui:1394"
defs["locations"]["ImGuiColorEditFlags_"] = "imgui:1503"
defs["locations"]["ImGuiComboFlags_"] = "imgui:1023"
defs["locations"]["ImGuiCond_"] = "imgui:1595"
defs["locations"]["ImGuiConfigFlags_"] = "imgui:1368"
defs["locations"]["ImGuiDataType_"] = "imgui:1260"
defs["locations"]["ImGuiDir_"] = "imgui:1276"
defs["locations"]["ImGuiDragDropFlags_"] = "imgui:1238"
defs["locations"]["ImGuiFocusedFlags_"] = "imgui:1210"
defs["locations"]["ImGuiHoveredFlags_"] = "imgui:1222"
defs["locations"]["ImGuiIO"] = "imgui:1755"
defs["locations"]["ImGuiInputTextCallbackData"] = "imgui:1897"
defs["locations"]["ImGuiInputTextFlags_"] = "imgui:933"
defs["locations"]["ImGuiKeyModFlags_"] = "imgui:1323"
defs["locations"]["ImGuiKey_"] = "imgui:1295"
defs["locations"]["ImGuiListClipper"] = "imgui:2118"
defs["locations"]["ImGuiMouseButton_"] = "imgui:1567"
defs["locations"]["ImGuiMouseCursor_"] = "imgui:1577"
defs["locations"]["ImGuiNavInput_"] = "imgui:1336"
defs["locations"]["ImGuiOnceUponAFrame"] = "imgui:1996"
defs["locations"]["ImGuiPayload"] = "imgui:1937"
defs["locations"]["ImGuiPopupFlags_"] = "imgui:996"
defs["locations"]["ImGuiSelectableFlags_"] = "imgui:1012"
defs["locations"]["ImGuiSizeCallbackData"] = "imgui:1928"
defs["locations"]["ImGuiSliderFlags_"] = "imgui:1550"
defs["locations"]["ImGuiSortDirection_"] = "imgui:1287"
defs["locations"]["ImGuiStorage"] = "imgui:2058"
defs["locations"]["ImGuiStoragePair"] = "imgui:2061"
defs["locations"]["ImGuiStyle"] = "imgui:1701"
defs["locations"]["ImGuiStyleVar_"] = "imgui:1459"
defs["locations"]["ImGuiTabBarFlags_"] = "imgui:1037"
defs["locations"]["ImGuiTabItemFlags_"] = "imgui:1053"
defs["locations"]["ImGuiTableBgTarget_"] = "imgui:1201"
defs["locations"]["ImGuiTableColumnFlags_"] = "imgui:1146"
defs["locations"]["ImGuiTableColumnSortSpecs"] = "imgui:1959"
defs["locations"]["ImGuiTableFlags_"] = "imgui:1089"
defs["locations"]["ImGuiTableRowFlags_"] = "imgui:1186"
defs["locations"]["ImGuiTableSortSpecs"] = "imgui:1973"
defs["locations"]["ImGuiTextBuffer"] = "imgui:2031"
defs["locations"]["ImGuiTextFilter"] = "imgui:2004"
defs["locations"]["ImGuiTextRange"] = "imgui:2014"
defs["locations"]["ImGuiTreeNodeFlags_"] = "imgui:967"
defs["locations"]["ImGuiViewport"] = "imgui:2738"
defs["locations"]["ImGuiViewportFlags_"] = "imgui:2723"
defs["locations"]["ImGuiWindowFlags_"] = "imgui:893"
defs["locations"]["ImVec2"] = "imgui:230"
defs["locations"]["ImVec4"] = "imgui:243"
defs["structs"] = {}
defs["structs"]["ImColor"] = {}
defs["structs"]["ImColor"][1] = {}
@ -2129,66 +2145,69 @@ defs["structs"]["ImFont"][17]["size"] = 2
defs["structs"]["ImFont"][17]["type"] = "ImU8"
defs["structs"]["ImFontAtlas"] = {}
defs["structs"]["ImFontAtlas"][1] = {}
defs["structs"]["ImFontAtlas"][1]["name"] = "Locked"
defs["structs"]["ImFontAtlas"][1]["type"] = "bool"
defs["structs"]["ImFontAtlas"][1]["name"] = "Flags"
defs["structs"]["ImFontAtlas"][1]["type"] = "ImFontAtlasFlags"
defs["structs"]["ImFontAtlas"][2] = {}
defs["structs"]["ImFontAtlas"][2]["name"] = "Flags"
defs["structs"]["ImFontAtlas"][2]["type"] = "ImFontAtlasFlags"
defs["structs"]["ImFontAtlas"][2]["name"] = "TexID"
defs["structs"]["ImFontAtlas"][2]["type"] = "ImTextureID"
defs["structs"]["ImFontAtlas"][3] = {}
defs["structs"]["ImFontAtlas"][3]["name"] = "TexID"
defs["structs"]["ImFontAtlas"][3]["type"] = "ImTextureID"
defs["structs"]["ImFontAtlas"][3]["name"] = "TexDesiredWidth"
defs["structs"]["ImFontAtlas"][3]["type"] = "int"
defs["structs"]["ImFontAtlas"][4] = {}
defs["structs"]["ImFontAtlas"][4]["name"] = "TexDesiredWidth"
defs["structs"]["ImFontAtlas"][4]["name"] = "TexGlyphPadding"
defs["structs"]["ImFontAtlas"][4]["type"] = "int"
defs["structs"]["ImFontAtlas"][5] = {}
defs["structs"]["ImFontAtlas"][5]["name"] = "TexGlyphPadding"
defs["structs"]["ImFontAtlas"][5]["type"] = "int"
defs["structs"]["ImFontAtlas"][5]["name"] = "Locked"
defs["structs"]["ImFontAtlas"][5]["type"] = "bool"
defs["structs"]["ImFontAtlas"][6] = {}
defs["structs"]["ImFontAtlas"][6]["name"] = "TexPixelsAlpha8"
defs["structs"]["ImFontAtlas"][6]["type"] = "unsigned char*"
defs["structs"]["ImFontAtlas"][6]["name"] = "TexPixelsUseColors"
defs["structs"]["ImFontAtlas"][6]["type"] = "bool"
defs["structs"]["ImFontAtlas"][7] = {}
defs["structs"]["ImFontAtlas"][7]["name"] = "TexPixelsRGBA32"
defs["structs"]["ImFontAtlas"][7]["type"] = "unsigned int*"
defs["structs"]["ImFontAtlas"][7]["name"] = "TexPixelsAlpha8"
defs["structs"]["ImFontAtlas"][7]["type"] = "unsigned char*"
defs["structs"]["ImFontAtlas"][8] = {}
defs["structs"]["ImFontAtlas"][8]["name"] = "TexWidth"
defs["structs"]["ImFontAtlas"][8]["type"] = "int"
defs["structs"]["ImFontAtlas"][8]["name"] = "TexPixelsRGBA32"
defs["structs"]["ImFontAtlas"][8]["type"] = "unsigned int*"
defs["structs"]["ImFontAtlas"][9] = {}
defs["structs"]["ImFontAtlas"][9]["name"] = "TexHeight"
defs["structs"]["ImFontAtlas"][9]["name"] = "TexWidth"
defs["structs"]["ImFontAtlas"][9]["type"] = "int"
defs["structs"]["ImFontAtlas"][10] = {}
defs["structs"]["ImFontAtlas"][10]["name"] = "TexUvScale"
defs["structs"]["ImFontAtlas"][10]["type"] = "ImVec2"
defs["structs"]["ImFontAtlas"][10]["name"] = "TexHeight"
defs["structs"]["ImFontAtlas"][10]["type"] = "int"
defs["structs"]["ImFontAtlas"][11] = {}
defs["structs"]["ImFontAtlas"][11]["name"] = "TexUvWhitePixel"
defs["structs"]["ImFontAtlas"][11]["name"] = "TexUvScale"
defs["structs"]["ImFontAtlas"][11]["type"] = "ImVec2"
defs["structs"]["ImFontAtlas"][12] = {}
defs["structs"]["ImFontAtlas"][12]["name"] = "Fonts"
defs["structs"]["ImFontAtlas"][12]["template_type"] = "ImFont*"
defs["structs"]["ImFontAtlas"][12]["type"] = "ImVector_ImFontPtr"
defs["structs"]["ImFontAtlas"][12]["name"] = "TexUvWhitePixel"
defs["structs"]["ImFontAtlas"][12]["type"] = "ImVec2"
defs["structs"]["ImFontAtlas"][13] = {}
defs["structs"]["ImFontAtlas"][13]["name"] = "CustomRects"
defs["structs"]["ImFontAtlas"][13]["template_type"] = "ImFontAtlasCustomRect"
defs["structs"]["ImFontAtlas"][13]["type"] = "ImVector_ImFontAtlasCustomRect"
defs["structs"]["ImFontAtlas"][13]["name"] = "Fonts"
defs["structs"]["ImFontAtlas"][13]["template_type"] = "ImFont*"
defs["structs"]["ImFontAtlas"][13]["type"] = "ImVector_ImFontPtr"
defs["structs"]["ImFontAtlas"][14] = {}
defs["structs"]["ImFontAtlas"][14]["name"] = "ConfigData"
defs["structs"]["ImFontAtlas"][14]["template_type"] = "ImFontConfig"
defs["structs"]["ImFontAtlas"][14]["type"] = "ImVector_ImFontConfig"
defs["structs"]["ImFontAtlas"][14]["name"] = "CustomRects"
defs["structs"]["ImFontAtlas"][14]["template_type"] = "ImFontAtlasCustomRect"
defs["structs"]["ImFontAtlas"][14]["type"] = "ImVector_ImFontAtlasCustomRect"
defs["structs"]["ImFontAtlas"][15] = {}
defs["structs"]["ImFontAtlas"][15]["name"] = "TexUvLines[(63)+1]"
defs["structs"]["ImFontAtlas"][15]["size"] = 64
defs["structs"]["ImFontAtlas"][15]["type"] = "ImVec4"
defs["structs"]["ImFontAtlas"][15]["name"] = "ConfigData"
defs["structs"]["ImFontAtlas"][15]["template_type"] = "ImFontConfig"
defs["structs"]["ImFontAtlas"][15]["type"] = "ImVector_ImFontConfig"
defs["structs"]["ImFontAtlas"][16] = {}
defs["structs"]["ImFontAtlas"][16]["name"] = "FontBuilderIO"
defs["structs"]["ImFontAtlas"][16]["type"] = "const ImFontBuilderIO*"
defs["structs"]["ImFontAtlas"][16]["name"] = "TexUvLines[(63)+1]"
defs["structs"]["ImFontAtlas"][16]["size"] = 64
defs["structs"]["ImFontAtlas"][16]["type"] = "ImVec4"
defs["structs"]["ImFontAtlas"][17] = {}
defs["structs"]["ImFontAtlas"][17]["name"] = "FontBuilderFlags"
defs["structs"]["ImFontAtlas"][17]["type"] = "unsigned int"
defs["structs"]["ImFontAtlas"][17]["name"] = "FontBuilderIO"
defs["structs"]["ImFontAtlas"][17]["type"] = "const ImFontBuilderIO*"
defs["structs"]["ImFontAtlas"][18] = {}
defs["structs"]["ImFontAtlas"][18]["name"] = "PackIdMouseCursors"
defs["structs"]["ImFontAtlas"][18]["type"] = "int"
defs["structs"]["ImFontAtlas"][18]["name"] = "FontBuilderFlags"
defs["structs"]["ImFontAtlas"][18]["type"] = "unsigned int"
defs["structs"]["ImFontAtlas"][19] = {}
defs["structs"]["ImFontAtlas"][19]["name"] = "PackIdLines"
defs["structs"]["ImFontAtlas"][19]["name"] = "PackIdMouseCursors"
defs["structs"]["ImFontAtlas"][19]["type"] = "int"
defs["structs"]["ImFontAtlas"][20] = {}
defs["structs"]["ImFontAtlas"][20]["name"] = "PackIdLines"
defs["structs"]["ImFontAtlas"][20]["type"] = "int"
defs["structs"]["ImFontAtlasCustomRect"] = {}
defs["structs"]["ImFontAtlasCustomRect"][1] = {}
defs["structs"]["ImFontAtlasCustomRect"][1]["name"] = "Width"
@ -2809,7 +2828,7 @@ defs["structs"]["ImGuiStyle"][38] = {}
defs["structs"]["ImGuiStyle"][38]["name"] = "CurveTessellationTol"
defs["structs"]["ImGuiStyle"][38]["type"] = "float"
defs["structs"]["ImGuiStyle"][39] = {}
defs["structs"]["ImGuiStyle"][39]["name"] = "CircleSegmentMaxError"
defs["structs"]["ImGuiStyle"][39]["name"] = "CircleTessellationMaxError"
defs["structs"]["ImGuiStyle"][39]["type"] = "float"
defs["structs"]["ImGuiStyle"][40] = {}
defs["structs"]["ImGuiStyle"][40]["name"] = "Colors[ImGuiCol_COUNT]"

View File

@ -4,8 +4,8 @@
"ImDrawChannel": "struct ImDrawChannel",
"ImDrawCmd": "struct ImDrawCmd",
"ImDrawCmdHeader": "struct ImDrawCmdHeader",
"ImDrawCornerFlags": "int",
"ImDrawData": "struct ImDrawData",
"ImDrawFlags": "int",
"ImDrawIdx": "unsigned short",
"ImDrawList": "struct ImDrawList",
"ImDrawListFlags": "int",
@ -41,6 +41,8 @@
"ImGuiKey": "int",
"ImGuiKeyModFlags": "int",
"ImGuiListClipper": "struct ImGuiListClipper",
"ImGuiMemAllocFunc": "void*(*)(size_t sz,void* user_data);",
"ImGuiMemFreeFunc": "void(*)(void* ptr,void* user_data);",
"ImGuiMouseButton": "int",
"ImGuiMouseCursor": "int",
"ImGuiNavInput": "int",

View File

@ -4,8 +4,8 @@ defs["ImDrawCallback"] = "void(*)(const ImDrawList* parent_list,const ImDrawCmd*
defs["ImDrawChannel"] = "struct ImDrawChannel"
defs["ImDrawCmd"] = "struct ImDrawCmd"
defs["ImDrawCmdHeader"] = "struct ImDrawCmdHeader"
defs["ImDrawCornerFlags"] = "int"
defs["ImDrawData"] = "struct ImDrawData"
defs["ImDrawFlags"] = "int"
defs["ImDrawIdx"] = "unsigned short"
defs["ImDrawList"] = "struct ImDrawList"
defs["ImDrawListFlags"] = "int"
@ -41,6 +41,8 @@ defs["ImGuiInputTextFlags"] = "int"
defs["ImGuiKey"] = "int"
defs["ImGuiKeyModFlags"] = "int"
defs["ImGuiListClipper"] = "struct ImGuiListClipper"
defs["ImGuiMemAllocFunc"] = "void*(*)(size_t sz,void* user_data);"
defs["ImGuiMemFreeFunc"] = "void(*)(void* ptr,void* user_data);"
defs["ImGuiMouseButton"] = "int"
defs["ImGuiMouseCursor"] = "int"
defs["ImGuiNavInput"] = "int"

View File

@ -24,19 +24,21 @@ use crate::render::renderer::TextureId;
use std::marker::PhantomData;
bitflags!(
/// Flags for indictating which corner of a rectangle should be rounded
/// Options for some DrawList operations.
#[repr(C)]
pub struct CornerFlags: u32 {
const NONE = sys::ImDrawCornerFlags_None;
const TOP_LEFT = sys::ImDrawCornerFlags_TopLeft;
const TOP_RIGHT = sys::ImDrawCornerFlags_TopRight;
const BOT_LEFT = sys::ImDrawCornerFlags_BotLeft;
const BOT_RIGHT = sys::ImDrawCornerFlags_BotRight;
const TOP = sys::ImDrawCornerFlags_Top;
const BOT = sys::ImDrawCornerFlags_Bot;
const LEFT = sys::ImDrawCornerFlags_Left;
const RIGHT = sys::ImDrawCornerFlags_Right;
const ALL = sys::ImDrawCornerFlags_All;
pub struct DrawFlags: u32 {
const NONE = sys::ImDrawFlags_None;
const CLOSED = sys::ImDrawFlags_Closed;
const ROUND_CORNERS_TOP_LEFT = sys::ImDrawFlags_RoundCornersTopLeft;
const ROUND_CORNERS_TOP_RIGHT = sys::ImDrawFlags_RoundCornersTopRight;
const ROUND_CORNERS_BOT_LEFT = sys::ImDrawFlags_RoundCornersBottomLeft;
const ROUND_CORNERS_BOT_RIGHT = sys::ImDrawFlags_RoundCornersBottomRight;
const ROUND_CORNERS_TOP = sys::ImDrawFlags_RoundCornersTop;
const ROUND_CORNERS_BOT = sys::ImDrawFlags_RoundCornersBottom;
const ROUND_CORNERS_LEFT = sys::ImDrawFlags_RoundCornersLeft;
const ROUND_CORNERS_RIGHT = sys::ImDrawFlags_RoundCornersRight;
const ROUND_CORNERS_ALL = sys::ImDrawFlags_RoundCornersAll;
const ROUND_CORNERS_NONE = sys::ImDrawFlags_RoundCornersNone;
}
);
@ -419,7 +421,7 @@ pub struct Rect<'ui> {
p2: [f32; 2],
color: ImColor32,
rounding: f32,
flags: CornerFlags,
flags: DrawFlags,
thickness: f32,
filled: bool,
draw_list: &'ui DrawListMut<'ui>,
@ -435,7 +437,7 @@ impl<'ui> Rect<'ui> {
p2,
color: c.into(),
rounding: 0.0,
flags: CornerFlags::ALL,
flags: DrawFlags::ROUND_CORNERS_ALL,
thickness: 1.0,
filled: false,
draw_list,
@ -451,25 +453,25 @@ impl<'ui> Rect<'ui> {
/// Set flag to indicate if rectangle's top-left corner will be rounded.
pub fn round_top_left(mut self, value: bool) -> Self {
self.flags.set(CornerFlags::TOP_LEFT, value);
self.flags.set(DrawFlags::ROUND_CORNERS_TOP_LEFT, value);
self
}
/// Set flag to indicate if rectangle's top-right corner will be rounded.
pub fn round_top_right(mut self, value: bool) -> Self {
self.flags.set(CornerFlags::TOP_RIGHT, value);
self.flags.set(DrawFlags::ROUND_CORNERS_TOP_RIGHT, value);
self
}
/// Set flag to indicate if rectangle's bottom-left corner will be rounded.
pub fn round_bot_left(mut self, value: bool) -> Self {
self.flags.set(CornerFlags::BOT_LEFT, value);
self.flags.set(DrawFlags::ROUND_CORNERS_BOT_LEFT, value);
self
}
/// Set flag to indicate if rectangle's bottom-right corner will be rounded.
pub fn round_bot_right(mut self, value: bool) -> Self {
self.flags.set(CornerFlags::BOT_RIGHT, value);
self.flags.set(DrawFlags::ROUND_CORNERS_BOT_RIGHT, value);
self
}
@ -894,7 +896,7 @@ pub struct ImageRounded<'ui> {
uv_max: [f32; 2],
col: ImColor32,
rounding: f32,
rounding_corners: CornerFlags,
draw_flags: DrawFlags,
draw_list: &'ui DrawListMut<'ui>,
}
@ -915,7 +917,7 @@ impl<'ui> ImageRounded<'ui> {
uv_max: [1.0, 1.0],
col: [1.0, 1.0, 1.0, 1.0].into(),
rounding,
rounding_corners: CornerFlags::ALL,
draw_flags: DrawFlags::ROUND_CORNERS_ALL,
draw_list,
}
}
@ -942,31 +944,35 @@ impl<'ui> ImageRounded<'ui> {
/// Set flag to indicate rounding on all all corners.
pub fn round_all(mut self, value: bool) -> Self {
self.rounding_corners.set(CornerFlags::ALL, value);
self.draw_flags.set(DrawFlags::ROUND_CORNERS_ALL, value);
self
}
/// Set flag to indicate if image's top-left corner will be rounded.
pub fn round_top_left(mut self, value: bool) -> Self {
self.rounding_corners.set(CornerFlags::TOP_LEFT, value);
self.draw_flags
.set(DrawFlags::ROUND_CORNERS_TOP_LEFT, value);
self
}
/// Set flag to indicate if image's top-right corner will be rounded.
pub fn round_top_right(mut self, value: bool) -> Self {
self.rounding_corners.set(CornerFlags::TOP_RIGHT, value);
self.draw_flags
.set(DrawFlags::ROUND_CORNERS_TOP_RIGHT, value);
self
}
/// Set flag to indicate if image's bottom-left corner will be rounded.
pub fn round_bot_left(mut self, value: bool) -> Self {
self.rounding_corners.set(CornerFlags::BOT_LEFT, value);
self.draw_flags
.set(DrawFlags::ROUND_CORNERS_BOT_LEFT, value);
self
}
/// Set flag to indicate if image's bottom-right corner will be rounded.
pub fn round_bot_right(mut self, value: bool) -> Self {
self.rounding_corners.set(CornerFlags::BOT_RIGHT, value);
self.draw_flags
.set(DrawFlags::ROUND_CORNERS_BOT_RIGHT, value);
self
}
@ -984,7 +990,7 @@ impl<'ui> ImageRounded<'ui> {
self.uv_max.into(),
self.col.into(),
self.rounding,
self.rounding_corners.bits() as i32,
self.draw_flags.bits() as i32,
);
}
}

View File

@ -32,7 +32,6 @@ pub struct FontId(pub(crate) *const Font);
/// A font atlas that builds a single texture
#[repr(C)]
pub struct FontAtlas {
locked: bool,
/// Configuration flags
pub flags: FontAtlasFlags,
/// Texture identifier
@ -48,6 +47,8 @@ pub struct FontAtlas {
/// this to 0.
pub tex_glyph_padding: i32,
locked: bool,
tex_pixels_use_colors: bool,
tex_pixels_alpha8: *mut u8,
tex_pixels_rgba32: *mut u32,
tex_width: i32,
@ -263,6 +264,7 @@ fn test_font_atlas_memory_layout() {
assert_field_offset!(tex_id, TexID);
assert_field_offset!(tex_desired_width, TexDesiredWidth);
assert_field_offset!(tex_glyph_padding, TexGlyphPadding);
assert_field_offset!(tex_pixels_use_colors, TexPixelsUseColors);
assert_field_offset!(tex_pixels_alpha8, TexPixelsAlpha8);
assert_field_offset!(tex_pixels_rgba32, TexPixelsRGBA32);
assert_field_offset!(tex_width, TexWidth);

View File

@ -37,8 +37,8 @@ bitflags!(
const CTRL_ENTER_FOR_NEW_LINE = sys::ImGuiInputTextFlags_CtrlEnterForNewLine;
/// Disable following the cursor horizontally
const NO_HORIZONTAL_SCROLL = sys::ImGuiInputTextFlags_NoHorizontalScroll;
/// Insert mode
const ALWAYS_INSERT_MODE = sys::ImGuiInputTextFlags_AlwaysInsertMode;
/// Always overwrite (aka "insert mode").
const ALWAYS_OVERWRITE = sys::ImGuiInputTextFlags_AlwaysOverwrite;
/// Read-only mode
const READ_ONLY = sys::ImGuiInputTextFlags_ReadOnly;
/// Password mode, display all characters as '*'
@ -138,9 +138,16 @@ macro_rules! impl_text_flags {
self
}
/// Note: this is equivalent to `always_overwrite`
#[inline]
pub fn always_insert_mode(mut self, value: bool) -> Self {
self.flags.set(InputTextFlags::ALWAYS_INSERT_MODE, value);
pub fn always_insert_mode(self, value: bool) -> Self {
self.always_overwrite(value)
}
#[inline]
#[allow(deprecated)]
pub fn always_overwrite(mut self, value: bool) -> Self {
self.flags.set(InputTextFlags::ALWAYS_OVERWRITE, value);
self
}

View File

@ -98,7 +98,7 @@ pub fn dear_imgui_version() -> &'static str {
#[test]
fn test_version() {
// TODO: what's the point of this test?
assert_eq!(dear_imgui_version(), "1.81");
assert_eq!(dear_imgui_version(), "1.82");
}
impl Context {

View File

@ -144,7 +144,7 @@ pub struct Style {
/// explicit segment count specified.
///
/// Decrease for higher quality but more geometry.
pub circle_segment_max_error: f32,
pub circle_tesselation_max_error: f32,
/// Style colors.
pub colors: [[f32; 4]; StyleColor::COUNT],
}
@ -492,7 +492,7 @@ fn test_style_memory_layout() {
assert_field_offset!(anti_aliased_lines_use_tex, AntiAliasedLinesUseTex);
assert_field_offset!(anti_aliased_fill, AntiAliasedFill);
assert_field_offset!(curve_tessellation_tol, CurveTessellationTol);
assert_field_offset!(circle_segment_max_error, CircleSegmentMaxError);
assert_field_offset!(circle_tesselation_max_error, CircleTessellationMaxError);
assert_field_offset!(colors, Colors);
}