DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400 Tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400 Tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download
Index: ┃ T V

⟦3ba8847aa⟧ TextFile

    Length: 7062 (0x1b96)
    Types: TextFile
    Names: »V«

Derivation

└─⟦85b835f43⟧ Bits:30000549 8mm tape, Rational 1000, Xlib rev 6.00
    └─ ⟦0c20f784e⟧ »DATA« 
        └─⟦1abbe589f⟧ 
            └─⟦059497ac5⟧ 
                └─⟦this⟧ 

TextFile

with Xlbt_Arithmetic;  
use Xlbt_Arithmetic;  
with Xlbt_Basic;  
use Xlbt_Basic;  
with Xlbt_Font;  
use Xlbt_Font;  
with Xlbt_String;  
use Xlbt_String;  
with Xlbt_Text;  
use Xlbt_Text;

package Xlbp_Text is
------------------------------------------------------------------------------
-- X Library Text - 8-bit characters
--
-- Xlbp_Text - Handle drawing of 8-bit characters
------------------------------------------------------------------------------
-- Copyright 1989 - 1991 by Rational, Santa Clara, California.
-- Copyright 1987 - 1989 by Digital Equipment Corporation, Maynard, Mass.
-- Copyright 1987 - 1989 by Massachusetts Institute of Technology,
--                          Cambridge, Massachusetts.
--
--                  All Rights Reserved.
--
-- Permission to use, copy, modify, and distribute this software and its
-- documentation for any purpose and without fee is hereby granted,
-- provided that the above copyright notice(s) appear in all copies and that
-- both that copyright notice(s) and this permission notice appear in
-- supporting documentation, and that the names of Digital, MIT, or Rational
-- not be used in advertising or publicity pertaining to distribution of
-- the software without specific, written prior permission.
--
-- Digital, MIT, and Rational disclaim all warranties with regard to this
-- software, including all implied warranties of merchantability and fitness,
-- in no event shall Digital, MIT, or Rational be liable for any special,
-- indirect or consequential damages or any damages whatsoever resulting from
-- loss of use, data or profits, whether in an action of contract, negligence
-- or other tortious action, arising out of or in connection with the use or
-- performance of this software.
------------------------------------------------------------------------------

--\f

    procedure X_Draw_String (Display  : X_Display;  
                             Drawable : X_Drawable;  
                             Gc       : X_Gc;  
                             X        : S_Short;  
                             Y        : S_Short;  
                             Text     : X_String);
------------------------------------------------------------------------------
--  Display  - Specifies the display to use.
--  Drawable - Specifies the drawable to draw upon (Window, Pixmap).
--  Gc       - Specifies the graphics context to use.
--  X        - Specifies the X coordinate where drawing begins.
--  Y        - Specifies the Y coordinate where drawing begins.
--  Text     - Specifies the characters to be drawn.
--
-- Draws a series of character items on the specified drawable.
------------------------------------------------------------------------------

    procedure X_Draw_Image_String (Display  : X_Display;  
                                   Drawable : X_Drawable;  
                                   Gc       : X_Gc;  
                                   X        : S_Short;  
                                   Y        : S_Short;  
                                   Text     : X_String);
------------------------------------------------------------------------------
--  Display  - Specifies the display to use.
--  Drawable - Specifies the drawable to draw upon (Window, Pixmap).
--  Gc       - Specifies the graphics context to use.
--  X        - Specifies the X coordinate where drawing begins.
--  Y        - Specifies the Y coordinate where drawing begins.
--  Text     - Specifies the characters to be drawn.
--
-- Draws a series of character items on the specified drawable.  Draws both
-- the foreground and background pixels in order to eliminate flicker on
-- some displays.
------------------------------------------------------------------------------

    procedure X_Draw_Text (Display  : X_Display;  
                           Drawable : X_Drawable;  
                           Gc       : X_Gc;  
                           X        : S_Short;  
                           Y        : S_Short;  
                           Items    : X_Text_Item_Array);
------------------------------------------------------------------------------
--  Display  - Specifies the display to use.
--  Drawable - Specifies the drawable to draw upon (Window, Pixmap).
--  Gc       - Specifies the graphics context to use.
--  X        - Specifies the X coordinate where drawing begins.
--  Y        - Specifies the Y coordinate where drawing begins.
--  Items    - Specifies the text items to be drawn.
--
-- Draws a series of character items on the specified drawable.
------------------------------------------------------------------------------

    procedure X_Query_Text_Extents (Display      :     X_Display;  
                                    Font         :     X_Font;  
                                    Text         :     X_String;  
                                    Direction    : out X_Font_Direction;  
                                    Font_Ascent  : out S_Short;  
                                    Font_Descent : out S_Short;  
                                    Overall      : out X_Char_Struct);
------------------------------------------------------------------------------
--  Display       - Specifies the display to use.
--  Font          - Specifies the font ID to use.
--  Text          - Specifies the string to use.
--  Direction     - Receives the drawing direction hint.
--  Font_Ascent   - Receives the font ascent.
--  Font_Descent  - Receives the font descent.
--  Overall       - Receives the overall size of the string when drawn.
--
-- Returns the bounding box of the specified string from the server.
------------------------------------------------------------------------------

    procedure X_Text_Extents (Font         :     X_Font_Struct;  
                              Text         :     X_String;  
                              Direction    : out X_Font_Direction;  
                              Font_Ascent  : out S_Short;  
                              Font_Descent : out S_Short;  
                              Overall      : out X_Char_Struct);
------------------------------------------------------------------------------
--  Font          - Specifies the font structure to use.
--  Text          - Specifies the string to use.
--  Direction     - Receives the drawing direction hint.
--  Font_Ascent   - Receives the font ascent.
--  Font_Descent  - Receives the font descent.
--  Overall       - Receives the overall size of the string when drawn.
--
-- Returns the bounding box of the specified string.
------------------------------------------------------------------------------

    function X_Text_Width (Font : X_Font_Struct;  
                           Text : X_String) return S_Long;
------------------------------------------------------------------------------
--  Font - Specifies the font structure to use.
--  Text - Specifies the string to use.
--
-- Returns the display width of the string, in pixels.
------------------------------------------------------------------------------

end Xlbp_Text;