Tutorial

Inti Logo

« Scribble, A Simple Example Drawing Program Building an GNU Autotools Project  »

Writing Your Own Widgets

  1. Anatomy of a Widget
  2. Creating a Composite Widget
  3. Creating a widget from scratch

Overview

Although the Inti distribution comes with many types of widgets that should cover most basic needs, there may come a time when you need to create your own new widget type. Writing a new widget in Inti is a lot easier that in GTK+. That's because C can only try to be an object orientated language. C++ is inherently object orientated. How many times have you had to rewrite C functions for a new widget. In C++ you write it once and use it over and over again. But it's not quite that simple. A new widget written in Inti can only be used in an Inti application. If you want a new widget that can be used by other language bindings then you need to write a GTK+ widget in C.

Since Inti uses widget inheritance extensively, and there is already a widget that is close to what you want, it is often possible to make a useful new widget type in just a few lines of code. Once you finish your widget, announce it to the world so other people can benefit. The best place to do this is probably the inti-mail list.



« Scribble, A Simple Example Drawing Program Index
Top
Building an GNU Autotools Project  »