#[repr(C)]pub struct RenderStateRowSelection {
pub size: usize,
pub start_x: u16,
pub end_x: u16,
}Expand description
Row-local selection range.
This struct uses the sized-struct ABI pattern. Initialize with GHOSTTY_INIT_SIZED(GhosttyRenderStateRowSelection) before querying GHOSTTY_RENDER_STATE_ROW_DATA_SELECTION.
Querying GHOSTTY_RENDER_STATE_ROW_DATA_SELECTION returns GHOSTTY_NO_VALUE if the current row does not intersect the current selection.
Fields§
§size: usizeSize of this struct in bytes. Must be set to sizeof(GhosttyRenderStateRowSelection).
start_x: u16Start column of the row-local selection range, inclusive.
end_x: u16End column of the row-local selection range, inclusive.
Trait Implementations§
Source§impl Clone for RenderStateRowSelection
impl Clone for RenderStateRowSelection
Source§fn clone(&self) -> RenderStateRowSelection
fn clone(&self) -> RenderStateRowSelection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RenderStateRowSelection
Source§impl Debug for RenderStateRowSelection
impl Debug for RenderStateRowSelection
Source§impl Default for RenderStateRowSelection
impl Default for RenderStateRowSelection
Source§fn default() -> RenderStateRowSelection
fn default() -> RenderStateRowSelection
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RenderStateRowSelection
impl RefUnwindSafe for RenderStateRowSelection
impl Send for RenderStateRowSelection
impl Sync for RenderStateRowSelection
impl Unpin for RenderStateRowSelection
impl UnsafeUnpin for RenderStateRowSelection
impl UnwindSafe for RenderStateRowSelection
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