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

30 lines
683 B
C++

#if defined(Hiro_HexEdit)
namespace hiro {
struct pHexEdit : pWidget {
Declare(HexEdit, Widget)
auto setBackgroundColor(Color color) -> void;
auto setColumns(unsigned columns) -> void;
auto setForegroundColor(Color color) -> void;
auto setLength(unsigned length) -> void;
auto setOffset(unsigned offset) -> 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