12.07.2015 Views

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

Athena Widget Set - C Language Interface - X Consortium ... - X.Org

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Text <strong>Widget</strong>stypevalue_returnlength_returnformat_returnSpecifies a pointer to the atom into which the propertytype of the converted value of the selection is tobe stored. For instance, either file name or text mighthave property type XA_STRING.Returns a pointer into which a pointer to the convertedvalue of the selection is to be stored. The selectionowner is responsible for allocating this storage. Thememory is considered owned by the toolkit, and isfreed by XtFree when the Intrinsics selection mechanismis done with it.Returns a pointer into which the number of elementsin value is to be stored. The size of each element isdetermined by format.Returns a pointer into which the size in bits of thedata elements of the selection value is to be stored.If this function returns True then the Text widget will assume that the source hastaken care of converting the selection, Otherwise the Text widget will attempt toconvert the selection itself.If the source needs to know when the text selection is modified it should define a<strong>Set</strong>Selection procedure:void <strong>Set</strong>Selection( w, end, selection);wstartendSpecifies the TextSrc object.Specifies the character position of the beginning of the new text selection.Specifies the character position of the end of the new text selection.selectionSpecifies the type of selection that was requested (e.g. PRIMARY).Ascii Sink Object and Multi Sink ObjectApplication Header file Class Header file Class asciiSinkObjectClassClass Name AsciiSinkSuperclass TextSinkThe AsciiSink or MultiSink object is used by a text widget to render the text. Dependingon its international resource, a AsciiText widget will create one or the92

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!