glfw: Publicize Window.CursorPos, Window.Size, Window.Pos, and Window.FrameSize
This commit is contained in:
parent
2214e91ad5
commit
eef166e90b
1 changed files with 4 additions and 4 deletions
|
|
@ -510,7 +510,7 @@ pub inline fn setIcon(self: Window, allocator: *mem.Allocator, images: ?[]Image)
|
||||||
try getError();
|
try getError();
|
||||||
}
|
}
|
||||||
|
|
||||||
const Pos = struct {
|
pub const Pos = struct {
|
||||||
x: usize,
|
x: usize,
|
||||||
y: usize,
|
y: usize,
|
||||||
};
|
};
|
||||||
|
|
@ -561,7 +561,7 @@ pub inline fn setPos(self: Window, pos: Pos) Error!void {
|
||||||
try getError();
|
try getError();
|
||||||
}
|
}
|
||||||
|
|
||||||
const Size = struct {
|
pub const Size = struct {
|
||||||
width: usize,
|
width: usize,
|
||||||
height: usize,
|
height: usize,
|
||||||
};
|
};
|
||||||
|
|
@ -693,7 +693,7 @@ pub inline fn getFramebufferSize(self: Window) Error!Size {
|
||||||
return Size{ .width = @intCast(usize, width), .height = @intCast(usize, height) };
|
return Size{ .width = @intCast(usize, width), .height = @intCast(usize, height) };
|
||||||
}
|
}
|
||||||
|
|
||||||
const FrameSize = struct {
|
pub const FrameSize = struct {
|
||||||
left: usize,
|
left: usize,
|
||||||
top: usize,
|
top: usize,
|
||||||
right: usize,
|
right: usize,
|
||||||
|
|
@ -1709,7 +1709,7 @@ pub inline fn getMouseButton(self: Window, button: MouseButton) Error!Action {
|
||||||
return @intToEnum(Action, state);
|
return @intToEnum(Action, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
const CursorPos = struct {
|
pub const CursorPos = struct {
|
||||||
xpos: f64,
|
xpos: f64,
|
||||||
ypos: f64,
|
ypos: f64,
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue