1 // Created on: 2010-05-21
2 // Created by: PAUL SUPRYATKIN
3 // Copyright (c) 2010-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 under
8 // the terms of the GNU Lesser General Public License 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 #ifndef _Aspect_GradientBackground_HeaderFile
17 #define _Aspect_GradientBackground_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
23 #include <Quantity_Color.hxx>
24 #include <Aspect_GradientFillMethod.hxx>
25 #include <Aspect_Background.hxx>
29 //! This class allows the definition of
30 //! a window gradient background.
31 class Aspect_GradientBackground : public Aspect_Background
38 //! Creates a window gradient background.
39 //! Default colors : Quantity_NOC_BLACK.
40 //! Default fill method : Aspect_GFM_NONE
41 Standard_EXPORT Aspect_GradientBackground();
43 //! Creates a window gradient background with colours <AColor1, AColor2>.
44 Standard_EXPORT Aspect_GradientBackground(const Quantity_Color& AColor1, const Quantity_Color& AColor2, const Aspect_GradientFillMethod AMethod = Aspect_GFM_HOR);
46 //! Modifies the colours of the window gradient background <me>.
47 Standard_EXPORT void SetColors (const Quantity_Color& AColor1, const Quantity_Color& AColor2, const Aspect_GradientFillMethod AMethod = Aspect_GFM_HOR);
49 //! Returns colours of the window gradient background <me>.
50 Standard_EXPORT void Colors (Quantity_Color& AColor1, Quantity_Color& AColor2) const;
52 //! Returns the current gradient background fill mode.
53 Standard_EXPORT Aspect_GradientFillMethod BgGradientFillMethod() const;
68 Quantity_Color MyColor2;
69 Aspect_GradientFillMethod MyGradientMethod;
80 #endif // _Aspect_GradientBackground_HeaderFile