pub struct EncoderSize {
pub screen_width: u32,
pub screen_height: u32,
pub cell_width: u32,
pub cell_height: u32,
pub padding_top: u32,
pub padding_bottom: u32,
pub padding_right: u32,
pub padding_left: u32,
}Expand description
Mouse encoder size and geometry context.
This describes the rendered terminal geometry used to convert surface-space positions into encoded coordinates.
Fields§
§screen_width: u32Full screen width in pixels.
screen_height: u32Full screen height in pixels.
cell_width: u32Cell width in pixels. Must be non-zero.
cell_height: u32Cell height in pixels. Must be non-zero.
padding_top: u32Top padding in pixels.
padding_bottom: u32Bottom padding in pixels.
padding_right: u32Right padding in pixels.
padding_left: u32Left padding in pixels.
Trait Implementations§
Source§impl Clone for EncoderSize
impl Clone for EncoderSize
Source§fn clone(&self) -> EncoderSize
fn clone(&self) -> EncoderSize
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncoderSize
impl Debug for EncoderSize
Source§impl From<EncoderSize> for GhosttyMouseEncoderSize
impl From<EncoderSize> for GhosttyMouseEncoderSize
Source§fn from(value: EncoderSize) -> Self
fn from(value: EncoderSize) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EncoderSize
impl PartialEq for EncoderSize
impl Copy for EncoderSize
impl Eq for EncoderSize
impl StructuralPartialEq for EncoderSize
Auto Trait Implementations§
impl Freeze for EncoderSize
impl RefUnwindSafe for EncoderSize
impl Send for EncoderSize
impl Sync for EncoderSize
impl Unpin for EncoderSize
impl UnsafeUnpin for EncoderSize
impl UnwindSafe for EncoderSize
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more