Skip to documentation
SLOP

tiny.windowing.Surface

Reference tiny.windowing Surface

Defined in surface.

API (6)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callssurfaceSurface
Static calls · unresolved targets: unknown · external targets: unknown.

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

Definitions3
Public names6
Members4
Version26.7.0
Revisiondaab053ee433