1XmWidgetGetBaselines(library call) XmWidgetGetBaselines(library call)
2
3
4
6 XmWidgetGetBaselines — Retrieves baseline information for a widget
7
9 #include <Xm/Xm.h>
10 Boolean XmWidgetGetBaselines(
11 Widget widget,
12 Dimension **baselines,
13 int *line_count);
14
16 XmWidgetGetBaselines returns an array that contains one or more base‐
17 line values associated with the specified widget. The baseline of any
18 given line of text is a vertical offset in pixels from the origin of
19 the widget's bounding box to the given baseline.
20
21 widget Specifies the ID of the widget for which baseline values are
22 requested
23
24 baselines Returns an array that contains the value of each baseline of
25 text in the widget. The function allocates space to hold the
26 returned array. The application is responsible for managing
27 the allocated space. The application can recover this allo‐
28 cated space by calling XtFree.
29
30 line_count
31 Returns the number of lines in the widget
32
34 Returns a Boolean value that indicates whether the widget contains a
35 baseline. If the value is True, the function returns a value for each
36 baseline of text. If it is False, the function was unable to return a
37 baseline value.
38
40 XmWidgetGetDisplayRect(3).
41
42
43
44 XmWidgetGetBaselines(library call)