diff options
author | Vicent Marti | 2008-06-07 20:50:39 +0000 |
---|---|---|
committer | Vicent Marti | 2008-06-07 20:50:39 +0000 |
commit | 69694c72f658cedde9a03235ccdaf20982b3980f (patch) | |
tree | 41755b9072425d7a7ca035c83905c7932b0c8c90 /gui/InterfaceManager.cpp | |
parent | 18d5678e7bba24abb4ec98f4b82636fcc728092c (diff) | |
download | scummvm-rg350-69694c72f658cedde9a03235ccdaf20982b3980f.tar.gz scummvm-rg350-69694c72f658cedde9a03235ccdaf20982b3980f.tar.bz2 scummvm-rg350-69694c72f658cedde9a03235ccdaf20982b3980f.zip |
Expanded the InterfaceManager skeleton quite a bit.
svn-id: r32604
Diffstat (limited to 'gui/InterfaceManager.cpp')
-rw-r--r-- | gui/InterfaceManager.cpp | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/gui/InterfaceManager.cpp b/gui/InterfaceManager.cpp index cccf7a2be5..822b7094b3 100644 --- a/gui/InterfaceManager.cpp +++ b/gui/InterfaceManager.cpp @@ -70,6 +70,50 @@ void InterfaceManager::setGraphicsMode(Graphics_Mode mode) { _vectorRenderer->setSurface(_screen); } +void InterfaceManager::init() { + +} + +void InterfaceManager::drawWidgetBackground(int x, int y, uint16 hints, WidgetBackground background, WidgetStateInfo state, float scale){ + +} + +void InterfaceManager::drawButton(int x, int y, const Common::String &str, WidgetStateInfo state, uint16 hints, float scale) { + +} + +void InterfaceManager::drawSurface(int x, int y, const Graphics::Surface &surface, WidgetStateInfo state, int alpha, bool themeTrans, float scale) { + +} + +void InterfaceManager::drawSlider(int x, int y, int width, WidgetStateInfo state, float scale) { + +} + +void InterfaceManager::drawCheckbox(int x, int y, const Common::String &str, bool checked, WidgetStateInfo state, float scale) { + +} + +void InterfaceManager::drawTab(int x, int y, int tabHeight, int tabWidth, const Common::Array<Common::String> &tabs, int active, uint16 hints, int titleVPad, WidgetStateInfo state, float scale) { + +} + +void InterfaceManager::drawScrollbar(int x, int y, int sliderY, int sliderHeight, ScrollbarState, WidgetStateInfo state, float scale) { + +} + +void InterfaceManager::drawPopUpWidget(int x, int y, const Common::String &sel, int deltax, WidgetStateInfo state, TextAlign align, float scale) { + +} + +void InterfaceManager::drawCaret(int x, int y, bool erase, WidgetStateInfo state, float scale) { + +} + +void InterfaceManager::drawLineSeparator(int x, int y, WidgetStateInfo state, float scale) { + +} + int InterfaceManager::runGUI() { Common::EventManager *eventMan = _system->getEventManager(); _system->showOverlay(); @@ -122,6 +166,12 @@ int InterfaceManager::runGUI() { for (int i = 0; i < 4; ++i) _vectorRenderer->drawStep(&steps[i]); + _vectorRenderer->setFillMode(VectorRenderer::kFillGradient); + _vectorRenderer->setFgColor(0, 0, 0); + _vectorRenderer->drawTriangle(32, 32, 64, 64, VectorRenderer::kTriangleUp); + + _vectorRenderer->drawBeveledSquare(128, 128, 256, 64, 4); + _vectorRenderer->copyFrame(_system); Common::Event event; |