summaryrefslogtreecommitdiff
path: root/src/gui/widgets/scrollarea.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-22 02:34:48 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-22 21:22:21 +0300
commit4a5cdfe19cbb50e3b58149c6e91312366ee4b771 (patch)
tree7a2bbae95b5f6642731f2a1257913baad71d028d /src/gui/widgets/scrollarea.h
parent3dcf21babe03cee5080a25e787e1d7e72124288e (diff)
downloadplus-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.gz
plus-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.bz2
plus-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.tar.xz
plus-4a5cdfe19cbb50e3b58149c6e91312366ee4b771.zip
Add override keyword to most overriden methods.
Diffstat (limited to 'src/gui/widgets/scrollarea.h')
-rw-r--r--src/gui/widgets/scrollarea.h36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/gui/widgets/scrollarea.h b/src/gui/widgets/scrollarea.h
index 064bfdeb0..7a1a3b076 100644
--- a/src/gui/widgets/scrollarea.h
+++ b/src/gui/widgets/scrollarea.h
@@ -65,7 +65,7 @@ class ScrollArea final : public gcn::ScrollArea, public gcn::WidgetListener
* Logic function optionally adapts width or height of contents. This
* depends on the scrollbar settings.
*/
- void logic();
+ void logic() override;
/**
* Update the alpha value to the graphic components.
@@ -75,12 +75,12 @@ class ScrollArea final : public gcn::ScrollArea, public gcn::WidgetListener
/**
* Draws the scroll area.
*/
- void draw(gcn::Graphics *graphics);
+ void draw(gcn::Graphics *graphics) override;
/**
* Draws the background and border of the scroll area.
*/
- void drawFrame(gcn::Graphics *graphics);
+ void drawFrame(gcn::Graphics *graphics) override;
/**
* Sets whether the widget should draw its background or not.
@@ -96,25 +96,25 @@ class ScrollArea final : public gcn::ScrollArea, public gcn::WidgetListener
/**
* Called when the mouse moves in the widget area.
*/
- void mouseMoved(gcn::MouseEvent& event);
+ void mouseMoved(gcn::MouseEvent& event) override;
/**
* Called when the mouse enteres the widget area.
*/
- void mouseEntered(gcn::MouseEvent& event);
+ void mouseEntered(gcn::MouseEvent& event) override;
/**
* Called when the mouse leaves the widget area.
*/
- void mouseExited(gcn::MouseEvent& event);
+ void mouseExited(gcn::MouseEvent& event) override;
- void mousePressed(gcn::MouseEvent& event);
+ void mousePressed(gcn::MouseEvent& event) override;
- void mouseReleased(gcn::MouseEvent& event);
+ void mouseReleased(gcn::MouseEvent& event) override;
- void widgetResized(const gcn::Event &event);
+ void widgetResized(const gcn::Event &event) override;
- void widgetMoved(const gcn::Event &event);
+ void widgetMoved(const gcn::Event &event) override;
protected:
enum BUTTON_DIR
@@ -132,14 +132,14 @@ class ScrollArea final : public gcn::ScrollArea, public gcn::WidgetListener
void init(std::string skinName);
void drawButton(gcn::Graphics *const graphics, const BUTTON_DIR dir);
- void drawUpButton(gcn::Graphics *const graphics);
- void drawDownButton(gcn::Graphics *const graphics);
- void drawLeftButton(gcn::Graphics *const graphics);
- void drawRightButton(gcn::Graphics *const graphics);
- void drawVBar(gcn::Graphics *const graphics);
- void drawHBar(gcn::Graphics *const graphics);
- void drawVMarker(gcn::Graphics *const graphics);
- void drawHMarker(gcn::Graphics *const graphics);
+ void drawUpButton(gcn::Graphics *const graphics) override;
+ void drawDownButton(gcn::Graphics *const graphics) override;
+ void drawLeftButton(gcn::Graphics *const graphics) override;
+ void drawRightButton(gcn::Graphics *const graphics) override;
+ void drawVBar(gcn::Graphics *const graphics) override;
+ void drawHBar(gcn::Graphics *const graphics) override;
+ void drawVMarker(gcn::Graphics *const graphics) override;
+ void drawHMarker(gcn::Graphics *const graphics) override;
static int instances;
static float mAlpha;