I know many setter functions test the new setting and the old one first, and invalidate the window only if the setting is actually changed. But setText does not test, but invalidate the window and also it's renderedString on every time setText called. Is this intended? Maybe any decision about the RenderStringParser?
LCY
Something about setText
Moderators: CEGUI MVP, CEGUI Team
- CrazyEddie
- CEGUI Project Lead
- Posts: 6760
- Joined: Wed Jan 12, 2005 12:06
- Location: England
- Contact:
Re: Something about setText
Hi, yes this is intentional. Mainly because testing a float, int or bool value is a trivial operation, whereas comparing two strings may not be. If it's an issue you just do the comparison yourself prior to setting the text.
CE.
CE.
Useful Links: Forum Guidelines | Documentation | Tutorials | HOWTO | Videos | Donate to CEGUI | CEGUI Twitter
Return to “Offtopic Discussion”
Who is online
Users browsing this forum: No registered users and 15 guests