pub struct HexViewResponse {
pub hovered_offset: Option<ByteOffset>,
pub error: Option<Error>,
pub scroll_offset: f32,
pub viewport_height: f32,
pub visible_range: Option<ByteRange>,
pub cursor_offset: Option<ByteOffset>,
pub layout: Option<HexViewLayout>,
}Fields§
§hovered_offset: Option<ByteOffset>§error: Option<Error>§scroll_offset: f32Scroll offset (in content pixels) at the end of this frame.
viewport_height: f32Visible viewport height (in pixels).
visible_range: Option<ByteRange>Byte range actually rendered this frame (after clipping). Useful for consumers that want to paint overlays only over visible bytes.
cursor_offset: Option<ByteOffset>Cursor byte offset from the current selection. Mirrors
selection.cursor. None when no selection is set.
layout: Option<HexViewLayout>Geometry info for the just-rendered frame. Lets consumers compute the screen rect of any visible byte (useful for painting overlays from outside the widget).
Trait Implementations§
Source§impl Default for HexViewResponse
impl Default for HexViewResponse
Source§fn default() -> HexViewResponse
fn default() -> HexViewResponse
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HexViewResponse
impl !RefUnwindSafe for HexViewResponse
impl Send for HexViewResponse
impl Sync for HexViewResponse
impl Unpin for HexViewResponse
impl UnsafeUnpin for HexViewResponse
impl !UnwindSafe for HexViewResponse
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