mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-13 08:54:09 +02:00
Update to v094r24 release.
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.
This commit is contained in:
31
hiro/windows/object.hpp
Normal file
31
hiro/windows/object.hpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#if defined(Hiro_Object)
|
||||
|
||||
namespace hiro {
|
||||
|
||||
struct pObject {
|
||||
pObject(mObject& reference) : reference(reference) {}
|
||||
virtual ~pObject() = default;
|
||||
virtual auto construct() -> void;
|
||||
virtual auto destruct() -> void;
|
||||
virtual auto reconstruct() -> void;
|
||||
|
||||
virtual auto focused() const -> bool;
|
||||
virtual auto remove() -> void;
|
||||
virtual auto reset() -> void;
|
||||
virtual auto setEnabled(bool enabled) -> void;
|
||||
virtual auto setFocused() -> void;
|
||||
virtual auto setFont(const string& font) -> void;
|
||||
virtual auto setGroup(sGroup group) -> void;
|
||||
virtual auto setVisible(bool visible) -> void;
|
||||
|
||||
auto locked() const -> bool { return locks != 0; }
|
||||
auto lock() -> void { ++locks; }
|
||||
auto unlock() -> void { --locks; }
|
||||
|
||||
mObject& reference;
|
||||
signed locks = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user