Re: GTK+ modularization

Can I suggest considering a version designed for custom widgets.
And leave it to the embedded developer to selectivley pull in more widgets.

This would be GtkWindow GdkBin  GtkButton and a few more say text input.
basically a very simple toolkit.

After this if you want to use gtk custom widgets are probably the best answer
or bringing in a subset.

So first you would define this core base of widgets that are "must haves"
Then you need to group all the rest based on dependencies to allow
them to be selectively compiled in.
I'd not even include toolbars and menus for example in the base.

Here is my list of base classes


   GtkWindow - Toplevel which can contain other widgets

Display Widgets

   GtkImage - A widget displaying an image
   GtkLabel - A widget that displays a small to medium amount of text

Buttons and Toggles

   GtkButton - A widget that creates a signal when clicked on
   GtkCheckButton - Create widgets with a discrete toggle button
   GtkRadioButton - A choice from multiple check buttons
   GtkToggleButton - Create buttons which retain their state

Numeric/Text Data Entry

   GtkEntry - A single line text entry field

Multiline Text Editor

   Text Widget Overview - Overview of GtkTextBuffer, GtkTextView, and friends
   GtkTextIter - Text buffer iterator
   GtkTextMark - A position in the buffer preserved across buffer modifications
   GtkTextBuffer - Stores attributed text for display in a GtkTextView
   GtkTextTag - A tag that can be applied to text in a GtkTextBuffer
   GtkTextTagTable - Collection of tags that can be used together
   GtkTextView - Widget that displays a GtkTextBuffer

Menus, Combo Box, Toolbar

   GtkComboBox - A widget used to choose from a list of items
   GtkComboBoxEntry - A text entry field with a dropdown list
   GtkMenu - A menu widget
   GtkMenuBar - A subclass widget for GtkMenuShell which holds
GtkMenuItem widgets
   GtkMenuItem - The widget used for item in menus
   GtkMenuShell - A base class for menu objects
   GtkImageMenuItem - A menu item with an icon
   GtkRadioMenuItem - A choice from multiple check menu items
   GtkCheckMenuItem - A menu item with a check box
   GtkSeparatorMenuItem - A separator used in menus

Layout Containers

   GtkFixed - A container which allows you to position widgets at
fixed coordinates
   GtkLayout - Infinite scrollable area containing child widgets
and/or custom drawing


   GtkFrame - A bin with a decorative frame and optional label
   GtkHSeparator - A horizontal separator
   GtkVSeparator - A vertical separator


   GtkHScrollbar - A horizontal scrollbar
   GtkVScrollbar - A vertical scrollbar
   GtkScrolledWindow - Adds scrollbars to its child widget


   GtkDrawingArea - A widget for custom user interface elements
   GtkEventBox - A widget used to catch events for widgets which do
not have their own window

   GtkViewport - An adapter which makes widgets scrollable

Abstract Base Classes

   GtkBin - A container with just one child
   GtkBox - Base class for box containers
   GtkContainer - Base class for widgets which contain other widgets
   GtkItem - Abstract base class for GtkMenuItem, GtkListItem and GtkTreeItem
   GtkMisc - Base class for widgets with alignments and padding
   GtkObject - The base class of the GTK+ type hierarchy
   GtkScrollbar - Base class for GtkHScrollbar and GtkVScrollbar
   GtkSeparator - Base class for GtkHSeparator and GtkVSeparator
   GtkWidget - Base class for all widgets

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