Re: padding




On Monday, November 17, 2003, at 01:14 AM, parakala suma wrote:

Hi
Please telll me what exactly is padding in packing
widgets in gtk2-perl

quoth
http://developer.gnome.org/doc/API/2.0/gtk/GtkBox.html#gtk-box-pack-start :

padding :
extra space in pixels to put between this child and its neighbors, over and above the global amount specified by spacing in GtkBox-struct. If child is a widget at one of the reference ends of box, then padding pixels are also put between child and the reference edge of box.


padding goes around each widget. spacing, specified when you create a box, goes between the widgets.

+--------------+
|+--padding---+|
|| +--------+ ||
|| | widget | ||
|| +--------+ ||
|+------------+|
| spacing |
|+------------+|
|| +--------+ ||
|| | widget | ||
|| +--------+ ||
|+--padding---+|
+--------------+

note: this picture may not be accurate in the non-packing direction.

--
"that's it! you're a genius!" "yes. that's what i think. do you think i deserve a raise?"
- dialogue from 'Godzilla versus Mothra', 1964


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]