bsnes/hiro/windows/widget/hex-edit.hpp

30 lines
685 B
C++

#if defined(Hiro_HexEdit)
namespace hiro {
struct pHexEdit : pWidget {
Declare(HexEdit, Widget)
auto setAddress(unsigned address) -> void;
auto setBackgroundColor(Color color) -> void;
auto setColumns(unsigned columns) -> void;
auto setForegroundColor(Color color) -> void;
auto setLength(unsigned length) -> void;
auto setRows(unsigned rows) -> void;
auto update() -> void;
auto keyPress(unsigned key) -> bool;
auto rows() -> signed;
auto rowsScrollable() -> signed;
auto scrollPosition() -> signed;
auto scrollTo(signed position) -> void;
WindowProc windowProc = nullptr;
HWND scrollBar = nullptr;
HBRUSH backgroundBrush = nullptr;
};
}
#endif