@@ -1281,7 +1281,7 @@ pub const max_iconimages = 8;
1281
1281
/// The type of event that's passed to the event handler callback
1282
1282
/// in the sapp_event.type field. These are not just "traditional"
1283
1283
/// input events, but also notify the application about state changes
1284
- /// or other user-invoked actions
1284
+ /// or other user-invoked actions.
1285
1285
pub const EventType = enum (i32 ) {
1286
1286
INVALID ,
1287
1287
KEY_DOWN ,
@@ -1315,7 +1315,7 @@ pub const EventType = enum(i32) {
1315
1315
/// The 'virtual keycode' of a KEY_DOWN or KEY_UP event in the
1316
1316
/// struct field sapp_event.key_code.
1317
1317
///
1318
- /// Note that the keycode values are identical with GLFW
1318
+ /// Note that the keycode values are identical with GLFW.
1319
1319
pub const Keycode = enum (i32 ) {
1320
1320
INVALID = 0 ,
1321
1321
SPACE = 32 ,
@@ -1447,7 +1447,7 @@ pub const Keycode = enum(i32) {
1447
1447
/// NOTE: the values must remain in sync with the corresponding
1448
1448
/// Android SDK type, so don't change those.
1449
1449
///
1450
- /// See https://developer.android.com/reference/android/view/MotionEvent#TOOL_TYPE_UNKNOW
1450
+ /// See https://developer.android.com/reference/android/view/MotionEvent#TOOL_TYPE_UNKNOWN
1451
1451
pub const AndroidTooltype = enum (i32 ) {
1452
1452
UNKNOWN = 0 ,
1453
1453
FINGER = 1 ,
@@ -1461,7 +1461,7 @@ pub const AndroidTooltype = enum(i32) {
1461
1461
/// TOUCHES_MOVED, TOUCHES_ENDED).
1462
1462
///
1463
1463
/// Touch points are stored in the nested array sapp_event.touches[],
1464
- /// and the number of touches is stored in sapp_event.num_touches
1464
+ /// and the number of touches is stored in sapp_event.num_touches.
1465
1465
pub const Touchpoint = extern struct {
1466
1466
identifier : usize = 0 ,
1467
1467
pos_x : f32 = 0.0 ,
@@ -1473,7 +1473,7 @@ pub const Touchpoint = extern struct {
1473
1473
/// sapp_mousebutton
1474
1474
///
1475
1475
/// The currently pressed mouse button in the events MOUSE_DOWN
1476
- /// and MOUSE_UP, stored in the struct field sapp_event.mouse_button
1476
+ /// and MOUSE_UP, stored in the struct field sapp_event.mouse_button.
1477
1477
pub const Mousebutton = enum (i32 ) {
1478
1478
LEFT = 0 ,
1479
1479
RIGHT = 1 ,
@@ -1482,7 +1482,7 @@ pub const Mousebutton = enum(i32) {
1482
1482
};
1483
1483
1484
1484
/// These are currently pressed modifier keys (and mouse buttons) which are
1485
- /// passed in the event struct field sapp_event.modifiers
1485
+ /// passed in the event struct field sapp_event.modifiers.
1486
1486
pub const modifier_shift = 1 ;
1487
1487
pub const modifier_ctrl = 2 ;
1488
1488
pub const modifier_alt = 4 ;
@@ -1497,7 +1497,7 @@ pub const modifier_mmb = 1024;
1497
1497
/// user callback function. Note that it depends on the event
1498
1498
/// type what struct fields actually contain useful values, so you
1499
1499
/// should first check the event type before reading other struct
1500
- /// fields
1500
+ /// fields.
1501
1501
pub const Event = extern struct {
1502
1502
frame_count : u64 = 0 ,
1503
1503
type : EventType = .INVALID ,
@@ -1523,7 +1523,7 @@ pub const Event = extern struct {
1523
1523
/// sg_range
1524
1524
///
1525
1525
/// A general pointer/size-pair struct and constructor macros for passing binary blobs
1526
- /// into sokol_app.h
1526
+ /// into sokol_app.h.
1527
1527
pub const Range = extern struct {
1528
1528
ptr : ? * const anyopaque = null ,
1529
1529
size : usize = 0 ,
@@ -1536,7 +1536,7 @@ pub const Range = extern struct {
1536
1536
///
1537
1537
/// Note that the actual image pixel format depends on the use case:
1538
1538
///
1539
- /// - window icon pixels are RGBA
1539
+ /// - window icon pixels are RGBA8
1540
1540
pub const ImageDesc = extern struct {
1541
1541
width : i32 = 0 ,
1542
1542
height : i32 = 0 ,
@@ -1558,7 +1558,7 @@ pub const ImageDesc = extern struct {
1558
1558
/// images[] array.
1559
1559
///
1560
1560
/// If both the sokol_default flag is set to true, any image candidates
1561
- /// will be ignored and the sokol_app.h default icon will be set
1561
+ /// will be ignored and the sokol_app.h default icon will be set.
1562
1562
pub const IconDesc = extern struct {
1563
1563
sokol_default : bool = false ,
1564
1564
images : [8 ]ImageDesc = [_ ]ImageDesc {.{}} ** 8 ,
@@ -1569,7 +1569,7 @@ pub const IconDesc = extern struct {
1569
1569
/// Used in sapp_desc to provide custom memory-alloc and -free functions
1570
1570
/// to sokol_app.h. If memory management should be overridden, both the
1571
1571
/// alloc_fn and free_fn function must be provided (e.g. it's not valid to
1572
- /// override one function but not the other)
1572
+ /// override one function but not the other).
1573
1573
pub const Allocator = extern struct {
1574
1574
alloc_fn : ? * const fn (usize , ? * anyopaque ) callconv (.C ) ? * anyopaque = null ,
1575
1575
free_fn : ? * const fn (? * anyopaque , ? * anyopaque ) callconv (.C ) void = null ,
@@ -1684,14 +1684,14 @@ pub const LogItem = enum(i32) {
1684
1684
/// without logging function, sokol-app will be completely silent, e.g. it will
1685
1685
/// not report errors or warnings. For maximum error verbosity, compile in
1686
1686
/// debug mode (e.g. NDEBUG *not* defined) and install a logger (for instance
1687
- /// the standard logging function from sokol_log.h)
1687
+ /// the standard logging function from sokol_log.h).
1688
1688
pub const Logger = extern struct {
1689
1689
func : ? * const fn ([* c ]const u8 , u32 , u32 , [* c ]const u8 , u32 , [* c ]const u8 , ? * anyopaque ) callconv (.C ) void = null ,
1690
1690
user_data : ? * anyopaque = null ,
1691
1691
};
1692
1692
1693
1693
/// sokol-app initialization options, used as return value of sokol_main()
1694
- /// or sapp_run() argument
1694
+ /// or sapp_run() argument.
1695
1695
pub const Desc = extern struct {
1696
1696
init_cb : ? * const fn () callconv (.C ) void = null ,
1697
1697
frame_cb : ? * const fn () callconv (.C ) void = null ,
@@ -1740,7 +1740,7 @@ pub const Desc = extern struct {
1740
1740
};
1741
1741
1742
1742
/// HTML5 specific: request and response structs for
1743
- /// asynchronously loading dropped-file content
1743
+ /// asynchronously loading dropped-file content.
1744
1744
pub const Html5FetchError = enum (i32 ) {
1745
1745
FETCH_ERROR_NO_ERROR ,
1746
1746
FETCH_ERROR_BUFFER_TOO_SMALL ,
@@ -1765,7 +1765,7 @@ pub const Html5FetchRequest = extern struct {
1765
1765
1766
1766
/// sapp_mouse_cursor
1767
1767
///
1768
- /// Predefined cursor image definitions, set with sapp_set_mouse_cursor(sapp_mouse_cursor cursor
1768
+ /// Predefined cursor image definitions, set with sapp_set_mouse_cursor(sapp_mouse_cursor cursor)
1769
1769
pub const MouseCursor = enum (i32 ) {
1770
1770
DEFAULT = 0 ,
1771
1771
ARROW ,
0 commit comments