LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-20-2012, 08:12 AM   #1
Grumpy49
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
XDrawLines in Linux


Are there any alternatives to Xlib routines such as XDrawLines for Linux that take regular or long ints as drawing coordinates? The Xlib routines typically use short ints for drawing coordinates but I sometimes need to use coordinates that exceed the range of short ints.
 
Old 07-20-2012, 08:53 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,219

Rep: Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309Reputation: 5309
Seriously? What's the display resolution of the target device, and what is the range of a short int on that device? And for that matter, what's the range of a regular int on that device?

Qt's line drawing routines use ints (http://doc.qt.nokia.com/4.7-snapshot/qline.html). So do the drawing routines provided by Java's Swing libraries.

Last edited by dugan; 07-20-2012 at 09:34 AM.
 
Old 07-22-2012, 03:38 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in <PROGRAMMING> and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration