tiny.windowing.Surface
Defined in surface.
API (6)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/windowing/src/surface.zig:24
zig
pub const Surface = union(Kind) { wayland: Wayland, x11: X11, cocoa: Cocoa, unsupported: Unsupported, pub fn kind(self: Surface) Kind { return switch (self) { .wayland => .wayland, .x11 => .x11, .cocoa => .cocoa, .unsupported => .unsupported, }; } pub fn extent(self: Surface) Extent { return switch (self) { .wayland => |value| value.extent, .x11 => |value| value.extent, .cocoa => |value| value.extent, .unsupported => |value| value.extent, }; }};Source: lib/windowing/src/root.zig:100
zig
pub const Surface = surface_module.Surface;Audit
| Definitions | 3 |
|---|---|
| Public names | 6 |
| Members | 4 |
| Version | 26.7.0 |
| Revision | daab053ee433 |