Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/source/gui/IGUIScrollBar.h
Show All 10 Lines | |||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
* 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/>. | ||||
*/ | */ | ||||
/* | /* | ||||
A GUI ScrollBar | |||||
--Overview-- | |||||
A GUI Scrollbar, this class doesn't present all functionality | A GUI Scrollbar, this class doesn't present all functionality | ||||
to the scrollbar, it just controls the drawing and a wrapper | to the scrollbar, it just controls the drawing and a wrapper | ||||
for interaction with it. | for interaction with it. | ||||
--Usage-- | |||||
Used in everywhere scrollbars are needed, like in a combobox for instance. | |||||
--More info-- | |||||
Check GUI.h | |||||
*/ | */ | ||||
#ifndef INCLUDED_IGUISCROLLBAR | #ifndef INCLUDED_IGUISCROLLBAR | ||||
#define INCLUDED_IGUISCROLLBAR | #define INCLUDED_IGUISCROLLBAR | ||||
#include "GUI.h" | #include "gui/CGUISprite.h" | ||||
class IGUIScrollBarOwner; | |||||
/** | /** | ||||
* The GUI Scroll-bar style. Tells us how scroll-bars look and feel. | * The GUI Scroll-bar style. Tells us how scroll-bars look and feel. | ||||
* | * | ||||
* A scroll-bar style can choose whether to support horizontal, vertical | * A scroll-bar style can choose whether to support horizontal, vertical | ||||
* or both. | * or both. | ||||
* | * | ||||
* @see IGUIScrollBar | * @see IGUIScrollBar | ||||
▲ Show 20 Lines • Show All 332 Lines • ▼ Show 20 Lines | protected: | ||||
/** | /** | ||||
* Scroll bar style reference name | * Scroll bar style reference name | ||||
*/ | */ | ||||
CStr m_ScrollBarStyle; | CStr m_ScrollBarStyle; | ||||
/** | /** | ||||
* Pointer to scroll bar style used. | * Pointer to scroll bar style used. | ||||
*/ | */ | ||||
SGUIScrollBarStyle *m_pStyle; | SGUIScrollBarStyle* m_pStyle; | ||||
/** | /** | ||||
* Host object, prerequisite! | * Host object, prerequisite! | ||||
*/ | */ | ||||
IGUIScrollBarOwner *m_pHostObject; | IGUIScrollBarOwner* m_pHostObject; | ||||
/** | /** | ||||
* Reference to CGUI object, these cannot work stand-alone | * Reference to CGUI object, these cannot work stand-alone | ||||
*/ | */ | ||||
CGUI& m_pGUI; | CGUI& m_pGUI; | ||||
/** | /** | ||||
* Mouse position when bar was pressed | * Mouse position when bar was pressed | ||||
▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator