[cairo] Implementing GUI with Cairo
mike.emmel at gmail.com
Mon Apr 18 06:30:00 PDT 2005
This is actually a classic problem you need a window manager. For
learning purposes the GTK linux-fb code is probably the cleanest
example of a complete window/surface manager its the core code from a
Xserver. Or even simpler look at DirectFB. You can look at the Xserver
also. There are also numerous other small widow managers literally
hundreds your best bet is to look at embedded ones for simplicity.
The recent versions of GTK support cairo and might prove useful as a
resource. In my opinion if you have reached this point I'd use and
existing code base the size of a complete graphics system is generally
much larger then most operating systems.
On 4/17/05, Jonathan Roewen <jonathan.roewen at gmail.com> wrote:
> I'm making a hobby OS, and I've successfully got cairo working in my
> small kernel, and am now ready to tackle building a GUI based on the
> cairo graphics library.
> The aim is to have a completely vector-graphics based GUI, and I'm
> wondering how to best achieve this with the cairo graphics library.
> My current idea is to have a separate cairo_t object for each layer,
> all sharing the same surface. However, one of the few problems I'm
> having is figuring out how to change properties of graphics already
> For instance: changing the colours of a button for a depressed state,
> and moving a window around.
> The other problem is I'm not sure on the proper way to make cairo
> redraw [parts of] the image(s).
> Any insight would be greatly appreciated.
> cairo mailing list
> cairo at cairographics.org
More information about the cairo