@@ -206,6 +206,11 @@ pub const FontConfig = extern struct {
206
206
};
207
207
208
208
pub const io = struct {
209
+ pub fn addFontDefault (config : ? FontConfig ) Font {
210
+ return zguiIoAddFontDefault (if (config ) | c | & c else null );
211
+ }
212
+ extern fn zguiIoAddFontDefault (config : ? * const FontConfig ) Font ;
213
+
209
214
pub fn addFontFromFile (filename : [:0 ]const u8 , size_pixels : f32 ) Font {
210
215
return zguiIoAddFontFromFile (filename , size_pixels );
211
216
}
@@ -1317,6 +1322,19 @@ pub fn popStyleVar(args: struct {
1317
1322
extern fn zguiPopStyleVar (count : c_int ) void ;
1318
1323
1319
1324
//--------------------------------------------------------------------------------------------------
1325
+ pub const ItemFlag = enum (c_int ) {
1326
+ none = 0 ,
1327
+ no_tab_stop = 1 << 0 ,
1328
+ no_nav = 1 << 1 ,
1329
+ no_nav_default_focus = 1 << 2 ,
1330
+ button_repeat = 1 << 3 ,
1331
+ auto_close_popups = 1 << 4 ,
1332
+ allow_duplicate_id = 1 << 5 ,
1333
+ };
1334
+ /// `void pushItemFlag(item_flag: ItemFlag, enabled: bool) void`
1335
+ pub const pushItemFlag = zguiPushItemFlag ;
1336
+ /// `void popItemFlag() void`
1337
+ pub const popItemFlag = zguiPopItemFlag ;
1320
1338
/// `void pushItemWidth(item_width: f32) void`
1321
1339
pub const pushItemWidth = zguiPushItemWidth ;
1322
1340
/// `void popItemWidth() void`
@@ -1325,6 +1343,8 @@ pub const popItemWidth = zguiPopItemWidth;
1325
1343
pub const setNextItemWidth = zguiSetNextItemWidth ;
1326
1344
/// `void setItemDefaultFocus() void`
1327
1345
pub const setItemDefaultFocus = zguiSetItemDefaultFocus ;
1346
+ extern fn zguiPushItemFlag (item_flag : ItemFlag , enabled : bool ) void ;
1347
+ extern fn zguiPopItemFlag () void ;
1328
1348
extern fn zguiPushItemWidth (item_width : f32 ) void ;
1329
1349
extern fn zguiPopItemWidth () void ;
1330
1350
extern fn zguiSetNextItemWidth (item_width : f32 ) void ;
0 commit comments