Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous message
chickenk is currently offline  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
 
Read Message
Read Message
Read Message
Previous Topic: Crash when loading images into 64bit exes
Next Topic: Draw::WrawText to paint ASCII sequence
Goto Forum:
  


Current Time: Sat Apr 27 22:43:31 CEST 2024

Total time taken to generate the page: 0.03798 seconds