@@ -76,19 +76,19 @@ class GUIButton : public gui::IGUIButton
76
76
virtual ~GUIButton ();
77
77
78
78
// ! called if an event happened.
79
- virtual bool OnEvent (const SEvent& event);
79
+ virtual bool OnEvent (const SEvent& event) override ;
80
80
81
81
// ! draws the element and its children
82
- virtual void draw ();
82
+ virtual void draw () override ;
83
83
84
84
// ! sets another skin independent font. if this is set to zero, the button uses the font of the skin.
85
- virtual void setOverrideFont (gui::IGUIFont* font=0 );
85
+ virtual void setOverrideFont (gui::IGUIFont* font=0 ) override ;
86
86
87
87
// ! Gets the override font (if any)
88
- virtual gui::IGUIFont* getOverrideFont () const ;
88
+ virtual gui::IGUIFont* getOverrideFont () const override ;
89
89
90
90
// ! Get the font which is used right now for drawing
91
- virtual gui::IGUIFont* getActiveFont () const ;
91
+ virtual gui::IGUIFont* getActiveFont () const override ;
92
92
93
93
// ! Sets another color for the button text.
94
94
virtual void setOverrideColor (video::SColor color);
@@ -103,34 +103,36 @@ class GUIButton : public gui::IGUIButton
103
103
virtual bool isOverrideColorEnabled (void ) const ;
104
104
105
105
// ! Sets an image which should be displayed on the button when it is in the given state.
106
- virtual void setImage (gui::EGUI_BUTTON_IMAGE_STATE state, video::ITexture* image=0 , const core::rect<s32>& sourceRect=core::rect<s32>(0 ,0 ,0 ,0 ));
106
+ virtual void setImage (gui::EGUI_BUTTON_IMAGE_STATE state,
107
+ video::ITexture* image=0 ,
108
+ const core::rect<s32>& sourceRect=core::rect<s32>(0 ,0 ,0 ,0 ));
107
109
108
110
// ! Sets an image which should be displayed on the button when it is in normal state.
109
- virtual void setImage (video::ITexture* image=0 )
111
+ virtual void setImage (video::ITexture* image=0 ) override
110
112
{
111
113
setImage (gui::EGBIS_IMAGE_UP, image);
112
114
}
113
115
114
116
// ! Sets an image which should be displayed on the button when it is in normal state.
115
- virtual void setImage (video::ITexture* image, const core::rect<s32>& pos)
117
+ virtual void setImage (video::ITexture* image, const core::rect<s32>& pos) override
116
118
{
117
119
setImage (gui::EGBIS_IMAGE_UP, image, pos);
118
120
}
119
121
120
122
// ! Sets an image which should be displayed on the button when it is in pressed state.
121
- virtual void setPressedImage (video::ITexture* image=0 )
123
+ virtual void setPressedImage (video::ITexture* image=0 ) override
122
124
{
123
125
setImage (gui::EGBIS_IMAGE_DOWN, image);
124
126
}
125
127
126
128
// ! Sets an image which should be displayed on the button when it is in pressed state.
127
- virtual void setPressedImage (video::ITexture* image, const core::rect<s32>& pos)
129
+ virtual void setPressedImage (video::ITexture* image, const core::rect<s32>& pos) override
128
130
{
129
131
setImage (gui::EGBIS_IMAGE_DOWN, image, pos);
130
132
}
131
133
132
134
// ! Sets the sprite bank used by the button
133
- virtual void setSpriteBank (gui::IGUISpriteBank* bank=0 );
135
+ virtual void setSpriteBank (gui::IGUISpriteBank* bank=0 ) override ;
134
136
135
137
// ! Sets the animated sprite for a specific button state
136
138
/* * \param index: Number of the sprite within the sprite bank, use -1 for no sprite
@@ -163,34 +165,34 @@ class GUIButton : public gui::IGUIButton
163
165
// ! Sets if the button should behave like a push button. Which means it
164
166
// ! can be in two states: Normal or Pressed. With a click on the button,
165
167
// ! the user can change the state of the button.
166
- virtual void setIsPushButton (bool isPushButton=true );
168
+ virtual void setIsPushButton (bool isPushButton=true ) override ;
167
169
168
170
// ! Checks whether the button is a push button
169
- virtual bool isPushButton () const ;
171
+ virtual bool isPushButton () const override ;
170
172
171
173
// ! Sets the pressed state of the button if this is a pushbutton
172
- virtual void setPressed (bool pressed=true );
174
+ virtual void setPressed (bool pressed=true ) override ;
173
175
174
176
// ! Returns if the button is currently pressed
175
- virtual bool isPressed () const ;
177
+ virtual bool isPressed () const override ;
176
178
177
179
// ! Sets if the button should use the skin to draw its border
178
- virtual void setDrawBorder (bool border=true );
180
+ virtual void setDrawBorder (bool border=true ) override ;
179
181
180
182
// ! Checks if the button face and border are being drawn
181
- virtual bool isDrawingBorder () const ;
183
+ virtual bool isDrawingBorder () const override ;
182
184
183
185
// ! Sets if the alpha channel should be used for drawing images on the button (default is false)
184
- virtual void setUseAlphaChannel (bool useAlphaChannel=true );
186
+ virtual void setUseAlphaChannel (bool useAlphaChannel=true ) override ;
185
187
186
188
// ! Checks if the alpha channel should be used for drawing images on the button
187
- virtual bool isAlphaChannelUsed () const ;
189
+ virtual bool isAlphaChannelUsed () const override ;
188
190
189
191
// ! Sets if the button should scale the button images to fit
190
- virtual void setScaleImage (bool scaleImage=true );
192
+ virtual void setScaleImage (bool scaleImage=true ) override ;
191
193
192
194
// ! Checks whether the button scales the used images
193
- virtual bool isScalingImage () const ;
195
+ virtual bool isScalingImage () const override ;
194
196
195
197
// ! Get if the shift key was pressed in last EGET_BUTTON_CLICKED event
196
198
virtual bool getClickShiftState () const
@@ -205,10 +207,10 @@ class GUIButton : public gui::IGUIButton
205
207
}
206
208
207
209
// ! Writes attributes of the element.
208
- virtual void serializeAttributes (io::IAttributes* out, io::SAttributeReadWriteOptions* options) const ;
210
+ virtual void serializeAttributes (io::IAttributes* out, io::SAttributeReadWriteOptions* options) const override ;
209
211
210
212
// ! Reads attributes of the element
211
- virtual void deserializeAttributes (io::IAttributes* in, io::SAttributeReadWriteOptions* options);
213
+ virtual void deserializeAttributes (io::IAttributes* in, io::SAttributeReadWriteOptions* options) override ;
212
214
213
215
214
216
0 commit comments