Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

textcomp(3u) [debian man page]

TextComp(3U)						    InterViews Reference Manual 					      TextComp(3U)

NAME
TextComp, TextView, TextGraphic, PSText - multiline text component subject, view, structured graphic, and PostScript external representa- tion SYNOPSIS
#include <Unidraw/Components/text.h> DESCRIPTION
TextComp is a GraphicComp that defines a piece of multiline text. It uses a TextGraphic (a subclass of Label) to store its graphical attributes. TextView is a GraphicView for displaying the text. PSText is a PostScriptView that externalizes the subject's information in PostScript form. TEXTCOMP PUBLIC OPERATIONS
TextComp(TextGraphic* = nil) The constructor takes an optional TextGraphic that defines the attributes of the text. virtual void Interpret(Command*) virtual void Uninterpret(Command*) TextComp redefines (Un)interpret to ignore BrushCmd and PatternCmd and to (un)interpret FontCmd. TextGraphic* GetText() Return the TextGraphic that defines the text component's attributes. GetText is simply a more specific form of the GetGraphic oper- ation. TEXTVIEW PUBLIC OPERATIONS
TextView(TextComp* = nil) Create an TextView, optionally supplying the subject. virtual void Interpret(Command*) TextView interprets AlignToGridCmd to align its lower-left to the grid. virtual Manipulator* CreateManipulator( Viewer*, Event&, Transformer*, Tool* ) virtual void InterpretManipulator(Manipulator*) TextView redefines its response to manipulation with a GraphicCompTool. GraphicCompTool will let the user position and type out the component's text using TextManip. Positioning of the text will be influenced by gravity, if any. TextView also defines a response to the ReshapeTool to let the user edit the text. The subject is actually replaced (via ReplaceCmd) with a new TextComp subject posi- tioned at the original TextComp's location but reflecting the edited text. TextComp* GetTextComp() Return the subject. TEXTVIEW PROTECTED OPERATIONS
virtual boolean TextChanged() Return whether the text in the subject is any different from that in the view. TEXTGRAPHIC PUBLIC OPERATIONS
TextGraphic(const char*, int h, Graphic* = nil) TextGraphic(const char*, Graphic*) Create a TextGraphic, specifying its text, optional inter-line spacing, and optional graphic from which to obtain default graphics attributes. TextGraphic stores a copy of the given string (behavior it inherits from Label). If inter-line spacing is not speci- fied, then lines will be separated to reflect the font height reported by PSFont. void SetLineHeight(int) int GetLineHeight() Explicitly set and get the inter-line spacing. virtual boolean operator == (TextGraphic&) virtual boolean operator != (TextGraphic&) Report whether the given graphic contains or does not contain an identical copy of the text in this PSTEXT PUBLIC OPERATIONS
PSText(TextComp* = nil) Construct a PostScript external representation of the given subject, if any. PSTEXT PROTECTED OPERATIONS
const char* Filter(const char* string, int length) Filter excapes embedded control or other special characters that would cause syntax errors in the PostScript output. SEE ALSO
FontCmd(3U), GraphicComp(3U), GraphicCompTool(3U), GraphicView(3U), Grid(3U), Label(3U), PostScriptView(3U), ReshapeTool(3U), align(3U), edit(3U), manips(3U), pspaint(3U) Unidraw 23 January 1991 TextComp(3U)

Check Out this Related Man Page

LineComp(3U)						    InterViews Reference Manual 					      LineComp(3U)

NAME
LineComp, LineView, PSLine, MultiLineComp, MultiLineView, PSMultiLine - line and multiline component subject, view, and PostScript external representation SYNOPSIS
#include <Unidraw/Components/line.h> DESCRIPTION
LineComp is a GraphicComp that defines a line. It uses an Line graphic to store its graphical attributes. LineView is a GraphicView for displaying the line. PSLine is a PostScriptView that externalizes the subject's information in PostScript form. The MultiLine counter- parts of these classes define the component and external representation for a contiguous set of line segments, i.e., an open polygon. Mul- tiLineComp is derived from VerticesComp, MultiLineView is a VerticesView, and PSMultiLine is a PSVertices. LINECOMP PUBLIC OPERATIONS
LineComp(Line* = nil) The constructor takes an optional line graphic that defines the attributes of the line. virtual void Interpret(Command*) LineComp redefines Interpret to ignore PatternCmds. Line* GetLine() Return the Line graphic that defines the line's attributes. GetLine is simply a more specific form of the GetGraphic operation. LINEVIEW PUBLIC OPERATIONS
LineView(LineComp* = nil) Create an LineView, optionally supplying the subject. virtual void Interpret(Command*) LineView interprets AlignToGridCmd to align its first endpoint to the grid. virtual Manipulator* CreateManipulator( Viewer*, Event&, Transformer*, Tool* ) virtual void InterpretManipulator(Manipulator*) LineView redefines its response to manipulation with a GraphicCompTool. The user clicks to specify the first endpoint of the line and then drags to position remaining endpoint. The endpoints will be constrained by gravity, if any. LineView also defines a response to the ReshapeTool, allowing the user to click on one of its endpoints to reposition it. The subject is actually replaced (via ReplaceCmd) with a new LineComp subject reflecting the repositioned endpoint. Repositioning will be influenced by gravity. virtual void GetEndpoints(Coord&, Coord&, Coord&, Coord&) Return the line's endpoints, in canvas coordinates. LineComp* GetLineComp() Return the subject. LINEVIEW PROTECTED OPERATIONS
virtual void CreateHandles() LineView redefines CreateHandles to use a RubberHandles object with two handles, one at each endpoint of the line. PSLINE PUBLIC OPERATIONS
PSLine(LineComp* = nil) Construct a PostScript external representation of the given subject, if any. MULTILINECOMP PUBLIC OPERATIONS
MultiLineComp(SF_MultiLine* = nil) The constructor takes an optional stroked-filled multiline graphic that defines the attributes of the multiline. SF_MultiLine* GetMultiLine() Return the MultiLine graphic that defines the multiline's attributes. GetMultiLine is simply a more specific form of the GetGraphic operation. MULTILINEVIEW PUBLIC OPERATIONS
MultiLineView(MultiLineComp* = nil) Create an MultiLineView, optionally supplying the subject. virtual Manipulator* CreateManipulator( Viewer*, Event&, Transformer*, Tool* ) virtual void InterpretManipulator(Manipulator*) MultiLineView redefines its response to manipulation with a GraphicCompTool. The user clicks the left mouse button to specify each vertex and clicks with the middle mouse button to specify the final vertex. Vertex positioning will be constrained by gravity, if any. MultiLineView also defines a response to the ReshapeTool, allowing the user to click on one of its vertices to reposition it. The subject is actually replaced (via ReplaceCmd) with a new MultiLineComp subject reflecting the repositioned vertex. Reposition- ing will be influenced by gravity. MultiLineComp* GetMultiLineComp() Return the subject. PSMULTILINE PUBLIC OPERATIONS
PSMultiLine(MultiLineComp* = nil) Construct a PostScript external representation of the given subject, if any. PSMULTILINE PROTECTED OPERATIONS
virtual const char* Name() PSMultiLine identifies itself as "MLine" in the PostScript output. SEE ALSO
Event(3I), GraphicComp(3U), GraphicCompTool(3U), GraphicView(3U), Grid(3U), PatternCmd(3U), PostScriptView(3U), ReshapeTool(3U), Rub- band(3I), Transformer(3I), VerticesComp(3U), Viewer(3U), align(3U), edit(3U), lines(3U) Unidraw 22 January 1991 LineComp(3U)
Man Page