Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » How to know if I am drawing on screen?
How to know if I am drawing on screen? [message #25717] |
Tue, 09 March 2010 09:49 |
chickenk
Messages: 169 Registered: May 2007 Location: Grenoble, France
|
Experienced Member |
|
|
Hi,
I'd like to know the best way to get information, whether my draw object will draw on screen or on an image, for example.
I saw somewhere such code:
func(Draw& w)
{
if(w.IsGui())
... // We are on screen
else
... // other cases
}
But after looking deeper, IsGui() is true on Windows with GDI, but is false under X11 (See implementation of SystemDraw::GetInfo()).
So I suspect this is not the right way... What is better ?
Thanks
Lionel
|
|
|
Goto Forum:
Current Time: Sat Apr 27 22:43:31 CEST 2024
Total time taken to generate the page: 0.03798 seconds
|