-- Created on: 2010-05-21 -- Created by: PAUL SUPRYATKIN -- Copyright (c) 2010-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 License 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. 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 . --------------------------------------------------- -- 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 . ---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 . ---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 ;