mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-04 21:40:06 +00:00
Add C++11 override markers.
Adds the markers for gui2::tcontainer_::get_client_rect.
This commit is contained in:
parent
111eefa94b
commit
a8374fbe1d
@ -24,6 +24,11 @@
|
||||
|
||||
namespace gui2 {
|
||||
|
||||
SDL_Rect tcontainer_::get_client_rect() const
|
||||
{
|
||||
return get_rectangle();
|
||||
}
|
||||
|
||||
void tcontainer_::layout_initialise(const bool full_initialisation)
|
||||
{
|
||||
// Inherited.
|
||||
|
@ -40,11 +40,14 @@ public:
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the size of the client area.
|
||||
* Returns the client rect.
|
||||
*
|
||||
* The client area is the area available for widgets.
|
||||
* The client rect is the area which is used for child items. The rest of
|
||||
* the area of this widget is used for its own decoration.
|
||||
*
|
||||
* @returns The client rect.
|
||||
*/
|
||||
virtual SDL_Rect get_client_rect() const { return get_rectangle(); }
|
||||
virtual SDL_Rect get_client_rect() const;
|
||||
|
||||
/***** ***** ***** ***** layout functions ***** ***** ***** *****/
|
||||
|
||||
|
@ -40,15 +40,8 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the client rect.
|
||||
*
|
||||
* The client rect is the area which is used for child items. The rest of
|
||||
* the area of this widget is used for its own decoration.
|
||||
*
|
||||
* @returns The client rect.
|
||||
*/
|
||||
virtual SDL_Rect get_client_rect() const;
|
||||
/** See @ref tcontainer_::get_client_rect. */
|
||||
virtual SDL_Rect get_client_rect() const OVERRIDE;
|
||||
|
||||
/** See @ref tcontrol::get_active. */
|
||||
virtual bool get_active() const OVERRIDE;
|
||||
|
@ -64,13 +64,13 @@ public:
|
||||
virtual unsigned get_state() const OVERRIDE;
|
||||
|
||||
/**
|
||||
* Inherited from tpanel.
|
||||
* See @ref tcontainer_::get_client_rect.
|
||||
*
|
||||
* @todo only due to the fact our definition is slightly different from
|
||||
* tpanel_definition we need to override this function and do about the same,
|
||||
* look at a way to 'fix' that.
|
||||
* tpanel_definition we need to override this function and do about the
|
||||
* same, look at a way to 'fix' that.
|
||||
*/
|
||||
SDL_Rect get_client_rect() const;
|
||||
virtual SDL_Rect get_client_rect() const OVERRIDE;
|
||||
|
||||
/**
|
||||
* Inherited from tpanel.
|
||||
|
Loading…
x
Reference in New Issue
Block a user