Re: BB/CP View Size

From: Self <treutwein.59.Verwaltung.Uni-Muenchen>
Date: Wed, 13 Dec 2000 08:14:54 +0200

> Ports does not have defined (in my BB 1.3.3 version) the
> value "unit". It does have "point" (for type setting points).
>

oops, you're correct. I only checked very quikly
the documentation. I should have guessed that
it cannot be a global variable of Ports, it must be
something specific to the port in question:

This is from the documentation of Ports (BB 1.3.3):

 TYPE
[...]
  Port = POINTER TO ABSTRACT RECORD
   unit-: INTEGER;
   (p: Port) Init (unit: INTEGER), NEW;
   (p: Port) GetSize (OUT w, h: INTEGER), NEW, ABSTRACT;
   (p: Port) SetSize (w, h: INTEGER), NEW, ABSTRACT;
   (p: Port) NewRider (): INTEGER, NEW, ABSTRACT;
   (p: Port) OpenBuffer (l, t, r, b: INTEGER), NEW, ABSTRACT;
   (p: Port) CloseBuffer, NEW, ABSTRACT
  END;

[...]
TYPE Port
ABSTRACT
Carrier for pixel data.
Ports are allocated and used internally.
Ports are implemented internally.

unit-: INTEGER unit > 0
The size of a pixel in universal units.

the question is now, how to get the port in use ...

regards
Received on Wed Dec 13 2000 - 06:14:54 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:27:45 UTC