Whole document tree
LineAnnotation
Name LineAnnotation -- Writer's or editor's comment on
a line of program code within an Example, ProgramListing,
or Screen
Description Writer's or editor's comment on
a line of program code within an Example, ProgramListing,
or Screen. LineAnnotations are a document author's
comments on the code, not the comments written
into the code itself by the code's author.
LineAnnotation may contain plain text and in-line elements.
It has common attributes.
Children LineAnnotation contains these elements:
Abbrev , Acronym , Action , Anchor , Application , Author , AuthorInitials , Citation , CiteRefEntry , CiteTitle , ClassName , CmdSynopsis , Command , Comment , ComputerOutput , CorpAuthor , Database , Email , Emphasis , EnVar , ErrorCode , ErrorName , ErrorType , Filename , FirstTerm , Footnote , FootnoteRef , ForeignPhrase , FuncSynopsis , Function , GUIButton , GUIIcon , GUILabel , GUIMenu , GUIMenuItem , GUISubmenu , GlossTerm , Hardware , InlineEquation , InlineGraphic , Interface , InterfaceDefinition , KeyCap , KeyCode , KeyCombo , KeySym , Link , Literal , Markup , MediaLabel , MenuChoice , ModeSpec , MouseButton , MsgText , OLink , Option , Optional , OtherCredit , #PCDATA, Parameter , Phrase , ProductName , ProductNumber , Prompt , Property , Quote , Replaceable , ReturnValue , RevHistory , SGMLTag , StructField , StructName , Subscript , Superscript , Symbol , Synopsis , SystemItem , Token , Trademark , Type , ULink , UserInput , WordAsWord , XRef .
Examples <EXAMPLE ID="EX-1002-5-4">
<TITLE>Example of switching graphics contexts
</TITLE>
<PROGRAMLISTING>GC gc1, gc2;
XGCValues values;<LINEANNOTATION>Note capitalization</LINEANNOTATION>
unsigned long valuemask;
.
.
.
/* Open display, create window, etc. */
values.foreground = BlackPixel(display,screen_num);
values.background = WhitePixel(display,screen_num);
gc1 = XCreateGC(display, RootWindow(display, screen_num),
(GCForeground | GCBackground), &values);
values.foreground = WhitePixel(display,screen_num);
values.background = BlackPixel(display,screen_num);
gc2 = XCreateGC(display, RootWindow(display, screen_num),
(GCForeground | GCBackground), &values);
/* Now you can use either gc in drawing routines, thereby
* quickly swapping the foreground and background colors */
</PROGRAMLISTING>
</EXAMPLE>