phoenix::HexEdit

A text box control with hex editing functionality.

This is arguably the most specialized control in phoenix, but it was one that I personally needed for two of my projects.

struct HexEdit : Widget {
  function<uint8_t (unsigned addr)> onRead;
  function<void (unsigned addr, uint8_t data)> onWrite;

  void setColumns(unsigned columns);
  void setLength(unsigned length);
  void setOffset(unsigned offset);
  void setRows(unsigned rows);
  void update();
};