Changeset View
Changeset View
Standalone View
Standalone View
source/gui/IGUIScrollBar.cpp
Show All 14 Lines | |||||
* along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | * along with 0 A.D. If not, see <http://www.gnu.org/licenses/>. | ||||
*/ | */ | ||||
#include "precompiled.h" | #include "precompiled.h" | ||||
#include "IGUIScrollBar.h" | #include "IGUIScrollBar.h" | ||||
#include "gui/CGUI.h" | #include "gui/CGUI.h" | ||||
#include "gui/SGUIMessage.h" | |||||
#include "gui/ObjectBases/IGUIScrollBarOwner.h" | #include "gui/ObjectBases/IGUIScrollBarOwner.h" | ||||
#include "maths/MathUtil.h" | #include "maths/MathUtil.h" | ||||
IGUIScrollBar::IGUIScrollBar(CGUI& pGUI) | IGUIScrollBar::IGUIScrollBar(CGUI& pGUI) | ||||
: m_pGUI(pGUI), | : m_pGUI(pGUI), | ||||
m_pStyle(nullptr), | m_pStyle(nullptr), | ||||
m_X(300.f), m_Y(300.f), | m_X(300.f), m_Y(300.f), | ||||
m_ScrollRange(1.f), m_ScrollSpace(0.f), // MaxPos: not 0, due to division. | m_ScrollRange(1.f), m_ScrollSpace(0.f), // MaxPos: not 0, due to division. | ||||
▲ Show 20 Lines • Show All 161 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator