mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-30 11:01:42 +00:00
core window doesn't have reference to glfw window anymore!
This commit is contained in:
@@ -184,6 +184,15 @@ pub const Window = struct {
|
||||
self.window.setShouldClose(true);
|
||||
}
|
||||
|
||||
/// Returns true if the window is flagged to close.
|
||||
pub fn shouldClose(self: *const Window) bool {
|
||||
return self.window.shouldClose();
|
||||
}
|
||||
|
||||
pub fn setTitle(self: *Window, slice: [:0]const u8) !void {
|
||||
try self.window.setTitle(slice.ptr);
|
||||
}
|
||||
|
||||
/// The cursor position from glfw directly is in screen coordinates but
|
||||
/// all our interface works in pixels.
|
||||
fn cursorPosToPixels(self: *const Window, pos: glfw.Window.CursorPos) !glfw.Window.CursorPos {
|
||||
|
||||
Reference in New Issue
Block a user