How I can compare 2 StaticImage?

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

Vetal_28
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Wed Nov 22, 2006 14:17
Contact:

How I can compare 2 StaticImage?

Postby Vetal_28 » Mon Feb 12, 2007 13:26

Hello, I need to often change mouse cursor image. And for this I need to check, what image I have now (usual or abrogated(cursor has induction on button). For this I see method:
(CEGUI::StaticImage *)CEGUI::MouseCursor::getSingleton().getImage();

How I can compare this image whis another image, for example ("WindowsLook", "MouseArrow")

Or, you propose anozer variants for decision my problem :idea:

Thanks for help in advanced ;-0))

Pompei2
Home away from home
Home away from home
Posts: 489
Joined: Tue May 23, 2006 16:31

Postby Pompei2 » Fri Feb 16, 2007 15:24

What about using this ?

Code: Select all

CEGUI::MouseCursor::getSingleton( ).getImage( )->getName( )

Vetal_28
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Wed Nov 22, 2006 14:17
Contact:

Postby Vetal_28 » Tue Feb 20, 2007 12:41

Pompei2 wrote:What about using this ?

Code: Select all

CEGUI::MouseCursor::getSingleton( ).getImage( )->getName( )


It work, I was tryed this variant, but just otherwise, and it doesn't work. But now its all good. Thanks! :wink:


Return to “Modifications / Integrations / Customisations”

Who is online

Users browsing this forum: No registered users and 3 guests