File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -1801,10 +1801,10 @@ pub fn comboFromEnum(
1801
1801
1802
1802
var item : i32 =
1803
1803
switch (@typeInfo (EnumType )) {
1804
- .optional = > if (current_item .* ) | tag | field_name_to_index .get (@tagName (tag )) orelse -1 else -1 ,
1805
- .@"enum" = > field_name_to_index .get (@tagName (current_item .* )) orelse -1 ,
1806
- else = > unreachable ,
1807
- };
1804
+ .optional = > if (current_item .* ) | tag | field_name_to_index .get (@tagName (tag )) orelse -1 else -1 ,
1805
+ .@"enum" = > field_name_to_index .get (@tagName (current_item .* )) orelse -1 ,
1806
+ else = > unreachable ,
1807
+ };
1808
1808
1809
1809
const result = combo (label , .{
1810
1810
.items_separated_by_zeros = item_names ,
@@ -3697,6 +3697,12 @@ pub const Viewport = *opaque {
3697
3697
};
3698
3698
pub const getMainViewport = zguiGetMainViewport ;
3699
3699
extern fn zguiGetMainViewport () Viewport ;
3700
+
3701
+ pub const updatePlatformWindows = zguiUpdatePlatformWindows ;
3702
+ extern fn zguiUpdatePlatformWindows () void ;
3703
+
3704
+ pub const renderPlatformWindowsDefault = zguiRenderPlatformWindowsDefault ;
3705
+ extern fn zguiRenderPlatformWindowsDefault () void ;
3700
3706
//--------------------------------------------------------------------------------------------------
3701
3707
//
3702
3708
// Mouse Input
Original file line number Diff line number Diff line change @@ -2573,6 +2573,14 @@ extern "C"
2573
2573
p[1 ] = sz.y ;
2574
2574
}
2575
2575
2576
+ ZGUI_API void zguiUpdatePlatformWindows () {
2577
+ ImGui::UpdatePlatformWindows ();
2578
+ }
2579
+
2580
+ ZGUI_API void zguiRenderPlatformWindowsDefault () {
2581
+ ImGui::RenderPlatformWindowsDefault ();
2582
+ }
2583
+
2576
2584
// --------------------------------------------------------------------------------------------------
2577
2585
//
2578
2586
// Docking
You can’t perform that action at this time.
0 commit comments