head 1.1; branch 1.1.1; access; symbols netbsd-10-1-RELEASE:1.1.1.2 libXaw-1-0-16:1.1.1.2 netbsd-8-3-RELEASE:1.1.1.1 netbsd-9-4-RELEASE:1.1.1.1 netbsd-10-0-RELEASE:1.1.1.2 netbsd-10-0-RC6:1.1.1.2 netbsd-10-0-RC5:1.1.1.2 netbsd-10-0-RC4:1.1.1.2 netbsd-10-0-RC3:1.1.1.2 netbsd-10-0-RC2:1.1.1.2 netbsd-10-0-RC1:1.1.1.2 libXaw-1-0-15:1.1.1.2 netbsd-10:1.1.1.2.0.2 netbsd-10-base:1.1.1.2 netbsd-9-3-RELEASE:1.1.1.1 netbsd-9-2-RELEASE:1.1.1.1 libXaw-1-0-14:1.1.1.2 netbsd-9-1-RELEASE:1.1.1.1 netbsd-8-2-RELEASE:1.1.1.1 netbsd-9-0-RELEASE:1.1.1.1 netbsd-9-0-RC2:1.1.1.1 netbsd-9-0-RC1:1.1.1.1 netbsd-9:1.1.1.1.0.18 netbsd-9-base:1.1.1.1 netbsd-8-1-RELEASE:1.1.1.1 netbsd-8-1-RC1:1.1.1.1 netbsd-7-2-RELEASE:1.1.1.1 netbsd-8-0-RELEASE:1.1.1.1 netbsd-8-0-RC2:1.1.1.1 netbsd-8-0-RC1:1.1.1.1 netbsd-7-1-2-RELEASE:1.1.1.1 netbsd-7-1-1-RELEASE:1.1.1.1 netbsd-8:1.1.1.1.0.16 netbsd-8-base:1.1.1.1 netbsd-7-1:1.1.1.1.0.14 netbsd-7-1-RELEASE:1.1.1.1 netbsd-7-1-RC2:1.1.1.1 netbsd-7-1-RC1:1.1.1.1 netbsd-7-0-2-RELEASE:1.1.1.1 netbsd-7-0-1-RELEASE:1.1.1.1 netbsd-7-0:1.1.1.1.0.12 netbsd-7-0-RELEASE:1.1.1.1 netbsd-7-0-RC3:1.1.1.1 netbsd-7-0-RC2:1.1.1.1 libXaw-1-0-13:1.1.1.1 netbsd-7-0-RC1:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.1 netbsd-6-1-5-RELEASE:1.1.1.1 netbsd-7:1.1.1.1.0.10 netbsd-7-base:1.1.1.1 netbsd-6-1-4-RELEASE:1.1.1.1 netbsd-6-0-5-RELEASE:1.1.1.1 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.1 libXaw-1-0-12:1.1.1.1 riastradh-drm2:1.1.1.1.0.8 riastradh-drm2-base:1.1.1.1 netbsd-6-1-3-RELEASE:1.1.1.1 netbsd-6-0-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.1 netbsd-6-0-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.1 libXaw-1-0-11:1.1.1.1 netbsd-6-1:1.1.1.1.0.6 netbsd-6-0-2-RELEASE:1.1.1.1 netbsd-6-1-RELEASE:1.1.1.1 netbsd-6-1-RC4:1.1.1.1 netbsd-6-1-RC3:1.1.1.1 netbsd-6-1-RC2:1.1.1.1 netbsd-6-1-RC1:1.1.1.1 netbsd-6-0-1-RELEASE:1.1.1.1 netbsd-6-0:1.1.1.1.0.4 netbsd-6-0-RELEASE:1.1.1.1 netbsd-6-0-RC2:1.1.1.1 netbsd-6-0-RC1:1.1.1.1 netbsd-6:1.1.1.1.0.2 netbsd-6-base:1.1.1.1 libXaw-1-0-9:1.1.1.1 libXaw-1-0-8:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.1 date 2010.11.21.05.47.28; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2010.11.21.05.47.28; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2021.04.26.21.23.19; author mrg; state Exp; branches; next ; commitid HL9nhJwXbuukDQQC; desc @@ 1.1 log @Initial revision @ text @ Customizing the Text Widget The remainder of this chapter will describe customizing the Text widget. The Text widget may be customized by subclassing, or by creating new sources and sinks. Subclassing is described in detail in Chapter 7; this section will describe only those things that are specific to the Text widget. Attributes of the Text widget base class and creating new sources and sinks will be discussed. The Text widget is made up of a number of different pieces, with the Text widget as the base widget class. It and the AsciiText widget are the only true "widgets" in the Text widget family. The other pieces (sources and sinks) are X Toolkit objects and have no window associated with them. No source or sink is useful unless assigned to a Text widget. Each of the following pieces of the Text widget has a specific purpose, and will be, or has been, discussed in detail in this chapter: Text This is the glue that binds everything else together. This widget reads the text data from the source, and displays the information in the sink. All translations and actions are handled in the Text widget itself. TextSink This object is responsible for displaying and clearing the drawing area. It also reports the configuration of the window that contains the drawing area. The TextSink does not have its own window; instead it does its drawing on the Text widget's window. TextSrc This object is responsible for reading, editing and searching through the text buffer. AsciiSink This object is a subclass of the TextSink and knows how to display ASCII text. Support has been added to display any 8-bit character set, given the font. MultiSink This object is a subclass of the TextSink and knows how to display font sets. AsciiSrc This object is a subclass of the TextSrc and knows how to read strings and files. MultiSrc This object is a subclass of the TextSrc and knows how to read strings and multibyte files, converting them to wide characters based on locale. AsciiText This widget is a subclass of the Text widget. When created, the AsciiText automatically creates and attaches either an AsciiSrc and AsciiSink, or a MultiSrc and MultiSink, to itself. The AsciiText provides the simplest interface to the Athena Text widgets. @ 1.1.1.1 log @initial import of libXaw-1.0.8 @ text @@ 1.1.1.2 log @initial import of libXaw-1.0.14 @ text @d8 1 a8 1 Text widgetcustomizing d32 1 a32 1 Text widget d46 1 a50 1 TextSink object d58 1 a62 1 TextSrc object d68 1 a72 1 AsciiSink object d79 1 a83 1 MultiSink object d89 1 a93 1 AsciiSrc object d99 1 a103 1 MultiSrc object d109 1 a113 1 AsciiText widget @