00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #include "mmsgui/mmsrootwindow.h"
00034
00035 MMSRootWindow::MMSRootWindow(string className, string dx, string dy, string w, string h, MMSALIGNMENT alignment,
00036 MMSWINDOW_FLAGS flags, MMSTheme *theme, bool *own_surface, bool *backbuffer) {
00037 create(className, dx, dy, w, h, alignment, flags, theme, own_surface, backbuffer);
00038 }
00039
00040 MMSRootWindow::MMSRootWindow(string className, string w, string h, MMSALIGNMENT alignment,
00041 MMSWINDOW_FLAGS flags, MMSTheme *theme, bool *own_surface, bool *backbuffer) {
00042 create(className, "", "", w, h, alignment, flags, theme, own_surface, backbuffer);
00043 }
00044
00045 MMSRootWindow::~MMSRootWindow() {
00046 }
00047
00048 bool MMSRootWindow::create(string className, string dx, string dy, string w, string h, MMSALIGNMENT alignment,
00049 MMSWINDOW_FLAGS flags, MMSTheme *theme, bool *own_surface, bool *backbuffer) {
00050 this->type = MMSWINDOWTYPE_ROOTWINDOW;
00051 this->className = className;
00052 if (theme) this->theme = theme; else this->theme = globalTheme;
00053 this->rootWindowClass = this->theme->getRootWindowClass(className);
00054 this->baseWindowClass = &(this->theme->rootWindowClass.windowClass);
00055 if (this->rootWindowClass) this->windowClass = &(this->rootWindowClass->windowClass); else this->windowClass = NULL;
00056
00057 return MMSWindow::create(dx, dy, w, h, alignment, flags, own_surface, backbuffer);
00058 }
00059
00060
00061
00062
00063
00064 void MMSRootWindow::updateFromThemeClass(MMSRootWindowClass *themeClass) {
00065 MMSWindow::updateFromThemeClass(&(themeClass->windowClass));
00066 }
00067
00068
00069
00070