LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Search Forums
User Name
Password

Notices


Showing results 1 to 11 of 11
Search took 0.02 seconds.
Search: Posts Made By: EdGr
Forum: Programming 04-09-2024, 11:24 AM
Replies: 27
Views: 625
Posted By EdGr
Cairo's anti-aliased drawing is very nice. ...

Cairo's anti-aliased drawing is very nice. gdk_draw's jagged lines were from the dinosaur era.

Themeing changed completely between GTK2 and GTK3. Custom themes need to be rewritten. I coaxed...
Forum: Programming 04-03-2024, 07:25 AM
Replies: 27
Views: 625
Posted By EdGr
Okay, it turns out your program is built like an...

Okay, it turns out your program is built like an editor after all. :)

Drawing from the doubly-linked list should be easy and instantaneous on a modern computer.
Ed
Forum: Programming 04-02-2024, 10:57 AM
Replies: 27
Views: 625
Posted By EdGr
That sounds good: first get the program working...

That sounds good: first get the program working on GTK3/Cairo, and then re-engineer it to use a doubly-linked list.

BTW, I have written a dozen editors. What they edit is completely different,...
Forum: Programming 04-02-2024, 06:44 AM
Replies: 27
Views: 625
Posted By EdGr
That is good to hear. :) Yes. The drawing...

That is good to hear. :)

Yes. The drawing should be fast enough that a pre-rendered image is not needed.

That will work too, but the pre-rendered image needs to be kept in sync with the...
Forum: Programming 04-01-2024, 11:52 AM
Replies: 27
Views: 625
Posted By EdGr
Programming = Algorithms + Data Structures ...

Programming = Algorithms + Data Structures

Data structures are half of programming. Countless books have been written.

Read about the C struct. Design a struct to hold data for a single note....
Forum: Programming 04-01-2024, 10:17 AM
Replies: 27
Views: 625
Posted By EdGr
hazel - Okay, no drag-drop. :) The main...

hazel - Okay, no drag-drop. :)

The main difference between the toolkits is that Cairo cannot draw on a GdkPixbuf. GdkPixbuf was replaced by the Cairo image surface. If a GdkPixbuf is still...
Forum: Programming 04-01-2024, 07:03 AM
Replies: 27
Views: 625
Posted By EdGr
Thanks for the explanation! Your program is a...

Thanks for the explanation! Your program is a simple editor.

I found that drag-drop had to be implemented differently on GTK3 compared to GTK2 because the Cairo->GDK->X11 pipeline operates in the...
Forum: Programming 03-31-2024, 12:30 PM
Replies: 27
Views: 625
Posted By EdGr
The GTK3 draw handler replaces the expose handler...

The GTK3 draw handler replaces the expose handler in GTK2. The draw handler should do the actual drawing to the screen. The configure handler works in the same way in both GTK2 and GTK3.

Reading...
Forum: Programming 03-28-2024, 01:39 PM
Replies: 27
Views: 625
Posted By EdGr
hazel - You need to write a draw () handler. ...

hazel - You need to write a draw () handler. GTK3 passes the device context on which to draw. teckk's example shows how to do this. It is using a similar surface rather than an image surface which...
Forum: Programming 03-28-2024, 11:07 AM
Replies: 27
Views: 625
Posted By EdGr
The best approach is to create the image surface...

The best approach is to create the image surface and then create a context (cairo_t) from the surface to draw on. The image surface is kept. Contexts are created and destroyed as needed.

Does...
Forum: Programming 03-28-2024, 10:20 AM
Replies: 27
Views: 625
Posted By EdGr
To copy from a surface to a device, use...

To copy from a surface to a device, use cairo_set_source_surface () to select the surface into the device, and then call cairo_paint ().

If you want to read from the surface, create an image...
Showing results 1 to 11 of 11

 

Didn't find what you're looking for? Try Google:


  



All times are GMT -5. The time now is 01:20 PM.

Main Menu
Advertisement
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