Jump to content
  • Advertisement
Sign in to follow this  
z_k

XftDrawString8() in X11 programming

This topic is 4025 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi how can i delete text (draw text in display with XftDrawString8()) and draw another text in loop in display? Any idea?

Share this post


Link to post
Share on other sites
Advertisement
If I understand your question correctly, you want to erase some text you've written to a window and write some other text? In that case you'll want to fill that area with the window's background colour, then write your new text.

People with a Windows background tend to equate Xlib with Win32: it isn't even close. Xlib is a low-level drawing library that happens to understand 2 things: windows and events. Windows, in X lingo, are plain canvasses that can receive (and emit) events. They are not widgets/controls/components. In a sense, Xlib is a network-transparent, asynchronous library more akin to GDI. You definitely don't want to use it to write applications or user interfaces. Use a toolkit for that.

Also — and please do not take offense — are you sure you should be attempting X11 programming? It isn't trivial, and your posting history suggests you're barely getting started with GNU/Linux and GCC (and maybe even C). In fact, a lot of your questions are answered in the documentation already, leading me to believe that you aren't even attempting to learn it.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!