blob: 5a11a24cb753eb273e0d6ff911fe77fe31c22d93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
--
-- File: Aspect_Background.cdl
-- Created: Mercredi 2 Octobre 1991
-- Author: NW,JPB,CAL
--
---Copyright: MatraDatavision 1991,1992,1993
--
class Background from Aspect
---Purpose: This class allows the definition of
-- a window background.
uses
Color from Quantity
is
Create
returns Background from Aspect;
---Level: Public
---Purpose: Creates a window background.
-- Default color : NOC_MATRAGRAY.
Create ( AColor : Color from Quantity )
returns Background from Aspect;
---Level: Public
---Purpose: Creates a window background with the colour <AColor>.
---------------------------------------------------
-- Category: Methods to modify the class definition
---------------------------------------------------
SetColor ( me : in out;
AColor : Color from Quantity );
---Level: Public
---Purpose: Modifies the colour of the window background <me>.
---Category: Methods to modify the class definition
----------------------------
-- Category: Inquire methods
----------------------------
Color ( me )
returns Color from Quantity;
---Level: Public
---Purpose: Returns the colour of the window background <me>.
---Category: Inquire methods
--
fields
--
-- Class : Aspect_Background
--
-- Purpose : Declaration of variables specific to the window
-- background.
--
-- Reminder : A background is defined by one colour
--
-- the colour associated with the window background
MyColor : Color from Quantity;
end Background;
|