mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-23 22:52:34 +01:00
byuu says: Added AWJ's fixes for alt/cpu (Tetris Attack framelines issue) and alt/dsp (Thread::clock reset) Added fix so that the taskbar entry appears when the application first starts on Windows. Fixed checkbox toggling inside of list views on Windows. Updated nall/image to properly protect variables that should not be written externally. New Object syntax for hiro is in. Fixed the backwards-typing on Windows with the state manager. NOTE: the list view isn't redrawing when you change the description text. It does so on the cheat editor because of the resizeColumns call; but that shouldn't be necessary. I'll try and fix this for the next WIP.
33 lines
1.4 KiB
C++
33 lines
1.4 KiB
C++
#if defined(Hiro_FixedLayout)
|
|
using sFixedLayout = shared_pointer<mFixedLayout>;
|
|
struct FixedLayout : sFixedLayout {
|
|
DeclareSharedLayout(FixedLayout)
|
|
|
|
auto append(sSizable sizable, Geometry geometry) { return self().append(sizable, geometry), *this; }
|
|
};
|
|
#endif
|
|
|
|
#if defined(Hiro_HorizontalLayout)
|
|
using sHorizontalLayout = shared_pointer<mHorizontalLayout>;
|
|
struct HorizontalLayout : sHorizontalLayout {
|
|
DeclareSharedLayout(HorizontalLayout)
|
|
|
|
auto append(sSizable sizable, Size size, signed spacing = 5) { return self().append(sizable, size, spacing), *this; }
|
|
auto setAlignment(double alignment = 0.5) { return self().setAlignment(alignment), *this; }
|
|
auto setMargin(signed margin = 0) { return self().setMargin(margin), *this; }
|
|
auto setSpacing(signed spacing = 5) { return self().setSpacing(spacing), *this; }
|
|
};
|
|
#endif
|
|
|
|
#if defined(Hiro_VerticalLayout)
|
|
using sVerticalLayout = shared_pointer<mVerticalLayout>;
|
|
struct VerticalLayout : sVerticalLayout {
|
|
DeclareSharedLayout(VerticalLayout)
|
|
|
|
auto append(sSizable sizable, Size size, signed spacing = 5) { return self().append(sizable, size, spacing), *this; }
|
|
auto setAlignment(double alignment = 0.0) { return self().setAlignment(alignment), *this; }
|
|
auto setMargin(signed margin = 0) { return self().setMargin(margin), *this; }
|
|
auto setSpacing(signed spacing = 5) { return self().setSpacing(spacing), *this; }
|
|
};
|
|
#endif
|