Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5395 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_button.cc


Ignore:
Timestamp:
Oct 17, 2005, 10:14:14 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: first element of the GLGui is visible… there is a long way to go…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_button.cc

    r5363 r5395  
    1818#include "glgui_button.h"
    1919
     20#include "text.h"
     21
    2022using namespace std;
    2123
     
    3537GLGuiButton::~GLGuiButton()
    3638{
    37 
     39  /* this does not have to be done, since the Label is a child,
     40   * and will be deleted by Element2D's deletion Process
     41   * delete this->label;
     42  */
    3843}
    3944
     
    4550  this->setClassID(CL_GLGUI_BUTTON, "GLGuiButton");
    4651
     52  this->label = new Text();
     53  this->label->setParent2D(this);
    4754}
     55
     56void GLGuiButton::setLabel(const char* label)
     57{
     58  this->label->setText(label);
     59}
     60
    4861
    4962/**
Note: See TracChangeset for help on using the changeset viewer.