apprt: stubs for mouseOverLink

This commit is contained in:
Mitchell Hashimoto
2024-07-06 10:29:23 -07:00
parent 8ecc84b943
commit 36648ae397
2 changed files with 12 additions and 0 deletions

View File

@ -649,6 +649,12 @@ pub const Surface = struct {
self.cursor = new; self.cursor = new;
} }
pub fn mouseOverLink(self: *Surface, uri: ?[]const u8) void {
// We don't do anything in GLFW.
_ = self;
_ = uri;
}
/// Set the visibility of the mouse cursor. /// Set the visibility of the mouse cursor.
pub fn setMouseVisibility(self: *Surface, visible: bool) void { pub fn setMouseVisibility(self: *Surface, visible: bool) void {
self.window.setInputModeCursor(if (visible) .normal else .hidden); self.window.setInputModeCursor(if (visible) .normal else .hidden);

View File

@ -879,6 +879,12 @@ pub fn setMouseVisibility(self: *Surface, visible: bool) void {
c.gtk_widget_set_cursor(@ptrCast(self.gl_area), self.app.cursor_none); c.gtk_widget_set_cursor(@ptrCast(self.gl_area), self.app.cursor_none);
} }
pub fn mouseOverLink(self: *Surface, uri: ?[]const u8) void {
// TODO: GTK
_ = self;
_ = uri;
}
pub fn clipboardRequest( pub fn clipboardRequest(
self: *Surface, self: *Surface,
clipboard_type: apprt.Clipboard, clipboard_type: apprt.Clipboard,