1994689c1Smrg<sect1 id="Label_Widget"> 2994689c1Smrg<title>Label Widget</title> 3994689c1Smrg<!-- .XS --> 4994689c1Smrg<!-- Label Widget --> 5994689c1Smrg<!-- .XE --> 65ec34c4cSmrg<indexterm significance="preferred"><primary>Label widget</primary></indexterm> 7994689c1Smrg<literallayout class="monospaced"> 8994689c1Smrg<!-- .TA 2.0i --> 9994689c1Smrg<!-- .ta 2.0i --> 10994689c1Smrg<!-- .sp --> 11994689c1SmrgApplication header file <X11/Xaw/Label.h> 125ec34c4cSmrg<indexterm><primary>Label.h</primary></indexterm> 13994689c1SmrgClass header file <X11/Xaw/LabelP.h> 145ec34c4cSmrg<indexterm><primary>LabelP.h</primary></indexterm> 15994689c1SmrgClass labelWidgetClass 165ec34c4cSmrg<indexterm><primary>labelWidgetClass</primary></indexterm> 17994689c1SmrgClass Name Label 185ec34c4cSmrg<indexterm><primary>Label widget</primary><secondary>class name</secondary></indexterm> 19994689c1SmrgSuperclass Simple 20994689c1Smrg<!-- .sp --> 21994689c1Smrg</literallayout> 22994689c1Smrg<para> 23994689c1Smrg<!-- .LP --> 24994689c1SmrgA Label widget holds a graphic displayed within a 25994689c1Smrgrectangular region of the screen. The graphic may be a 26994689c1Smrgtext string containing multiple lines of characters in an 27994689c1Smrg8 bit or 16 bit character set (to be displayed with a 28994689c1Smrg<emphasis remap='I'>font</emphasis>), or in a multi-byte encoding (for use with a 29994689c1Smrg<emphasis remap='I'>fontset</emphasis>). The graphic may also be a bitmap or 30994689c1Smrgpixmap. The Label widget will allow its graphic to be 31994689c1Smrgleft, right, or center justified. Normally, this widget 32994689c1Smrgcan be neither selected nor directly edited by the user. 33994689c1SmrgIt is intended for use as an output device only. 34994689c1Smrg</para> 35421c997bSmrg<sect2 id='Label::Resources'> 36994689c1Smrg<title>Resources</title> 37994689c1Smrg<para> 38994689c1Smrg<!-- .LP --> 39994689c1SmrgWhen creating a Label widget instance, the following resources are 40994689c1Smrgretrieved from the argument list or from the resource database: 41994689c1Smrg</para> 42994689c1Smrg<para> 43994689c1Smrg<!-- .LP --> 445ec34c4cSmrg<indexterm><primary>Label widget</primary><secondary>resources</secondary></indexterm> 45994689c1Smrg<informaltable> 46994689c1Smrg <tgroup cols='5' align='center'> 47994689c1Smrg <colspec colname='c1'/> 48994689c1Smrg <colspec colname='c2'/> 49994689c1Smrg <colspec colname='c3'/> 50994689c1Smrg <colspec colname='c4'/> 51994689c1Smrg <colspec colname='c5'/> 52994689c1Smrg <thead> 53994689c1Smrg <row> 54994689c1Smrg <entry>Name</entry> 55994689c1Smrg <entry>Class</entry> 56994689c1Smrg <entry>Type</entry> 57994689c1Smrg <entry>Notes</entry> 58994689c1Smrg <entry>Default Value</entry> 59994689c1Smrg </row> 60994689c1Smrg </thead> 61994689c1Smrg <tbody> 62994689c1Smrg <row> 63994689c1Smrg <entry>accelerators</entry> 64994689c1Smrg <entry>Accelerators</entry> 65994689c1Smrg <entry>AcceleratorTable</entry> 66994689c1Smrg <entry></entry> 67994689c1Smrg <entry>NULL</entry> 68994689c1Smrg </row> 69994689c1Smrg <row> 70994689c1Smrg <entry>ancestorSensitive</entry> 71994689c1Smrg <entry>AncestorSensitive</entry> 72994689c1Smrg <entry>Boolean</entry> 73994689c1Smrg <entry>D</entry> 74994689c1Smrg <entry>True</entry> 75994689c1Smrg </row> 76994689c1Smrg <row> 77994689c1Smrg <entry>background</entry> 78994689c1Smrg <entry>Background</entry> 79994689c1Smrg <entry>Pixel</entry> 80994689c1Smrg <entry></entry> 81994689c1Smrg <entry>XtDefaultBackground</entry> 82994689c1Smrg </row> 83994689c1Smrg <row> 84994689c1Smrg <entry>backgroundPixmap</entry> 85994689c1Smrg <entry>Pixmap</entry> 86994689c1Smrg <entry>Pixmap</entry> 87994689c1Smrg <entry></entry> 88994689c1Smrg <entry>XtUnspecifiedPixmap</entry> 89994689c1Smrg </row> 90994689c1Smrg <row> 91994689c1Smrg <entry>bitmap</entry> 92994689c1Smrg <entry>Bitmap</entry> 93994689c1Smrg <entry>Pixmap</entry> 94994689c1Smrg <entry></entry> 95994689c1Smrg <entry>None</entry> 96994689c1Smrg </row> 97994689c1Smrg <row> 98994689c1Smrg <entry>borderColor</entry> 99994689c1Smrg <entry>BorderColor</entry> 100994689c1Smrg <entry>Pixel</entry> 101994689c1Smrg <entry></entry> 102994689c1Smrg <entry>XtDefaultForeground</entry> 103994689c1Smrg </row> 104994689c1Smrg <row> 105994689c1Smrg <entry>borderPixmap</entry> 106994689c1Smrg <entry>Pixmap</entry> 107994689c1Smrg <entry>Pixmap</entry> 108994689c1Smrg <entry></entry> 109994689c1Smrg <entry>XtUnspecifiedPixmap</entry> 110994689c1Smrg </row> 111994689c1Smrg <row> 112994689c1Smrg <entry>borderWidth</entry> 113994689c1Smrg <entry>BorderWidth</entry> 114994689c1Smrg <entry>Dimension</entry> 115994689c1Smrg <entry></entry> 116994689c1Smrg <entry>1</entry> 117994689c1Smrg </row> 118994689c1Smrg <row> 119994689c1Smrg <entry>colormap</entry> 120994689c1Smrg <entry>Colormap</entry> 121994689c1Smrg <entry>Colormap</entry> 122994689c1Smrg <entry></entry> 123994689c1Smrg <entry>Parent's Colormap</entry> 124994689c1Smrg </row> 125994689c1Smrg <row> 126994689c1Smrg <entry>cursor</entry> 127994689c1Smrg <entry>Cursor</entry> 128994689c1Smrg <entry>Cursor</entry> 129994689c1Smrg <entry></entry> 130994689c1Smrg <entry>None</entry> 131994689c1Smrg </row> 132994689c1Smrg <row> 133994689c1Smrg <entry>cursorName</entry> 134994689c1Smrg <entry>Cursor</entry> 135994689c1Smrg <entry>String</entry> 136994689c1Smrg <entry></entry> 137994689c1Smrg <entry>NULL</entry> 138994689c1Smrg </row> 139994689c1Smrg <row> 140994689c1Smrg <entry>depth</entry> 141994689c1Smrg <entry>Depth</entry> 142994689c1Smrg <entry>int</entry> 143994689c1Smrg <entry>C</entry> 144994689c1Smrg <entry>Parent's Depth</entry> 145994689c1Smrg </row> 146994689c1Smrg <row> 147994689c1Smrg <entry>destroyCallback</entry> 148994689c1Smrg <entry>Callback</entry> 149994689c1Smrg <entry>XtCallbackList</entry> 150994689c1Smrg <entry></entry> 151994689c1Smrg <entry>NULL</entry> 152994689c1Smrg </row> 153994689c1Smrg <row> 154994689c1Smrg <entry>encoding</entry> 155994689c1Smrg <entry>Encoding</entry> 156994689c1Smrg <entry>UnsignedChar</entry> 157994689c1Smrg <entry></entry> 158994689c1Smrg <entry>XawTextEncoding8bit</entry> 159994689c1Smrg </row> 160994689c1Smrg <row> 161994689c1Smrg <entry>font</entry> 162994689c1Smrg <entry>Font</entry> 163994689c1Smrg <entry>XFontStruct</entry> 164994689c1Smrg <entry></entry> 165994689c1Smrg <entry>XtDefaultFont</entry> 166994689c1Smrg </row> 167994689c1Smrg <row> 168994689c1Smrg <entry>fontSet</entry> 169994689c1Smrg <entry>FontSet</entry> 170994689c1Smrg <entry>XFontSet</entry> 171994689c1Smrg <entry></entry> 172994689c1Smrg <entry>XtDefaultFontSet</entry> 173994689c1Smrg </row> 174994689c1Smrg <row> 175994689c1Smrg <entry>foreground</entry> 176994689c1Smrg <entry>Foreground</entry> 177994689c1Smrg <entry>Pixel</entry> 178994689c1Smrg <entry></entry> 179994689c1Smrg <entry>XtDefaultForeground</entry> 180994689c1Smrg </row> 181994689c1Smrg <row> 182994689c1Smrg <entry>height</entry> 183994689c1Smrg <entry>Height</entry> 184994689c1Smrg <entry>Dimension</entry> 185994689c1Smrg <entry>A</entry> 186994689c1Smrg <entry>graphic height + 2 * <function>internalHeight</function></entry> 187994689c1Smrg </row> 188994689c1Smrg <row> 189994689c1Smrg <entry>insensitiveBorder</entry> 190994689c1Smrg <entry>Insensitive</entry> 191994689c1Smrg <entry>Pixmap</entry> 192994689c1Smrg <entry></entry> 193994689c1Smrg <entry>GreyPixmap</entry> 194994689c1Smrg </row> 195994689c1Smrg <row> 196994689c1Smrg <entry>internalHeight</entry> 197994689c1Smrg <entry>Height</entry> 198994689c1Smrg <entry>Dimension</entry> 199994689c1Smrg <entry></entry> 200994689c1Smrg <entry>2</entry> 201994689c1Smrg </row> 202994689c1Smrg <row> 203994689c1Smrg <entry>internalWidth</entry> 204994689c1Smrg <entry>Width</entry> 205994689c1Smrg <entry>Dimension</entry> 206994689c1Smrg <entry></entry> 207994689c1Smrg <entry>4</entry> 208994689c1Smrg </row> 209994689c1Smrg <row> 210994689c1Smrg <entry>international</entry> 211994689c1Smrg <entry>International</entry> 212994689c1Smrg <entry>Boolean</entry> 213994689c1Smrg <entry>C</entry> 214994689c1Smrg <entry>False</entry> 215994689c1Smrg </row> 216994689c1Smrg <row> 217994689c1Smrg <entry>justify</entry> 218994689c1Smrg <entry>Justify</entry> 219994689c1Smrg <entry>Justify</entry> 220994689c1Smrg <entry></entry> 221994689c1Smrg <entry>XtJustifyCenter (center)</entry> 222994689c1Smrg </row> 223994689c1Smrg <row> 224994689c1Smrg <entry>label</entry> 225994689c1Smrg <entry>Label</entry> 226994689c1Smrg <entry>String</entry> 227994689c1Smrg <entry></entry> 228994689c1Smrg <entry>name of widget</entry> 229994689c1Smrg </row> 230994689c1Smrg <row> 231994689c1Smrg <entry>leftBitmap</entry> 232994689c1Smrg <entry>LeftBitmap</entry> 233994689c1Smrg <entry>Bitmap</entry> 234994689c1Smrg <entry></entry> 235994689c1Smrg <entry>None</entry> 236994689c1Smrg </row> 237994689c1Smrg <row> 238994689c1Smrg <entry>mappedWhenManaged</entry> 239994689c1Smrg <entry>MappedWhenManaged</entry> 240994689c1Smrg <entry>Boolean</entry> 241994689c1Smrg <entry></entry> 242994689c1Smrg <entry>True</entry> 243994689c1Smrg </row> 244994689c1Smrg <row> 245994689c1Smrg <entry>pointerColor</entry> 246994689c1Smrg <entry>Foreground</entry> 247994689c1Smrg <entry>Pixel</entry> 248994689c1Smrg <entry></entry> 249994689c1Smrg <entry>XtDefaultForeground</entry> 250994689c1Smrg </row> 251994689c1Smrg <row> 252994689c1Smrg <entry>pointerColorBackground</entry> 253994689c1Smrg <entry>Background</entry> 254994689c1Smrg <entry>Pixel</entry> 255994689c1Smrg <entry></entry> 256994689c1Smrg <entry>XtDefaultBackground</entry> 257994689c1Smrg </row> 258994689c1Smrg <row> 259994689c1Smrg <entry>resize</entry> 260994689c1Smrg <entry>Resize</entry> 261994689c1Smrg <entry>Boolean</entry> 262994689c1Smrg <entry></entry> 263994689c1Smrg <entry>True</entry> 264994689c1Smrg </row> 265994689c1Smrg <row> 266994689c1Smrg <entry>screen</entry> 267994689c1Smrg <entry>Screen</entry> 268994689c1Smrg <entry>Screen</entry> 269994689c1Smrg <entry>R</entry> 270994689c1Smrg <entry>Parent's Screen</entry> 271994689c1Smrg </row> 272994689c1Smrg <row> 273994689c1Smrg <entry>sensitive</entry> 274994689c1Smrg <entry>Sensitive</entry> 275994689c1Smrg <entry>Boolean</entry> 276994689c1Smrg <entry></entry> 277994689c1Smrg <entry>True</entry> 278994689c1Smrg </row> 279994689c1Smrg <row> 280994689c1Smrg <entry>translations</entry> 281994689c1Smrg <entry>Translations</entry> 282994689c1Smrg <entry>TranslationTable</entry> 283994689c1Smrg <entry></entry> 284994689c1Smrg <entry>See above</entry> 285994689c1Smrg </row> 286994689c1Smrg <row> 287994689c1Smrg <entry>width</entry> 288994689c1Smrg <entry>Width</entry> 289994689c1Smrg <entry>Dimension</entry> 290994689c1Smrg <entry>A</entry> 291994689c1Smrg <entry>graphic width + 2 * <function>internalWidth</function></entry> 292994689c1Smrg </row> 293994689c1Smrg <row> 294994689c1Smrg <entry>x</entry> 295994689c1Smrg <entry>Position</entry> 296994689c1Smrg <entry>Position</entry> 297994689c1Smrg <entry></entry> 298994689c1Smrg <entry>0</entry> 299994689c1Smrg </row> 300994689c1Smrg <row> 301994689c1Smrg <entry>y</entry> 302994689c1Smrg <entry>Position</entry> 303994689c1Smrg <entry>Position</entry> 304994689c1Smrg <entry></entry> 305994689c1Smrg <entry>0</entry> 306994689c1Smrg </row> 307994689c1Smrg </tbody> 308994689c1Smrg </tgroup> 309994689c1Smrg</informaltable> 310994689c1Smrg<!-- .Ac --> 311994689c1Smrg<!-- .As --> 312994689c1Smrg<!-- .Bg --> 313994689c1Smrg<!-- .Gp --> 314994689c1Smrg<!-- .Bm Bold --> 315994689c1Smrg<!-- .Bc --> 316994689c1Smrg<!-- .Bp --> 317994689c1Smrg<!-- .Bw --> 318994689c1Smrg<!-- .Cm --> 319994689c1Smrg<!-- .Cu --> 320994689c1Smrg<!-- .Cn --> 321994689c1Smrg<!-- .Dp --> 322994689c1Smrg<!-- .Dc --> 323994689c1Smrg<!-- .Le Bold --> 324994689c1Smrg<!-- .Lf Bold --> 325994689c1Smrg<!-- .Ls Bold --> 326994689c1Smrg<!-- .Lg Bold --> 327994689c1Smrg<!-- .Hw --> 328994689c1Smrg<!-- .Ib --> 329994689c1Smrg<!-- .Ih Bold --> 330994689c1Smrg<!-- .In --> 331994689c1Smrg<!-- .Ju Bold --> 332994689c1Smrg<!-- .La Bold --> 333994689c1Smrg<!-- .Ll Bold --> 334994689c1Smrg<!-- .Mm --> 335994689c1Smrg<!-- .Pf --> 336994689c1Smrg<!-- .Pb --> 337994689c1Smrg<!-- .Re Bold --> 338994689c1Smrg<!-- .Sc --> 339994689c1Smrg<!-- .Se --> 340994689c1Smrg<!-- .Tr --> 341994689c1Smrg<!-- .Xy --> 342994689c1Smrg 343994689c1Smrg</para> 344994689c1Smrg</sect2> 345994689c1Smrg</sect1> 346