DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

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

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦f8a377784⟧ Ada Source

    Length: 5120 (0x1400)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, package body Xlbp_Pixmap, seg_004f79

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with Xlbt_Arithmetic;  
use Xlbt_Arithmetic;  
with Xlbt_Basic;  
use Xlbt_Basic;  
with Xlbt_Request;  
use Xlbt_Request;

with Xlbp_Extension;  
use Xlbp_Extension;

with Xlbip_Internal;  
use Xlbip_Internal;  
with Xlbip_Put_Request;  
use Xlbip_Put_Request;

package body Xlbp_Pixmap is
------------------------------------------------------------------------------
-- X Library Pixmaps
--
-- Xlbp_Pixmap - Create and destroy Pixmaps
------------------------------------------------------------------------------
-- Copyright 1989 - 1991 by Rational, Santa Clara, California.
-- Copyright 1985 - 1989 by the Massachusetts Institute of Technology
--
--                  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 MIT or Rational not be
-- used in advertising or publicity pertaining to distribution of the software
-- without specific, written prior permission.
--
-- MIT and Rational disclaim all warranties with regard to this software,
-- including all implied warranties of merchantability and fitness, in no
-- event shall 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.
------------------------------------------------------------------------------

--\x0c
    function X_Create_Pixmap (Display  : X_Display;  
                              Drawable : X_Drawable;  
                              Width    : U_Short_Positive;  
                              Height   : U_Short_Positive;  
                              Depth    : U_Char) return X_Pixmap is  
        Pid : X_Pixmap;  
    begin

----Lock the display.

        Lock_Display (Display);  
        begin

            Pid := X_Pixmap'(Drawable =>  
                                (Id => Xlbp_Extension.X_Alloc_Id (Display)));  
            Put_X_Create_Pixmap_Request  
               (Display, (Kind     => Create_Pixmap,  
                          Length   => X_Create_Pixmap_Request'Size / 32,  
                          Drawable => Drawable,  
                          Width    => Width,  
                          Height   => Height,  
                          Depth    => Depth,  
                          Pixmap   => Pid));

----Catch exceptions.

        exception  
            when others =>  
                Unlock_Display (Display);  
                raise;  
        end;

----Unlock; sync; return.

        Unlock_Display (Display);  
        Sync_Handle (Display);  
        return Pid;

    end X_Create_Pixmap;

--\x0c
    procedure X_Free_Pixmap (Display : X_Display;  
                             Pixmap  : X_Pixmap) is  
    begin

----Lock the display.

        Lock_Display (Display);  
        begin

            Put_X_Free_Pixmap_Request  
               (Display, (Kind   => Free_Pixmap,  
                          Length => X_Free_Pixmap_Request'Size / 32,  
                          Pad    => 0,  
                          Id     => Pixmap));

----Catch exceptions.

        exception  
            when others =>  
                Unlock_Display (Display);  
                raise;  
        end;

----Unlock; sync; return.

        Unlock_Display (Display);  
        Sync_Handle (Display);

    end X_Free_Pixmap;

--\x0c
end Xlbp_Pixmap;  

E3 Meta Data

    nblk1=4
    nid=0
    hdr6=8
        [0x00] rec0=1f rec1=00 rec2=01 rec3=052
        [0x01] rec0=12 rec1=00 rec2=02 rec3=02e
        [0x02] rec0=1f rec1=00 rec2=03 rec3=02e
        [0x03] rec0=27 rec1=00 rec2=04 rec3=000
    tail 0x217006e12819782ed898f 0x42a00088462063203