mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-17 01:06:08 +03:00
26 lines
552 B
Zig
26 lines
552 B
Zig
/// ContentScale is the ratio between the current DPI and the platform's
|
|
/// default DPI. This is used to determine how much certain rendered elements
|
|
/// need to be scaled up or down.
|
|
pub const ContentScale = struct {
|
|
x: f32,
|
|
y: f32,
|
|
};
|
|
|
|
/// The size of the surface in pixels.
|
|
pub const SurfaceSize = struct {
|
|
width: u32,
|
|
height: u32,
|
|
};
|
|
|
|
/// The position of the cursor in pixels.
|
|
pub const CursorPos = struct {
|
|
x: f32,
|
|
y: f32,
|
|
};
|
|
|
|
/// Input Method Editor (IME) position.
|
|
pub const IMEPos = struct {
|
|
x: f64,
|
|
y: f64,
|
|
};
|