diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-30 14:58:43 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2004-12-30 14:58:43 +0000 |
commit | d0fca301c35ddd1e0091b31e36547143ecbf7076 (patch) | |
tree | 73e9b4d15e8be62604e13f924bac34fa32f6d929 | |
parent | bbd44ef322cb26ed326250300e240df6fc19b545 (diff) | |
download | mana-client-d0fca301c35ddd1e0091b31e36547143ecbf7076.tar.gz mana-client-d0fca301c35ddd1e0091b31e36547143ecbf7076.tar.bz2 mana-client-d0fca301c35ddd1e0091b31e36547143ecbf7076.tar.xz mana-client-d0fca301c35ddd1e0091b31e36547143ecbf7076.zip |
Marker area of vertical scrollbar now skinned. Graphics seem lacking for
other parts.
-rw-r--r-- | src/gui/scrollarea.cpp | 50 | ||||
-rw-r--r-- | src/gui/scrollarea.h | 10 |
2 files changed, 60 insertions, 0 deletions
diff --git a/src/gui/scrollarea.cpp b/src/gui/scrollarea.cpp index 30460efb..f994ea52 100644 --- a/src/gui/scrollarea.cpp +++ b/src/gui/scrollarea.cpp @@ -106,3 +106,53 @@ void ScrollArea::drawBorder(gcn::Graphics *graphics) draw_skinned_rect(gui_bitmap, &gui_skin.textbox.bg, x, y, w, h); } + +void ScrollArea::drawUpButton(gcn::Graphics *graphics) +{ + gcn::ScrollArea::drawUpButton(graphics); +} + +void ScrollArea::drawDownButton(gcn::Graphics *graphics) +{ + gcn::ScrollArea::drawDownButton(graphics); +} + +void ScrollArea::drawLeftButton(gcn::Graphics *graphics) +{ + gcn::ScrollArea::drawLeftButton(graphics); +} + +void ScrollArea::drawRightButton(gcn::Graphics *graphics) +{ + gcn::ScrollArea::drawRightButton(graphics); +} + +void ScrollArea::drawVBar(gcn::Graphics *graphics) +{ + int x, y; + gcn::Rectangle dim = getVerticalBarDimension(); + getAbsolutePosition(x, y); + + draw_skinned_rect(gui_bitmap, &gui_skin.listbox.bg, + x + dim.x, y + dim.y, dim.width, dim.height); +} + +void ScrollArea::drawHBar(gcn::Graphics *graphics) +{ + gcn::ScrollArea::drawHBar(graphics); +} + +void ScrollArea::drawVMarker(gcn::Graphics *graphics) +{ + int x, y; + gcn::Rectangle dim = getVerticalMarkerDimension(); + getAbsolutePosition(x, y); + + draw_skinned_rect(gui_bitmap, &gui_skin.listbox.vscroll, + x + dim.x, y + dim.y, dim.width, dim.height); +} + +void ScrollArea::drawHMarker(gcn::Graphics *graphics) +{ + gcn::ScrollArea::drawHMarker(graphics); +} diff --git a/src/gui/scrollarea.h b/src/gui/scrollarea.h index 63c8a122..c5b8c94d 100644 --- a/src/gui/scrollarea.h +++ b/src/gui/scrollarea.h @@ -53,6 +53,16 @@ class ScrollArea : public gcn::ScrollArea { * Draws the background and border of the scroll area. */ void drawBorder(gcn::Graphics *graphics); + + protected: + void drawUpButton(gcn::Graphics *graphics); + void drawDownButton(gcn::Graphics *graphics); + void drawLeftButton(gcn::Graphics *graphics); + void drawRightButton(gcn::Graphics *graphics); + void drawVBar(gcn::Graphics *graphics); + void drawHBar(gcn::Graphics *graphics); + void drawVMarker(gcn::Graphics *graphics); + void drawHMarker(gcn::Graphics *graphics); }; #endif |