2018-08-04 11:44:00 +00:00
|
|
|
#if defined(Hiro_Widget)
|
|
|
|
struct mWidget : mSizable {
|
|
|
|
Declare(Widget)
|
|
|
|
|
2019-07-07 09:44:09 +00:00
|
|
|
auto doDrop(vector<string> names) const -> void;
|
|
|
|
auto doMouseEnter() const -> void;
|
|
|
|
auto doMouseLeave() const -> void;
|
|
|
|
auto doMouseMove(Position position) const -> void;
|
|
|
|
auto doMousePress(Mouse::Button button) const -> void;
|
|
|
|
auto doMouseRelease(Mouse::Button button) const -> void;
|
|
|
|
auto droppable() const -> bool;
|
|
|
|
auto focusable() const -> bool;
|
|
|
|
auto mouseCursor() const -> MouseCursor;
|
|
|
|
auto onDrop(const function<void (vector<string>)>& callback = {}) -> type&;
|
|
|
|
auto onMouseEnter(const function<void ()>& callback = {}) -> type&;
|
|
|
|
auto onMouseLeave(const function<void ()>& callback = {}) -> type&;
|
|
|
|
auto onMouseMove(const function<void (Position position)>& callback = {}) -> type&;
|
|
|
|
auto onMousePress(const function<void (Mouse::Button)>& callback = {}) -> type&;
|
|
|
|
auto onMouseRelease(const function<void (Mouse::Button)>& callback = {}) -> type&;
|
2018-08-04 11:44:00 +00:00
|
|
|
auto remove() -> type& override;
|
2019-07-07 09:44:09 +00:00
|
|
|
auto setDroppable(bool droppable = true) -> type&;
|
|
|
|
auto setFocusable(bool focusable = true) -> type&;
|
|
|
|
auto setMouseCursor(const MouseCursor& mouseCursor = {}) -> type&;
|
Update to v106r57 release.
byuu says:
I've added tool tips to hiro for Windows, GTK, and Qt. I'm unsure how to
add them for Cocoa. I wasted am embarrassing ~14 hours implementing tool
tips from scratch on Windows, because the `TOOLTIPS_CLASS` widget just
absolutely refused to show up, no matter what I tried. As such, they're
not quite 100% native, but I would really appreciate any patch
submissions to help improve my implementation.
I added tool tips to all of the confusing settings in bsnes. And of
course, for those of you who don't like them, there's a configuration
file setting to turn them off globally.
I also improved Mega Drive handling of the Game Genie a bit, and
restructured the way the Settings class works in bsnes.
Starting now, I'm feature-freezing bsnes and higan. From this point
forward:
- polishing up and fixing bugs caused by the ruby/hiro changes
- adding DRC to XAudio2, and maybe exclusive mode to WGL
- correcting FEoEZ (English) to load and work again out of the box
Once that's done, a final beta of bsnes will go out, I'll fix any
reported bugs that I'm able to, and then v107 should be ready. This time
with higan being functional, but marked as v107 beta. v108 will restore
higan to production status again, alongside bsnes.
2018-08-08 08:46:58 +00:00
|
|
|
auto setToolTip(const string& toolTip = "") -> type&;
|
|
|
|
auto toolTip() const -> string;
|
2018-08-04 11:44:00 +00:00
|
|
|
|
|
|
|
//private:
|
|
|
|
struct State {
|
2019-07-07 09:44:09 +00:00
|
|
|
bool droppable = false;
|
|
|
|
bool focusable = false;
|
|
|
|
MouseCursor mouseCursor;
|
|
|
|
function<void (vector<string>)> onDrop;
|
|
|
|
function<void ()> onMouseEnter;
|
|
|
|
function<void ()> onMouseLeave;
|
|
|
|
function<void (Position)> onMouseMove;
|
|
|
|
function<void (Mouse::Button)> onMousePress;
|
|
|
|
function<void (Mouse::Button)> onMouseRelease;
|
Update to v106r57 release.
byuu says:
I've added tool tips to hiro for Windows, GTK, and Qt. I'm unsure how to
add them for Cocoa. I wasted am embarrassing ~14 hours implementing tool
tips from scratch on Windows, because the `TOOLTIPS_CLASS` widget just
absolutely refused to show up, no matter what I tried. As such, they're
not quite 100% native, but I would really appreciate any patch
submissions to help improve my implementation.
I added tool tips to all of the confusing settings in bsnes. And of
course, for those of you who don't like them, there's a configuration
file setting to turn them off globally.
I also improved Mega Drive handling of the Game Genie a bit, and
restructured the way the Settings class works in bsnes.
Starting now, I'm feature-freezing bsnes and higan. From this point
forward:
- polishing up and fixing bugs caused by the ruby/hiro changes
- adding DRC to XAudio2, and maybe exclusive mode to WGL
- correcting FEoEZ (English) to load and work again out of the box
Once that's done, a final beta of bsnes will go out, I'll fix any
reported bugs that I'm able to, and then v107 should be ready. This time
with higan being functional, but marked as v107 beta. v108 will restore
higan to production status again, alongside bsnes.
2018-08-08 08:46:58 +00:00
|
|
|
string toolTip;
|
2018-08-04 11:44:00 +00:00
|
|
|
} state;
|
|
|
|
};
|
|
|
|
#endif
|