diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-15 13:46:50 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-09-15 17:24:42 -0300 |
| commit | 6d7b506c8a380e4dd97f337590ca079d810a360a (patch) | |
| tree | 71075c8c4383df25c6ecd5140ef75063a897b444 /src/web.zig | |
| parent | 13d0d107a06d7ac5fb5f8e86c747e54603f51b4e (diff) | |
| download | pardes-6d7b506c8a380e4dd97f337590ca079d810a360a.tar.gz pardes-6d7b506c8a380e4dd97f337590ca079d810a360a.zip | |
Follow embedded PDF links through Look
Diffstat (limited to 'src/web.zig')
| -rw-r--r-- | src/web.zig | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/web.zig b/src/web.zig index bceaaeeb..a1f3bad8 100644 --- a/src/web.zig +++ b/src/web.zig @@ -304,6 +304,11 @@ export fn pardes_cursor_x() i32 { return if (s.core.surface.cursor) |cursor| cursor.x else -1; } +export fn pardes_pointer_shape() u32 { + const s = &(state orelse return 0); + return @intFromEnum(s.core.surface.pointer_shape); +} + export fn pardes_cursor_y() i32 { const s = &(state orelse return -1); return if (s.core.surface.cursor) |cursor| cursor.y else -1; |
