mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
apprt: stubs for mouseOverLink
This commit is contained in:
@ -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);
|
||||||
|
@ -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,
|
||||||
|
Reference in New Issue
Block a user