| Previous | Next |
Note that the following is NOT an exhaustive list of widgets. There are widgets available with different libraries that aren't included in Glade. Not all the functions for each widget are listed here. For these please refer to the pages linked to in the library section of this tutorial.
| Gtk+ Additional | |||
|---|---|---|---|
| Image | Name | Purpose | Functions and Considerations |
| Horizontal Scale | creates a horizonal slider | You can use this to allow the user to select a value from a range, by sliding the scale bar. It works much like a spin button, you can set min and max, original value, step increment and such. | |
| Vertical Scale | creates a vertical slider | This works just like the horizontal scale, but vertically. | |
| Horizontal Ruler | creates a horizontal ruler | This widget simply puts up a horizontally aligned ruler. You can set the scale of the ruler as you please. | |
| Vertical Ruler | creates a vertical ruler | This is just like the horizontal ruler widget, but vertically aligned. | |
| Alignment Widget | creates a widget in which alignment can be set for child widgets | This is a container widget, in which you can set the location of the child widget exactly (based on the size of the container widget). | |
| Event Box | this widget catches an event | This widget allows you to catch an event for another widget, which doesn't have its own window. | |
| Calendar | creates a calendar widget | You can get the date the user selects with gtk_calender_get_date(). You can also have it mark days, and so on, using the various calendar signals like day_selected, etc. | |
| Progress Bar | A bar that shows the progress of some event | This bar can be set to show either activity (ie a bar just moving back and forth), or a percentage of the completion of something. If you use the percentage mode, you'll have to update the bar with gtk_progress_set_percentage() or gtk_progress_set_value(). | |
| Layout | creates a layout widget | This seems to be a container widget where you can lay out other widgets. I'm not experienced with it, myself. | |
| Aspect Frame | creates a frame in which the child widget keeps its aspect | This widget is a container which controls the aspect of the child widget (ie widget placed within it). You can set the aspect ratio from the properties window in Glade. | |
| Popup Menu | creates a popup menu | This is typically used when the user right clicks on something. The menu is like the pulldown menus used in a menubar, at least from the Glade point of view. | |
| Arrow | creates an arrow | This is just a little display arrow which points in one of the four cardinal directions. | |
| Gtk Curve | a curve that can be changed by the user | see the documentation for more, this is a specialized widget which will be moved out of the gtk+ library in the future | |
| Gamma Curve | an editable gamma curve | see the documentation for more. This is used in the GIMP to edit gamma curves, and is a specialized widget. It'll be moved from gtk+ eventually into another library. | |
| Horizontal Scrollbar | a horizontally aligned scrollbar | Not much to this widget, it's a scrollbar. | |
| Vertical Scrollbar | a vertically aligned scrollbar | Yet another scrollbar. | |
| Color Selection | this is the widget that controls color selection | This widget is the heart of the color selection dialog window (see Gtk+ Basic widgets in this tutorial). You can use the color_changed signal with it, and gtk_color_selection_get_color(), among other functions. | |
| Font Selection | this widget controls font selection | This is the heart of the font selection dialog window (see Gtk+ Basic widgets). Use gtk_font_selection_get_font(), gtk_font_selection_get_font_name(), and so on, with it. | |
| Input Dialog | a widget to allow configuring devices for the XInput extension | see the documentation for gtk+ | |
| Custom Widget | a placeholder for a custom widget | If you are using custom widgets which are not made a part of Glade, you can use this to insert a placeholder for your widget. |
| Previous | Next |