class

Opal::UI::HexViewer

Inherits Opal::UI::Control < Opal::UI::InputHookable < Opal::UI::Element < Opal::UI::Themable < Reference < Object

Hexadecimal memory and binary dump component displaying addresses, hex byte pairs with mid-row division, and ASCII text representation.

Constructors

new(bytes : Bytes | Slice(UInt8) | Array(UInt8), base_address : UInt64 = 0_u64, bytes_per_row : Int32 = 16, scroll_offset : Int32 = 0, selected_byte : Int32 | Nil = nil, address_fg : Color | Symbol | String = :dark_gray, zero_fg : Color | Symbol | String = :dark_gray, non_zero_fg : Color | Symbol | String = Color.none, ascii_fg : Color | Symbol | String = :cyan, selected_fg : Color | Symbol | String = :black, selected_bg : Color | Symbol | String = :yellow)
Source

Instance methods

address_fg
Source
address_fg=(address_fg : Color)
Source
ascii_fg
Source
ascii_fg=(ascii_fg : Color)
Source
base_address
Source
base_address=(base_address : UInt64)
Source
bytes
Source
bytes=(bytes : Slice(UInt8))
Source
bytes_per_row
Source
bytes_per_row=(bytes_per_row : Int32)
Source
handle_key(event : Terminal::KeyEvent) : Bool

Default key event handler. Override in subclasses if not using @default_input_proc.

Source
handle_mouse(event : Terminal::MouseEvent) : Bool

Default mouse event handler. Override in subclasses if not using @default_input_proc.

Source
non_zero_fg
Source
non_zero_fg=(non_zero_fg : Color)
Source
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
Source
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
Source
scroll_down(rows : Int32 = 1) : Nil
Source
scroll_offset
Source
scroll_offset=(scroll_offset : Int32)
Source
scroll_up(rows : Int32 = 1) : Nil
Source
selected_bg
Source
selected_bg=(selected_bg : Color)
Source
selected_byte
Source
selected_byte=(selected_byte : Int32 | Nil)
Source
selected_fg
Source
selected_fg=(selected_fg : Color)
Source
total_rows
Source
zero_fg
Source
zero_fg=(zero_fg : Color)
Source