bsnes/hiro/qt/window.hpp
Tim Allen c45633550e Update to v094r42 release.
byuu says:

I imagine you guys will like this WIP very much.

Changelog:
- ListView check boxes on Windows
- ListView removal of columns on reset (changing input dropdowns)
- DirectSound audio duplication on latency change
- DirectSound crash on 20ms latency
- Fullscreen window sizing in multi-monitor setups
- Allow joypad bindings of hotkeys
- Allow triggers to be mapped (Xbox 360 / XInput / Windows only)
- Support joypad rumble for Game Boy Player
- Video scale settings modified from {1x,2x,3x} to {2x,3x,4x}
- System menu now renames to active emulation core
- Added fast forward hotkey

Not changing for v095:
- not adding input focus settings yet
- not adding shaders yet

Not changing at all:
- not implementing maximize
2015-08-24 19:42:11 +10:00

43 lines
1.2 KiB
C++

#if defined(Hiro_Window)
namespace hiro {
struct pWindow : pObject {
Declare(Window, Object)
auto append(sLayout layout) -> void;
auto append(sMenuBar menuBar) -> void;
auto append(sStatusBar statusBar) -> void;
auto focused() const -> bool override;
auto frameMargin() const -> Geometry;
auto remove(sLayout layout) -> void;
auto remove(sMenuBar menuBar) -> void;
auto remove(sStatusBar statusBar) -> void;
auto setBackgroundColor(Color color) -> void;
auto setDroppable(bool droppable) -> void;
auto setEnabled(bool enabled) -> void override;
auto setFocused() -> void override;
auto setFullScreen(bool fullScreen) -> void;
auto setGeometry(Geometry geometry) -> void;
auto setModal(bool modal) -> void;
auto setResizable(bool resizable) -> void;
auto setTitle(const string& text) -> void;
auto setVisible(bool visible) -> void;
auto _append(mWidget& widget) -> void;
auto _menuHeight() const -> signed;
auto _statusHeight() const -> signed;
auto _updateFrameGeometry() -> void;
QtWindow* qtWindow = nullptr;
QVBoxLayout* qtLayout = nullptr;
QMenuBar* qtMenuBar = nullptr;
QStatusBar* qtStatusBar = nullptr;
QWidget* qtContainer = nullptr;
Geometry windowedGeometry{128, 128, 256, 256};
};
}
#endif