GTK

From Gui

(Difference between revisions)
(Container => Frame)
(add absolute layout)
 
(2 intermediate revisions not shown)
Line 32: Line 32:
** GtkIconView
** GtkIconView
** GtkComboBox [[Widget/Listbox]]
** 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