@@ -57,7 +57,7 @@ class GUIButton :
5757// Description: Called when the control has been created.
5858// Arguments: Name, Position.
5959
60- void Create (const std::string Name, int X, int Y, int Width = -1 , int Height = -1 );
60+ void Create (const std::string Name, int X, int Y, int Width = -1 , int Height = -1 ) override ;
6161
6262
6363// ////////////////////////////////////////////////////////////////////////////////////////
@@ -66,7 +66,7 @@ class GUIButton :
6666// Description: Called when the control has been destroyed.
6767// Arguments: None.
6868
69- void Destroy (void ) ;
69+ void Destroy () override ;
7070
7171
7272// ////////////////////////////////////////////////////////////////////////////////////////
@@ -75,7 +75,7 @@ class GUIButton :
7575// Description: Called when the control has been created.
7676// Arguments: Properties.
7777
78- void Create (GUIProperties *Props);
78+ void Create (GUIProperties *Props) override ;
7979
8080
8181// ////////////////////////////////////////////////////////////////////////////////////////
@@ -84,7 +84,7 @@ class GUIButton :
8484// Description: Called when the skin has been changed.
8585// Arguments: New skin pointer.
8686
87- void ChangeSkin (GUISkin *Skin);
87+ void ChangeSkin (GUISkin *Skin) override ;
8888
8989
9090// ////////////////////////////////////////////////////////////////////////////////////////
@@ -93,7 +93,7 @@ class GUIButton :
9393// Description: Draws the panel
9494// Arguments: Screen class
9595
96- void Draw (GUIScreen *Screen);
96+ void Draw (GUIScreen *Screen) override ;
9797
9898
9999// ////////////////////////////////////////////////////////////////////////////////////////
@@ -102,7 +102,7 @@ class GUIButton :
102102// Description: Called when the mouse goes down on the panel
103103// Arguments: Mouse Position, Mouse Buttons, Modifier.
104104
105- void OnMouseDown (int X, int Y, int Buttons, int Modifier);
105+ void OnMouseDown (int X, int Y, int Buttons, int Modifier) override ;
106106
107107
108108// ////////////////////////////////////////////////////////////////////////////////////////
@@ -111,7 +111,7 @@ class GUIButton :
111111// Description: Called when the mouse goes up on the panel
112112// Arguments: Mouse Position, Mouse Buttons, Modifier.
113113
114- void OnMouseUp (int X, int Y, int Buttons, int Modifier);
114+ void OnMouseUp (int X, int Y, int Buttons, int Modifier) override ;
115115
116116
117117// ////////////////////////////////////////////////////////////////////////////////////////
@@ -120,7 +120,7 @@ class GUIButton :
120120// Description: Called when the mouse moves (over the panel, or when captured).
121121// Arguments: Mouse Position, Mouse Buttons, Modifier.
122122
123- void OnMouseMove (int X, int Y, int Buttons, int Modifier);
123+ void OnMouseMove (int X, int Y, int Buttons, int Modifier) override ;
124124
125125
126126// ////////////////////////////////////////////////////////////////////////////////////////
@@ -129,7 +129,7 @@ class GUIButton :
129129// Description: Called when the mouse enters the panel.
130130// Arguments: Mouse Position, Mouse Buttons, Modifier.
131131
132- void OnMouseEnter (int X, int Y, int Buttons, int Modifier);
132+ void OnMouseEnter (int X, int Y, int Buttons, int Modifier) override ;
133133
134134
135135// ////////////////////////////////////////////////////////////////////////////////////////
@@ -138,7 +138,7 @@ class GUIButton :
138138// Description: Called when the mouse leaves the panel.
139139// Arguments: Mouse Position, Mouse Buttons, Modifier.
140140
141- void OnMouseLeave (int X, int Y, int Buttons, int Modifier);
141+ void OnMouseLeave (int X, int Y, int Buttons, int Modifier) override ;
142142
143143
144144// ////////////////////////////////////////////////////////////////////////////////////////
@@ -147,7 +147,7 @@ class GUIButton :
147147// Description: Called when a key goes down.
148148// Arguments: KeyCode, Modifier.
149149
150- virtual void OnKeyDown (int KeyCode, int Modifier);
150+ void OnKeyDown (int KeyCode, int Modifier) override ;
151151
152152
153153// ////////////////////////////////////////////////////////////////////////////////////////
@@ -157,7 +157,7 @@ class GUIButton :
157157// Arguments: None.
158158// Returns: 0 if the control does not have a panel, otherwise the topmost panel.
159159
160- GUIPanel *GetPanel (void ) ;
160+ GUIPanel * GetPanel () override ;
161161
162162
163163// ////////////////////////////////////////////////////////////////////////////////////////
@@ -166,7 +166,7 @@ class GUIButton :
166166// Description: Returns a string representing the control's ID
167167// Arguments: None.
168168
169- static std::string GetControlID (void ) { return " BUTTON" ; };
169+ static std::string GetControlID () { return " BUTTON" ; };
170170
171171
172172// ////////////////////////////////////////////////////////////////////////////////////////
@@ -175,7 +175,7 @@ class GUIButton :
175175// Description: Gets the rectangle of the control.
176176// Arguments: Position, Size.
177177
178- void GetControlRect (int *X, int *Y, int *Width, int *Height);
178+ void GetControlRect (int *X, int *Y, int *Width, int *Height) override ;
179179
180180
181181// ////////////////////////////////////////////////////////////////////////////////////////
@@ -184,7 +184,7 @@ class GUIButton :
184184// Description: Gets the control to store the values into properties.
185185// Arguments: None.
186186
187- void StoreProperties (void ) ;
187+ void StoreProperties () override ;
188188
189189
190190// ////////////////////////////////////////////////////////////////////////////////////////
@@ -193,7 +193,7 @@ class GUIButton :
193193// Description: Called when the control needs to be moved.
194194// Arguments: New position.
195195
196- void Move (int X, int Y);
196+ void Move (int X, int Y) override ;
197197
198198
199199// ////////////////////////////////////////////////////////////////////////////////////////
@@ -202,7 +202,7 @@ class GUIButton :
202202// Description: Called when the control needs to be resized.
203203// Arguments: New size.
204204
205- void Resize (int Width, int Height);
205+ void Resize (int Width, int Height) override ;
206206
207207
208208// ////////////////////////////////////////////////////////////////////////////////////////
@@ -229,7 +229,7 @@ class GUIButton :
229229// Description: Gets the text.
230230// Arguments: None.
231231
232- std::string GetText (void );
232+ std::string GetText ();
233233
234234
235235// ////////////////////////////////////////////////////////////////////////////////////////
@@ -238,7 +238,7 @@ class GUIButton :
238238// Description: Applies new properties to the control.
239239// Arguments: GUIProperties.
240240
241- void ApplyProperties (GUIProperties *Props);
241+ void ApplyProperties (GUIProperties *Props) override ;
242242
243243
244244// ////////////////////////////////////////////////////////////////////////////////////////
@@ -253,7 +253,7 @@ class GUIButton :
253253// Description: Create the button bitmap to draw.
254254// Arguments: None.
255255
256- void BuildBitmap (void );
256+ void BuildBitmap ();
257257
258258
259259// Members
0 commit comments