blob: efbea0117d33cec1d2102b3a317d115589d63725 (
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
--
-- File: Aspect_GradientBackground.cdl
-- Created: 21 May 2010
-- Author: PAUL SUPRYATKIN
--
---Copyright: Open CASCADE 2010
--
class GradientBackground from Aspect
inherits Background from Aspect
---Purpose: This class allows the definition of
-- a window gradient background.
uses
Color from Quantity,
GradientFillMethod from Aspect
is
Create
returns GradientBackground from Aspect;
---Level: Public
---Purpose: Creates a window gradient background.
-- Default colors : Quantity_NOC_BLACK.
-- Default fill method : Aspect_GFM_NONE
Create ( AColor1 : Color from Quantity;
AColor2 : Color from Quantity;
AMethod : GradientFillMethod from Aspect = Aspect_GFM_HOR)
returns GradientBackground from Aspect;
---Level: Public
---Purpose: Creates a window gradient background with colours <AColor1, AColor2>.
---------------------------------------------------
-- Category: Methods to modify the class definition
---------------------------------------------------
SetColors ( me : in out;
AColor1 : Color from Quantity ;
AColor2 : Color from Quantity ;
AMethod : GradientFillMethod from Aspect = Aspect_GFM_HOR
);
---Level: Public
---Purpose: Modifies the colours of the window gradient background <me>.
---Category: Methods to modify the class definition
----------------------------
-- Category: Inquire methods
----------------------------
Colors ( me;
AColor1 : out Color from Quantity;
AColor2 : out Color from Quantity
);
---Level: Public
---Purpose: Returns colours of the window gradient background <me>.
---Category: Inquire methods
BgGradientFillMethod( me ) returns GradientFillMethod from Aspect;
---Level: Public
---Purpose: Returns the current gradient background fill mode.
fields
--
-- Class : Aspect_GradientBackground
--
-- Purpose : Declaration of variables specific to the window
-- gradient background.
--
-- Reminder : A Gradient background is defined by two colours
--
-- the colour associated with the window background
MyColor2 : Color from Quantity;
MyGradientMethod : GradientFillMethod from Aspect;
end GradientBackground ;
|