diff options
author | Soeren Sandmann <sandmann@daimi.au.dk> | 2003-07-06 15:33:56 +0000 |
---|---|---|
committer | Søren Sandmann Pedersen <ssp@src.gnome.org> | 2003-07-06 15:33:56 +0000 |
commit | e9b612a8a113b034afaa32cb1eb2f42151d03778 (patch) | |
tree | 45b69d262e629f23217fa2300e5fae5cc04c5c22 /docs/widget_geometry.txt | |
parent | c8515b2f8d22c9856fc58f71398eea9e13695fb1 (diff) | |
download | gtk+-e9b612a8a113b034afaa32cb1eb2f42151d03778.tar.gz |
better drawing of GtkMenuItem add notes about GtkMenu remove leftover
Sun Jul 6 17:21:23 2003 Soeren Sandmann <sandmann@daimi.au.dk>
* docs/widget_geometry.txt: better drawing of GtkMenuItem
* docs/widget_geometry.txt: add notes about GtkMenu
* gtk/gtkstyle.c: remove leftover "#include "gtkhandlebox.h""
Diffstat (limited to 'docs/widget_geometry.txt')
-rw-r--r-- | docs/widget_geometry.txt | 113 |
1 files changed, 88 insertions, 25 deletions
diff --git a/docs/widget_geometry.txt b/docs/widget_geometry.txt index 882ecbb944..dbb2de84d7 100644 --- a/docs/widget_geometry.txt +++ b/docs/widget_geometry.txt @@ -2,35 +2,98 @@ This file is some notes about how different widgets are drawn. ============= +GtkMenu + +============= ++----------------------------------------------------------------------------+ +| A | +| +------------------------------------------------------------------------+ | +| |############################# C ########################################| | +| |# D #| | +| |# +-------------------------------------------------------------------+#| | +| |# | |#| | +| |# | |#| | +| |# | |#| | +| |# | Item 1 |#| | +| |# | |#| | +| |# | |#| | +| |# | |#| | +| |# | |#| | +| |# | |#| | +| |# +-------------------------------------------------------------------+#| | +| |# +-------------------------------------------------------------------+#| | +| |# | |#| | +| |# | |#| | +|A|B | |B|A| +| |# | Item 2 |#| | +| |# | |#| | +| |# | |#| | +| |# | |#| | +| |# | |#| | +| |# | |#| | +| |# +-------------------------------------------------------------------+#| | +| |# [...] #| | +| |# +-------------------------------------------------------------------+#| | +| |# | |#| | +| |# | |#| | +| |# | |#| | +| |# | Item n |#| | +| |# | |#| | +| |# | |#| | +| |# | |#| | +| |# | |#| | +| |# | |#| | +| |# +-------------------------------------------------------------------+#| | +| |# D #| | +| |############################# C ########################################| | +| +------------------------------------------------------------------------| | +| A | ++----------------------------------------------------------------------------+ + +A: GtkContainer::border_width +B: xthickness +C: ythickness +D: vertical_padding + +============= + GtkMenuItem ============= -arrowspacing -togglespacing -horizontal_padding - - B - ------------------ - A C D E G A -+----+----------+-----+----------------------+----+-----------+----+ -| | | | ^ | | | | -| | | | | | | | | -| | | | | | | | | -| | | | | | | | | -| | icon | | child | G | | | | -| | | | | | | | | -| | | | | | | | | -| | | | | | | | | -| | | | v | | | | -+----+----------+-----+----------------------+----+-----------+----+ - -A: horizontal_padding -B: width of icon or indicator + toggle_spacing -C: toggle_spacing -D: child's requested size -E: arrow spacing (if the item has a submenu -G: child's requested height (also used for width of arrow field ++----------------------------------------------------------------------------+ +| A | +| +------------------------------------------------------------------------+ | +| |############################# C ########################################| | +| |#+-+------------+--+-------------------------------+--+-------------+-+#| | +| |#| |\\\\\\\\\\\\| | /|\ |**| | |#| | +| |#| |<------E------>| | |**| G | |#| | +| |#| |\\\\\\\\\\\\| | | |**| | |#| | +| |#| |\\\\\\\\\\\\| | | |**| >> | |#| | +| |#| |\\\\\\\\\\\\| | | |**| >>>> | |#| | +| |#| |\\\\\\\\\\\\| | | |**| >>>>>> | |#| | +|A|B|D|\\\\\\\\\\\\| F| Child G |*H| >>>>>>>> |D|B|A| +| |#| |\\\\\\\\\\\\| | | |**| >>>>>> | |#| | +| |#| |\\\\\\\\\\\\| | | |**| >>>> | |#| | +| |#| |\\\\\\\\\\\\| | | |**| >> | |#| | +| |#| |\\\\\\\\\\\\| | | |**| | |#| | +| |#| |\\\\\\\\\\\\| | | |**| | |#| | +| |#| |\\\\\\\\\\\\| | \|/ |**| | |#| | +| |#+-+------------+--+-------------------------------+--+-------------+-+#| | +| |############################# C ########################################| | +| +------------------------------------------------------------------------+ | +| A | ++----------------------------------------------------------------------------+ + +A: GtkContainer:border_width +B: xthickness +C: ythickness +D: horizontal_padding +E: toggle_size +F: toggle_spacing +G: Requested height of child (also used for width of arrow +H: arrow_spacing spacing (when the item has a non-vertical submenu) + ============= |