mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-24 15:12:23 +01:00
byuu says: Finally!! Compilation works once again on Windows. However, it's pretty buggy. Modality isn't really working right, you can still poke at other windows, but when you select ListView items, they redraw as empty boxes (need to process WM_DRAWITEM before checking modality.) The program crashes when you close it (probably a ruby driver's term() function, that's what it usually is.) The Layout::setEnabled(false) call isn't working right, so you get that annoying chiming sound and cursor movement when mapping keyboard keys to game inputs. The column sizing seems off a bit on first display for the Hotkeys tab. And probably lots more.
24 lines
486 B
C++
24 lines
486 B
C++
#if defined(Hiro_TextEdit)
|
|
|
|
namespace hiro {
|
|
|
|
struct pTextEdit : pWidget {
|
|
Declare(TextEdit, Widget)
|
|
|
|
auto setBackgroundColor(Color color) -> void;
|
|
auto setCursorPosition(unsigned position) -> void;
|
|
auto setEditable(bool editable) -> void;
|
|
auto setForegroundColor(Color color) -> void;
|
|
auto setText(string text) -> void;
|
|
auto setWordWrap(bool wordWrap) -> void;
|
|
auto text() const -> string;
|
|
|
|
auto onChange() -> void;
|
|
|
|
HBRUSH backgroundBrush = nullptr;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|