summaryrefslogtreecommitdiff
path: root/docs/widget_geometry.txt
diff options
context:
space:
mode:
authorMark McLoughlin <mark@skynet.ie>2003-06-30 12:57:57 +0000
committerMark McLoughlin <markmc@src.gnome.org>2003-06-30 12:57:57 +0000
commit281a95549c188f6ab910a40c4fd23d8bc271d877 (patch)
tree7a19084f2dfc5e40ebc5032ee7a102ab3b77ff57 /docs/widget_geometry.txt
parent453bf966a68872aa85cb4a66b27a51d7a148d9c0 (diff)
downloadgtk+-281a95549c188f6ab910a40c4fd23d8bc271d877.tar.gz
Add GtkExpander. See discussion in bug #60553.
2003-06-30 Mark McLoughlin <mark@skynet.ie> Add GtkExpander. See discussion in bug #60553. * gtk/gtkexpander.[ch]: add. * gtk/Makefile.am: build gtk-expander.[ch]. * docs/widget_geometry.txt: add info on the layout of GtkExpander.
Diffstat (limited to 'docs/widget_geometry.txt')
-rw-r--r--docs/widget_geometry.txt142
1 files changed, 142 insertions, 0 deletions
diff --git a/docs/widget_geometry.txt b/docs/widget_geometry.txt
index d6627f44f6..c7076f251e 100644
--- a/docs/widget_geometry.txt
+++ b/docs/widget_geometry.txt
@@ -592,3 +592,145 @@ D: INNER_BORDER + (HAVE_FOCUS ? 0 : GtkWidget::focus-line-width
Note - effect here for !interior_focus is that bevel moves in
by focus-line-width when entry gains focus
+
+===============
+
+GtkExpander
+
+===============
+
+ Style properties
+ GtkWidget::focus_line_width
+ GtkWidget::focus_padding
+ GtkExpander::expander_size
+ GtkExpander::expander_spacing
+
+ Properties
+ GtkContainer::border_width
+ GtkExpander::spacing
+
+if (GTK_WIDGET_VISIBLE (bin->child) && interior_focus)
+
++-------------------------------------+
+| A |
+| +---------+-----------------------+ |
+| | C |##########E############| |
+| | +-----+ |#+-------------------+#| |
+| | | | |#| F |#| |
+| | | | |#| +---------------+ |#| |
+|A|C| BxB |C|E|F| label_widget |F|E|A|
+| | | | |#| +---------------+ |#| |
+| | | | |#| F |#| |
+| | +-----+ |#+-------------------+#| |
+| | C |##########E############| |
+| +---------+-----------------------+ |
+| | D | |
+| +---------------------------------+ |
+| | | |
+| | | |
+| | | |
+|A| bin->child |A|
+| | | |
+| | | |
+| | | |
+| +---------------------------------+ |
+| A |
++-------------------------------------+
+
+ A: GtkContainer::border_width
+ B: GtkExpander::expander_size
+ C: GtkExpander::expander_spacing
+ D: GtkExpander::spacing
+ E: GtkWidget::focus_line_width
+ F: GtkWidget::focus_padding
+
+if (GTK_WIDGET_VISIBLE (bin->child) && !interior_focus)
+
++-------------------------------------------+
+| A |
+| +---------------------------------------+ |
+| |##################E####################| |
+| |#+-----------------------------------+#| |
+| |#| F |#| |
+| |#| +---------+---------------------+ |#| |
+| |#| | C | | |#| |
+| |#| | +-----+ | | |#| |
+|A|E|F|C| BxB |C| label_widget |F|E|A|
+| |#| | +-----+ | | |#| |
+| |#| | C | | |#| |
+| |#| +---------+---------------------+ |#| |
+| |#| F |#| |
+| |#+-----------------------------------+#| |
+| |##################E####################| |
+| +---------------------------------------+ |
+| | D | |
+| +---------------------------------------+ |
+| | | |
+| | | |
+| | | |
+|A| bin->child |A|
+| | | |
+| | | |
+| | | |
+| +---------------------------------------+ |
+| A |
++-------------------------------------------+
+
+ A: GtkContainer::border_width
+ B: GtkExpander::expander_size
+ C: GtkExpander::expander_spacing
+ D: GtkExpander::spacing
+ E: GtkWidget::focus_line_width
+ F: GtkWidget::focus_padding
+
+if (!GTK_WIDGET_VISIBLE (bin->child) && interior_focus)
+
++-------------------------------------+
+| A |
+| +---------+-----------------------+ |
+| | C |##########E############| |
+| | +-----+ |#+-------------------+#| |
+| | | | |#| F |#| |
+| | | | |#| +---------------+ |#| |
+|A|C| BxB |C|E|F| label_widget |F|E|A|
+| | | | |#| +---------------+ |#| |
+| | | | |#| F |#| |
+| | +-----+ |#+-------------------+#| |
+| | C |##########E############| |
+| +---------+-----------------------+ |
+| A |
++-------------------------------------+
+
+ A: GtkContainer::border_width
+ B: GtkExpander::expander_size
+ C: GtkExpander::expander_spacing
+ E: GtkWidget::focus_line_width
+ F: GtkWidget::focus_padding
+
+if (!GTK_WIDGET_VISIBLE (bin->child) && !interior_focus)
+
++-------------------------------------------+
+| A |
+| +---------------------------------------+ |
+| |##################E####################| |
+| |#+-----------------------------------+#| |
+| |#| F |#| |
+| |#| +---------+---------------------+ |#| |
+| |#| | C | | |#| |
+| |#| | +-----+ | | |#| |
+|A|E|F|C| BxB |C| label_widget |F|E|A|
+| |#| | +-----+ | | |#| |
+| |#| | C | | |#| |
+| |#| +---------+---------------------+ |#| |
+| |#| F |#| |
+| |#+-----------------------------------+#| |
+| |##################E####################| |
+| +---------------------------------------+ |
+| A |
++-------------------------------------------+
+
+ A: GtkContainer::border_width
+ B: GtkExpander::expander_size
+ C: GtkExpander::expander_spacing
+ E: GtkWidget::focus_line_width
+ F: GtkWidget::focus_padding