Changeset View
Changeset View
Standalone View
Standalone View
source/gui/CInput.h
/* Copyright (C) 2015 Wildfire Games. | /* Copyright (C) 2015 Wildfire Games. | ||||
elexis: bump | |||||
* 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 50 Lines • ▼ Show 20 Lines | protected: | ||||
virtual void HandleMessage(SGUIMessage& Message); | virtual void HandleMessage(SGUIMessage& Message); | ||||
/** | /** | ||||
* Handle events manually to catch keyboard inputting. | * Handle events manually to catch keyboard inputting. | ||||
*/ | */ | ||||
virtual InReaction ManuallyHandleEvent(const SDL_Event_* ev); | virtual InReaction ManuallyHandleEvent(const SDL_Event_* ev); | ||||
/** | /** | ||||
* Handle events manually to catch keys which change the text. | |||||
*/ | |||||
virtual void ManuallyMutableHandleEvent(const int szChar); | |||||
/** | |||||
* Handle events manually to catch keys which don't change the text. | |||||
*/ | |||||
virtual void ManuallyImmutableHandleEvent(const int szChar); | |||||
/** | |||||
* Handle hotkey events (called by ManuallyHandleEvent) | * Handle hotkey events (called by ManuallyHandleEvent) | ||||
*/ | */ | ||||
virtual InReaction ManuallyHandleHotkeyEvent(const SDL_Event_* ev); | virtual InReaction ManuallyHandleHotkeyEvent(const SDL_Event_* ev); | ||||
/** | /** | ||||
* @see IGUIObject#UpdateCachedSize() | * @see IGUIObject#UpdateCachedSize() | ||||
*/ | */ | ||||
virtual void UpdateCachedSize(); | virtual void UpdateCachedSize(); | ||||
▲ Show 20 Lines • Show All 93 Lines • ▼ Show 20 Lines | protected: | ||||
/// Used to store the previous time for flashing the cursor. | /// Used to store the previous time for flashing the cursor. | ||||
double m_PrevTime; | double m_PrevTime; | ||||
/// Cursor blink rate in seconds, if greater than 0.0. | /// Cursor blink rate in seconds, if greater than 0.0. | ||||
double m_CursorBlinkRate; | double m_CursorBlinkRate; | ||||
/// If the cursor should be drawn or not. | /// If the cursor should be drawn or not. | ||||
bool m_CursorVisState; | bool m_CursorVisState; | ||||
/// If true it allows to user only select the text by mouse and copy by hotkey. | |||||
Not Done Inline Actions// Something elexis: // Something
Perhaps move the other comment here. | |||||
bool m_Readonly; | |||||
}; | }; | ||||
#endif // INCLUDED_CINPUT | #endif // INCLUDED_CINPUT |
Wildfire Games · Phabricator
bump