Re: [gtk-list] gdk_draw_* and friends



Antonio Campos wrote:
> 
> Digging randomly through the gdk.h include file, I stopped at
> gdk_draw_* functions. I noticed the functions:
[snip]
> and of course:
> gdk_draw_rectangle             (*)
> gdk_draw_arc                        (*)
> 
> Then, I realized than X has more drawing functions...
> I issued an "apropos", and XDrawRectangles, XDrawArcs appeared.
> 
> Then I thought why shouldn't gdk wrap these two X drawing functions as
> well.
> If I'm correct, these two functions are used to send the X Server a
> bunch of rectangles or arcs, which is a very useful thing because the X
> Server may communicate with the clients through a network.
> 
> So, wouldn't be nice to add two more functions to gdk?

They do, in fact, save on network traffic over multiple *Arc or
*Rectangle calls.  I actually wrote and submitted the code to implement
the plural versions of those functions back in the early days of the 1.1
series, but I guess it never got accepted by the powers that be.  Not
entirely sure why.

Owen?  I think you were the one that told me how to submit the code via
ftp, any idea why it was never included?
-- 
Dan
 ____    Kressin   ____   .-----------------------------------.
/___ \____________/ __ \  | Unix SysAdmin                     |
    \  \    /      /  \ | | Frontier Communications           |
 ___/ __\/\/rench_ \__/ | | dkressin@gb.frontiernet.net       |
\____/            \____/  | http://www.vib.org/wrench/        |
                          `-----------------------------------'



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]