diff --git a/src/bin/launcher/include/ubixButton.h b/src/bin/launcher/include/ubixButton.h index 0702fff..0a1524e 100644 --- a/src/bin/launcher/include/ubixButton.h +++ b/src/bin/launcher/include/ubixButton.h @@ -5,7 +5,9 @@ class ubixButton : public vButton { public: - ubixButton(vContext *); - virtual ~ubixButton(void); + ubixButton(vContext *); + virtual bool vCreate(void) { return true; } + virtual void vDraw(void) { return; } + virtual ~ubixButton(void); }; // ubixButton #endif diff --git a/src/bin/launcher/launcher.cpp b/src/bin/launcher/launcher.cpp index 540f54e..009e378 100644 --- a/src/bin/launcher/launcher.cpp +++ b/src/bin/launcher/launcher.cpp @@ -6,6 +6,10 @@ int main(void) { ubixDesktop * desktop = new ubixDesktop(NULL); if (desktop!=NULL) cout << "Desktop created" << endl; + ubixButton * daButton = new ubixButton(desktop); + if (daButton != NULL) cout << "da uBix button was created" << endl; + delete daButton; delete desktop; + return 0; } diff --git a/src/bin/launcher/ubixButton.cpp b/src/bin/launcher/ubixButton.cpp index 3ca69a8..0a40032 100644 --- a/src/bin/launcher/ubixButton.cpp +++ b/src/bin/launcher/ubixButton.cpp @@ -2,9 +2,18 @@ #include #include #include +#include ubixButton::ubixButton(vContext * parent) : vButton(parent) { vSetSize(48, 48); + sSize * size = NULL; + size = dynamic_cast(vGetStyle("default.button.border.size")); + + if (size != NULL) { + cout << "size.width: " << size->width << endl; + cout << "size.height: " << size->height << endl; + } // if + vSetStyle("default.button.border.size", new sSize(0, 0, 0)); return;