GTK

From Gui

(Difference between revisions)
(GtkComboBoxEntry is editable=true)
(Layouts)
Line 41: 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)
== Properties ==
== Properties ==

Revision as of 20:54, 15 June 2009

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

Contents

Widgets

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)

Properties

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)

GtkImage

  • storage-type

One of

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

Events

Personal tools