1 -- Created by: NW,JPB,CAL
2 -- Copyright (c) 1991-1999 Matra Datavision
3 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
5 -- This file is part of Open CASCADE Technology software library.
7 -- This library is free software; you can redistribute it and / or modify it
8 -- under the terms of the GNU Lesser General Public version 2.1 as published
9 -- by the Free Software Foundation, with special exception defined in the file
10 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 -- distribution for complete text of the license and disclaimer of any warranty.
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
16 deferred class Window from Aspect
22 Background from Aspect,
23 GradientBackground from Aspect,
24 TypeOfResize from Aspect,
25 FillMethod from Aspect,
26 GradientFillMethod from Aspect,
29 Parameter from Quantity,
30 NameOfColor from Quantity,
32 AsciiString from TCollection
35 WindowDefinitionError from Aspect,
36 WindowError from Aspect
41 ---Purpose: Initializes the datas of a Window.
43 ---------------------------------------------------
44 -- Category: Methods to modify the class definition
45 ---------------------------------------------------
47 SetBackground ( me : mutable;
48 ABack : Background from Aspect );
50 ---Purpose: Modifies the window background.
51 ---Category: Methods to modify the class definition
53 SetBackground ( me : mutable ;
54 theNameOfColor : NameOfColor from Quantity );
56 ---Purpose: Modifies the window background from a Named Color.
57 ---Category: Methods to modify the class definition
59 SetBackground ( me : mutable; color : Color from Quantity );
61 ---Purpose: Modifies the window background.
62 ---Category: Methods to modify the class definition
64 SetBackground( me: mutable;
65 ABackground: GradientBackground from Aspect);
67 ---Purpose: Modifies the window gradient background.
68 ---Category: Methods to modify the class definition
70 SetBackground( me: mutable;
71 theFirstColor: Color from Quantity;
72 theSecondColor: Color from Quantity;
73 theFillMethod: GradientFillMethod from Aspect);
75 ---Purpose: Modifies the window gradient background.
76 ---Category: Methods to modify the class definition
79 raises WindowError from Aspect is deferred;
81 ---Purpose: Opens the window <me>.
82 ---Category: Methods to modify the class definition
85 raises WindowError from Aspect is deferred;
87 ---Purpose: Closes the window <me>.
88 ---Category: Methods to modify the class definition
90 DoResize ( me ) returns TypeOfResize from Aspect
91 raises WindowError from Aspect is deferred;
93 ---Purpose: Apply the resizing to the window <me>.
94 ---Category: Methods to modify the class definition
96 DoMapping ( me ) returns Boolean from Standard
97 raises WindowError from Aspect is deferred;
99 ---Purpose: Apply the mapping change to the window <me>.
100 -- and returns TRUE if the window is mapped at screen.
101 ---Category: Methods to modify the class definition
103 Destroy ( me : mutable )
104 raises WindowError from Aspect is deferred;
106 ---Purpose: Destroy the Window
107 ---Category: Methods to modify the class definition
109 ----------------------------
110 -- Category: Inquire methods
111 ----------------------------
113 Background ( me ) returns Background from Aspect;
115 ---Purpose: Returns the window background.
116 ---Category: Inquire methods
118 BackgroundFillMethod( me ) returns FillMethod from Aspect;
120 ---Purpose: Returns the current image background fill mode.
122 GradientBackground ( me ) returns GradientBackground from Aspect;
124 ---Purpose: Returns the window gradient background.
126 IsMapped ( me ) returns Boolean from Standard is deferred;
128 ---Purpose: Returns True if the window <me> is opened
129 -- and False if the window is closed.
130 ---Category: Inquire methods
132 IsVirtual ( me ) returns Boolean from Standard;
134 ---Purpose: Returns True if the window <me> is virtual
135 ---Category: Inquire methods
137 SetVirtual ( me : mutable;
138 theVirtual : Boolean from Standard );
140 ---Purpose: Setup the virtual state
141 ---Category: Inquire methods
143 Ratio ( me ) returns Ratio from Quantity is deferred;
145 ---Purpose: Returns The Window RATIO equal to the physical
146 -- WIDTH/HEIGHT dimensions
147 ---Category: Inquire methods
150 X1, Y1, X2, Y2 : out Integer from Standard )
153 ---Purpose: Returns The Window POSITION in PIXEL
154 ---Category: Inquire methods
157 Width, Height : out Integer from Standard )
160 ---Purpose: Returns The Window SIZE in PIXEL
161 ---Category: Inquire methods
164 MyBackground : Background from Aspect is protected;
165 MyGradientBackground : GradientBackground from Aspect is protected;
166 MyBackgroundFillMethod : FillMethod from Aspect is protected;
167 MyIsVirtual : Boolean from Standard is protected;