HippoCanvas: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 9: Line 9:
HippoCanvas was originally designed to be a cross-platform UI layer built on top of other windowing systems. It is used in Sugar to work around deficiencies GTK's layout system. HippoCanvas also makes it easier to prototype custom widgets, and its Python interface can be somewhat simpler than native GTK widgets.
HippoCanvas was originally designed to be a cross-platform UI layer built on top of other windowing systems. It is used in Sugar to work around deficiencies GTK's layout system. HippoCanvas also makes it easier to prototype custom widgets, and its Python interface can be somewhat simpler than native GTK widgets.


=== Canvas object ===
== Canvas object ==


=== CanvasItem object ===
== CanvasItem object ==


=== CanvasBox object ===
== CanvasBox object ==


=== CanvasWidget object ===
== CanvasWidget object ==


=== CanvasContext object ===
== CanvasContext object ==


=== CanvasImage object ===
== CanvasImage object ==


=== CanvasText object ===
== CanvasText object ==


=== CanvasLink object ===
== CanvasLink object ==


=== Links ===
== Links ==


* [http://log.ometer.com/2006-10.html#14 A blog entry] on the rationale for HippoCanvas.
* [http://log.ometer.com/2006-10.html#14 A blog entry] on the rationale for HippoCanvas.

Revision as of 18:52, 19 February 2007

This article is a stub. You can help the OLPC project by expanding it.

HippoCanvas is a generic user interface element that can draw Cairo graphics, respond to key and mouse events, and lay out other widgets. It is currently used to implement a number of Sugar's custom widgets (toolbars, rounded buttons, etc.) and to lay out the screen.

On the OLPC, HippoCanvas is a GTK widget and it can contain other GTK widgets, so the programmer can freely combine HippoCanvas and other widgets. While Sugar does not require that activities be written using HippoCanvas, those that do can look more visually consistent with other activities.

Rationale

HippoCanvas was originally designed to be a cross-platform UI layer built on top of other windowing systems. It is used in Sugar to work around deficiencies GTK's layout system. HippoCanvas also makes it easier to prototype custom widgets, and its Python interface can be somewhat simpler than native GTK widgets.

Canvas object

CanvasItem object

CanvasBox object

CanvasWidget object

CanvasContext object

CanvasImage object

CanvasText object

CanvasLink object

Links