GTK

From Gui

(Difference between revisions)
(Classified textareas)
(add absolute layout)
 
(6 intermediate revisions not shown)
Line 3: Line 3:
== Widgets ==
== Widgets ==
-
* GtkDialog [[Widget/Container]]
+
* GtkDialog [[Widget/Frame]]
-
* GtkAboutDialog [[Widget/Container]]
+
* GtkAboutDialog [[Widget/Frame]]
-
* GtkAssistant [[Widget/Container]]
+
* GtkAssistant [[Widget/Frame]]
-
* GtkScrolledWindow [[Widget/Container]]
+
* GtkScrolledWindow [[Widget/Frame]]
-
* GtkWindow [[Widget/Container]]
+
* GtkWindow [[Widget/Frame]]
-
** GtkFrame <!-- like fieldset -->
+
** GtkFrame [[Widget/Frame]]
** GtkLabel [[Widget/Label]]
** GtkLabel [[Widget/Label]]
** GtkAccelLabel [[Widget/Label]]
** GtkAccelLabel [[Widget/Label]]
Line 17: Line 17:
** GtkLinkButton [[Widget/Button]]
** GtkLinkButton [[Widget/Button]]
** GtkToolButton [[Widget/Button]]
** GtkToolButton [[Widget/Button]]
-
** GtkCheckButton
+
** GtkCheckButton [[Widget/Checkbox]]
-
** GtkRadioButton
+
** GtkRadioButton [[Widget/Checkbox]]
-
** GtkToggleButton
+
** GtkToggleButton [[Widget/Checkbox]]
** GtkScaleButton
** GtkScaleButton
** GtkVolumeButton
** GtkVolumeButton
Line 28: Line 28:
** GtkSpinButton
** GtkSpinButton
** GtkTextView [[Widget/Label]]
** GtkTextView [[Widget/Label]]
-
** GtkTreeView
+
** GtkTreeView (has some features like [[Widget/Listbox]], but many more)
** GtkCellView
** GtkCellView
** GtkIconView
** GtkIconView
-
** GtkComboBox
+
** GtkComboBox [[Widget/Listbox]]
 +
** GtkComboBoxEntry [[Widget/Listbox]]
** GtkMenu
** GtkMenu
** GtkMenuBar
** GtkMenuBar
Line 40: Line 41:
** GtkDrawingArea
** GtkDrawingArea
** GtkNotebook
** GtkNotebook
 +
 +
== Layouts ==
 +
 +
Similar to Tk, especially Table (Grid)
 +
 +
=== Horizontal packing ===
 +
 +
* Horizontal padding only, widget always fills full height
 +
* Widget can be stretched to cell or extra padding can be automatically added
 +
 +
=== Vertical packing ===
 +
 +
* Vertical padding only, widget always fills full width
 +
* Widget can be stretched to cell or extra padding can be automatically added
 +
 +
=== Table (Grid) packing ===
 +
 +
* Basically, horizontal and vertical packed cells that are tied to each other in row/column relationships
 +
* Widgets may be padded horizontal and vertically
 +
* Widgets may span multiple cells (rows/columns)
 +
 +
=== Layout (Absolute/Place) ===
 +
 +
* Widgets are absolutely sized and positioned withing the container
== Properties ==
== Properties ==

Current revision as of 20:56, 15 June 2009

http://library.gnome.org/devel/gtk/stable/

Contents

[edit] Widgets

[edit] Layouts

Similar to Tk, especially Table (Grid)

[edit] Horizontal packing

  • Horizontal padding only, widget always fills full height
  • Widget can be stretched to cell or extra padding can be automatically added

[edit] Vertical packing

  • Vertical padding only, widget always fills full width
  • Widget can be stretched to cell or extra padding can be automatically added

[edit] Table (Grid) packing

  • Basically, horizontal and vertical packed cells that are tied to each other in row/column relationships
  • Widgets may be padded horizontal and vertically
  • Widgets may span multiple cells (rows/columns)

[edit] Layout (Absolute/Place)

  • Widgets are absolutely sized and positioned withing the container

[edit] Properties

[edit] GtkLabel / GtkAccelLabel

  • label
  • selectable
  • wrap
  • wrap-mode
  • width-chars
  • max-width-chars
  • single-line-mode
  • ellipsize
  • justify
  • use-markup
  • use-underline
    • pattern
  • mnemonic-keyval
  • mnemonic-widget
    • (also, accel-widget for GtkAccelLabel)

[edit] GtkImage

  • storage-type

[edit] One of

  • file
  • gicon
  • icon-set
  • image
  • pixbuf
  • stock

[edit] Events

Personal tools