mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-25 09:07:26 +08:00
The copying permission statements at the beginning of source files updated to refer to LGPL. Copyright dates extended till 2014 in advance.
169 lines
5.7 KiB
Plaintext
169 lines
5.7 KiB
Plaintext
-- Created by: NW,JPB,CAL
|
|
-- Copyright (c) 1991-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and / or modify it
|
|
-- under the terms of the GNU Lesser General Public version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
deferred class Window from Aspect
|
|
|
|
inherits
|
|
TShared from MMgt
|
|
|
|
uses
|
|
Background from Aspect,
|
|
GradientBackground from Aspect,
|
|
TypeOfResize from Aspect,
|
|
FillMethod from Aspect,
|
|
GradientFillMethod from Aspect,
|
|
Handle from Aspect,
|
|
Ratio from Quantity,
|
|
Parameter from Quantity,
|
|
NameOfColor from Quantity,
|
|
Color from Quantity,
|
|
AsciiString from TCollection
|
|
|
|
raises
|
|
WindowDefinitionError from Aspect,
|
|
WindowError from Aspect
|
|
|
|
is
|
|
Initialize;
|
|
---Level: Public
|
|
---Purpose: Initializes the datas of a Window.
|
|
|
|
---------------------------------------------------
|
|
-- Category: Methods to modify the class definition
|
|
---------------------------------------------------
|
|
|
|
SetBackground ( me : mutable;
|
|
ABack : Background from Aspect );
|
|
---Level: Public
|
|
---Purpose: Modifies the window background.
|
|
---Category: Methods to modify the class definition
|
|
|
|
SetBackground ( me : mutable ;
|
|
theNameOfColor : NameOfColor from Quantity );
|
|
---Level: Public
|
|
---Purpose: Modifies the window background from a Named Color.
|
|
---Category: Methods to modify the class definition
|
|
|
|
SetBackground ( me : mutable; color : Color from Quantity );
|
|
---Level: Public
|
|
---Purpose: Modifies the window background.
|
|
---Category: Methods to modify the class definition
|
|
|
|
SetBackground( me: mutable;
|
|
ABackground: GradientBackground from Aspect);
|
|
---Level: Public
|
|
---Purpose: Modifies the window gradient background.
|
|
---Category: Methods to modify the class definition
|
|
|
|
SetBackground( me: mutable;
|
|
theFirstColor: Color from Quantity;
|
|
theSecondColor: Color from Quantity;
|
|
theFillMethod: GradientFillMethod from Aspect);
|
|
---Level: Public
|
|
---Purpose: Modifies the window gradient background.
|
|
---Category: Methods to modify the class definition
|
|
|
|
Map ( me )
|
|
raises WindowError from Aspect is deferred;
|
|
---Level: Public
|
|
---Purpose: Opens the window <me>.
|
|
---Category: Methods to modify the class definition
|
|
|
|
Unmap ( me )
|
|
raises WindowError from Aspect is deferred;
|
|
---Level: Public
|
|
---Purpose: Closes the window <me>.
|
|
---Category: Methods to modify the class definition
|
|
|
|
DoResize ( me ) returns TypeOfResize from Aspect
|
|
raises WindowError from Aspect is deferred;
|
|
---Level: Advanced
|
|
---Purpose: Apply the resizing to the window <me>.
|
|
---Category: Methods to modify the class definition
|
|
|
|
DoMapping ( me ) returns Boolean from Standard
|
|
raises WindowError from Aspect is deferred;
|
|
---Level: Advanced
|
|
---Purpose: Apply the mapping change to the window <me>.
|
|
-- and returns TRUE if the window is mapped at screen.
|
|
---Category: Methods to modify the class definition
|
|
|
|
Destroy ( me : mutable )
|
|
raises WindowError from Aspect is deferred;
|
|
---Level: Advanced
|
|
---Purpose: Destroy the Window
|
|
---Category: Methods to modify the class definition
|
|
|
|
----------------------------
|
|
-- Category: Inquire methods
|
|
----------------------------
|
|
|
|
Background ( me ) returns Background from Aspect;
|
|
---Level: Public
|
|
---Purpose: Returns the window background.
|
|
---Category: Inquire methods
|
|
|
|
BackgroundFillMethod( me ) returns FillMethod from Aspect;
|
|
---Level: Public
|
|
---Purpose: Returns the current image background fill mode.
|
|
|
|
GradientBackground ( me ) returns GradientBackground from Aspect;
|
|
---Level: Public
|
|
---Purpose: Returns the window gradient background.
|
|
|
|
IsMapped ( me ) returns Boolean from Standard is deferred;
|
|
---Level: Public
|
|
---Purpose: Returns True if the window <me> is opened
|
|
-- and False if the window is closed.
|
|
---Category: Inquire methods
|
|
|
|
IsVirtual ( me ) returns Boolean from Standard;
|
|
---Level: Public
|
|
---Purpose: Returns True if the window <me> is virtual
|
|
---Category: Inquire methods
|
|
|
|
SetVirtual ( me : mutable;
|
|
theVirtual : Boolean from Standard );
|
|
---Level: Public
|
|
---Purpose: Setup the virtual state
|
|
---Category: Inquire methods
|
|
|
|
Ratio ( me ) returns Ratio from Quantity is deferred;
|
|
---Level: Public
|
|
---Purpose: Returns The Window RATIO equal to the physical
|
|
-- WIDTH/HEIGHT dimensions
|
|
---Category: Inquire methods
|
|
|
|
Position ( me ;
|
|
X1, Y1, X2, Y2 : out Integer from Standard )
|
|
is deferred;
|
|
---Level: Public
|
|
---Purpose: Returns The Window POSITION in PIXEL
|
|
---Category: Inquire methods
|
|
|
|
Size ( me ;
|
|
Width, Height : out Integer from Standard )
|
|
is deferred;
|
|
---Level: Public
|
|
---Purpose: Returns The Window SIZE in PIXEL
|
|
---Category: Inquire methods
|
|
|
|
fields
|
|
MyBackground : Background from Aspect is protected;
|
|
MyGradientBackground : GradientBackground from Aspect is protected;
|
|
MyBackgroundFillMethod : FillMethod from Aspect is protected;
|
|
MyIsVirtual : Boolean from Standard is protected;
|
|
end Window;
|