ghostty/src/apprt/structs.zig
Mitchell Hashimoto 913131c8f1 rename more stuff
2023-02-24 07:58:29 -08:00

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,
};