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)
SourceInstance methods
address_fg
Sourceaddress_fg=(address_fg : Color)
Sourceascii_fg
Sourceascii_fg=(ascii_fg : Color)
Sourcebase_address
Sourcebytes
Sourcebytes_per_row
SourceDefault key event handler. Override in subclasses if not using @default_input_proc.
Default mouse event handler. Override in subclasses if not using @default_input_proc.
non_zero_fg
Sourcenon_zero_fg=(non_zero_fg : Color)
Sourcescroll_offset
Sourceselected_bg
Sourceselected_bg=(selected_bg : Color)
Sourceselected_byte
Sourceselected_fg
Sourceselected_fg=(selected_fg : Color)
Sourcetotal_rows
Sourcezero_fg
Sourcezero_fg=(zero_fg : Color)
Source