comparison src/glyphs-widget.c @ 5384:3889ef128488

Fix misspelled words, and some grammar, across the entire source tree. See xemacs-patches message with ID <AANLkTi=edkEKtK3pZ60ytsG5pTJQy2TjAEVCZCLOa-oA@mail.gmail.com>.
author Jerry James <james@xemacs.org>
date Thu, 24 Mar 2011 11:00:11 -0600
parents 8b2f75cecb89
children 4dee0387b9de
comparison
equal deleted inserted replaced
5383:294ab9180fad 5384:3889ef128488
279 { 279 {
280 int charheight = 0; 280 int charheight = 0;
281 widget_query_string_geometry (text, face, 281 widget_query_string_geometry (text, face,
282 0, &charheight, domain); 282 0, &charheight, domain);
283 /* For the returned value to be useful it needs to be big enough to 283 /* For the returned value to be useful it needs to be big enough to
284 accomodate the largest single-height widget. This is currently 284 accommodate the largest single-height widget. This is currently
285 the edit-field. */ 285 the edit-field. */
286 return charheight + 2 * widget_spacing (domain) 286 return charheight + 2 * widget_spacing (domain)
287 + 4 * widget_border_width (domain); 287 + 4 * widget_border_width (domain);
288 } 288 }
289 289
1301 instance how should the search dialog be organized for alignment? 1301 instance how should the search dialog be organized for alignment?
1302 The obvious choice of two vertical columns does not work since the 1302 The obvious choice of two vertical columns does not work since the
1303 size of individual widgets will affect where they get placed. The 1303 size of individual widgets will affect where they get placed. The
1304 same is true for several rows of widgets. To solve this problem we 1304 same is true for several rows of widgets. To solve this problem we
1305 introduce the notion of `logical_unit_height'. This is a size 1305 introduce the notion of `logical_unit_height'. This is a size
1306 quantity that is designed to be big enough to accomodate the 1306 quantity that is designed to be big enough to accommodate the
1307 largest `single height unit'. The function 1307 largest `single height unit'. The function
1308 widget_logical_unit_height() determines the value of this in 1308 widget_logical_unit_height() determines the value of this in
1309 pixels. It is dependent on the widget face and some combination of 1309 pixels. It is dependent on the widget face and some combination of
1310 spacing and border-width. Thus if users specify left or right 1310 spacing and border-width. Thus if users specify left or right
1311 justification in a vertical layout they get something in logical 1311 justification in a vertical layout they get something in logical
1671 Logical widget units do not take into account adjustments made for 1671 Logical widget units do not take into account adjustments made for
1672 layout borders, so this adjustment is approximated. 1672 layout borders, so this adjustment is approximated.
1673 1673
1674 If the components of a widget layout are justified to the top or the 1674 If the components of a widget layout are justified to the top or the
1675 bottom then they are aligned in terms of `logical units'. This is a 1675 bottom then they are aligned in terms of `logical units'. This is a
1676 size quantity that is designed to be big enough to accomodate the 1676 size quantity that is designed to be big enough to accommodate the
1677 largest `single height' widget. It is dependent on the widget face and 1677 largest `single height' widget. It is dependent on the widget face and
1678 some combination of spacing and border-width. Thus if you specify top 1678 some combination of spacing and border-width. Thus if you specify top
1679 or bottom justification in a vertical layout the subcontrols are laid 1679 or bottom justification in a vertical layout the subcontrols are laid
1680 out one per logical unit. This allows adjoining layouts to have 1680 out one per logical unit. This allows adjoining layouts to have
1681 identical alignment for their subcontrols. 1681 identical alignment for their subcontrols.