Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/IGUIScrollBar.cpp
Show All 11 Lines | |||||
* GNU General Public License for more details. | * GNU General Public License for more details. | ||||
* | * | ||||
* You should have received a copy of the GNU General Public License | * You should have received a copy of the GNU General Public License | ||||
* 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 "GUI.h" | #include "IGUIScrollBar.h" | ||||
#include "gui/IGUIScrollBarOwner.h" | |||||
#include "gui/CGUI.h" | #include "gui/CGUI.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(NULL), | 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. | ||||
m_Length(200.f), m_Width(20.f), | m_Length(200.f), m_Width(20.f), | ||||
m_BarSize(0.f), m_Pos(0.f), | m_BarSize(0.f), m_Pos(0.f), | ||||
m_ButtonPlusPressed(false), | m_ButtonPlusPressed(false), | ||||
m_ButtonMinusPressed(false), | m_ButtonMinusPressed(false), | ||||
m_ButtonPlusHovered(false), | m_ButtonPlusHovered(false), | ||||
m_ButtonMinusHovered(false), | m_ButtonMinusHovered(false), | ||||
m_BarHovered(false), | m_BarHovered(false), | ||||
m_BarPressed(false) | m_BarPressed(false) | ||||
{ | { | ||||
} | } | ||||
IGUIScrollBar::~IGUIScrollBar() | IGUIScrollBar::~IGUIScrollBar() | ||||
{ | { | ||||
} | } | ||||
void IGUIScrollBar::SetupBarSize() | void IGUIScrollBar::SetupBarSize() | ||||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator