bsnes/hiro/core/widget/horizontal-scroll-bar.cpp
Tim Allen 213879771e Update to v094r41 release (open beta).
byuu says:

Changelog (since the last open beta):
- icarus is now included. icarus is used to import game files/archives
  into game paks (folders)
- SNES: mid-scanline BGMODE changes now emulated correctly (used only by
  atx2.smc Anthrox Demo)
- GBA: fixed a CPU bug that was causing dozens of games to have
  distorted audio
- GBA: fixed default FlashROM ID; should allow much higher compatibility
- GBA: now using Cydrak's new, much improved, GBA color emulation filter
  (still a work-in-progress)
- re-added command-line loading support for game paks (not for game
  files/archives, sorry!)
- Qt port now compiles and runs again (may be a little buggy;
  Windows/GTK+ ports preferred)
- SNES performance profile now compiles and runs again
- much more
2015-08-21 20:57:03 +10:00

39 lines
836 B
C++

#if defined(Hiro_HorizontalScrollBar)
auto mHorizontalScrollBar::allocate() -> pObject* {
return new pHorizontalScrollBar(*this);
}
//
auto mHorizontalScrollBar::doChange() const -> void {
if(state.onChange) return state.onChange();
}
auto mHorizontalScrollBar::length() const -> unsigned {
return state.length;
}
auto mHorizontalScrollBar::onChange(const function<void ()>& callback) -> type& {
state.onChange = callback;
return *this;
}
auto mHorizontalScrollBar::position() const -> unsigned {
return state.position;
}
auto mHorizontalScrollBar::setLength(unsigned length) -> type& {
state.length = length;
signal(setLength, length);
return *this;
}
auto mHorizontalScrollBar::setPosition(unsigned position) -> type& {
state.position = position;
signal(setPosition, position);
return *this;
}
#endif