Why is IGUIStaticText static?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
kkrizka
Posts: 70
Joined: Sun Sep 30, 2007 3:10 am

Why is IGUIStaticText static?

Post by kkrizka »

Hi there,

I'm wondering why the IGUIStaticText node does not allow changing of the text after it has been created (I assume that is why it is called IGUIStaticText?). I took a quick look over the code, and I do not see any reason why there can't be a public setText() function.
Cheers,
Karol Krizka

http://www.krizka.net
Nox
Posts: 304
Joined: Wed Jan 14, 2009 6:23 pm

Post by Nox »

Errr...you can change the text. Static means only the user cannot edit the text :) . And the setText method is part of irr::gui::IGUIElement ;) .
Yoran
Site Admin
Posts: 96
Joined: Fri Oct 07, 2005 8:55 am
Location: The Netherlands
Contact:

Post by Yoran »

Read the API, there IS a setText() method.
kkrizka
Posts: 70
Joined: Sun Sep 30, 2007 3:10 am

Post by kkrizka »

Ah, it didn't occur to me that any IGUIElement could have some text. Thank you for pointing it out. :)
Cheers,
Karol Krizka

http://www.krizka.net
Post Reply