class
Opal::UI::HexViewer
- Opal::UI::HexViewer
- Opal::UI::Element
- Reference
- Object
Overview
Hexadecimal memory and binary dump component displaying addresses, hex byte pairs with mid-row division, and ASCII text representation.
Defined in:
opal/ui/components/hex_viewer.crConstructors
Instance Method Summary
- #address_fg : Color
- #address_fg=(address_fg : Color)
- #ascii_fg : Color
- #ascii_fg=(ascii_fg : Color)
- #base_address : UInt64
- #base_address=(base_address : UInt64)
- #bytes : Slice(UInt8)
- #bytes=(bytes : Slice(UInt8))
- #bytes_per_row : Int32
- #bytes_per_row=(bytes_per_row : Int32)
- #non_zero_fg : Color
- #non_zero_fg=(non_zero_fg : Color)
- #preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
- #render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
- #scroll_down(rows : Int32 = 1) : Nil
- #scroll_offset : Int32
- #scroll_offset=(scroll_offset : Int32)
- #scroll_up(rows : Int32 = 1) : Nil
- #selected_bg : Color
- #selected_bg=(selected_bg : Color)
- #selected_byte : Int32 | Nil
- #selected_byte=(selected_byte : Int32 | Nil)
- #selected_fg : Color
- #selected_fg=(selected_fg : Color)
- #total_rows : Int32
- #zero_fg : Color
- #zero_fg=(zero_fg : Color)
Instance methods inherited from class Opal::UI::Element
preferred_size(available_w : Int32, available_h : Int32) : Tuple(Int32, Int32)
preferred_size,
render(buffer : Buffer, x : Int32, y : Int32, width : Int32, height : Int32) : Nil
render
Constructor Detail
def self.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)
#