Changeset View
Changeset View
Standalone View
Standalone View
source/gui/CList.h
/* Copyright (C) 2015 Wildfire Games. | /* Copyright (C) 2015 Wildfire Games. | ||||
elexis: *cough* | |||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 90 Lines • ▼ Show 20 Lines | protected: | ||||
/** | /** | ||||
* List of each element's relative y position. Will be | * List of each element's relative y position. Will be | ||||
* one larger than m_Items, because it will end with the | * one larger than m_Items, because it will end with the | ||||
* bottom of the last element. First element will always | * bottom of the last element. First element will always | ||||
* be zero, but still stored for easy handling. | * be zero, but still stored for easy handling. | ||||
*/ | */ | ||||
std::vector<float> m_ItemsYPositions; | std::vector<float> m_ItemsYPositions; | ||||
int GetHoveredItem(); | |||||
Not Done Inline Actionsvirtual elexis: virtual | |||||
private: | private: | ||||
// Whether the list's items have been modified since last handling a message. | // Whether the list's items have been modified since last handling a message. | ||||
bool m_Modified; | bool m_Modified; | ||||
// Used for doubleclick registration | // Used for doubleclick registration | ||||
int m_PrevSelectedItem; | int m_PrevSelectedItem; | ||||
// Last time a click on an item was issued | // Last time a click on an item was issued | ||||
double m_LastItemClickTime; | double m_LastItemClickTime; | ||||
}; | }; | ||||
#endif // INCLUDED_CLIST | #endif // INCLUDED_CLIST |
Wildfire Games · Phabricator
*cough*