|
||||
File indexing completed on 2025-01-18 10:02:58
0001 // Created on: 2010-05-21 0002 // Created by: PAUL SUPRYATKIN 0003 // Copyright (c) 2010-2014 OPEN CASCADE SAS 0004 // 0005 // This file is part of Open CASCADE Technology software library. 0006 // 0007 // This library is free software; you can redistribute it and/or modify it under 0008 // the terms of the GNU Lesser General Public License version 2.1 as published 0009 // by the Free Software Foundation, with special exception defined in the file 0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT 0011 // distribution for complete text of the license and disclaimer of any warranty. 0012 // 0013 // Alternatively, this file may be used under the terms of Open CASCADE 0014 // commercial license or contractual agreement. 0015 0016 #ifndef _Aspect_GradientBackground_HeaderFile 0017 #define _Aspect_GradientBackground_HeaderFile 0018 0019 #include <Aspect_GradientFillMethod.hxx> 0020 #include <Aspect_Background.hxx> 0021 0022 //! This class allows the definition of a window gradient background. 0023 class Aspect_GradientBackground : public Aspect_Background 0024 { 0025 public: 0026 0027 DEFINE_STANDARD_ALLOC 0028 0029 //! Creates a window gradient background. 0030 //! Default color is Quantity_NOC_BLACK. 0031 //! Default fill method is Aspect_GradientFillMethod_None. 0032 Standard_EXPORT Aspect_GradientBackground(); 0033 0034 //! Creates a window gradient background with two colours. 0035 Standard_EXPORT Aspect_GradientBackground (const Quantity_Color& theColor1, 0036 const Quantity_Color& theColor2, 0037 const Aspect_GradientFillMethod theMethod = Aspect_GradientFillMethod_Horizontal); 0038 0039 //! Modifies the colours of the window gradient background. 0040 Standard_EXPORT void SetColors (const Quantity_Color& theColor1, 0041 const Quantity_Color& theColor2, 0042 const Aspect_GradientFillMethod theMethod = Aspect_GradientFillMethod_Horizontal); 0043 0044 //! Returns colours of the window gradient background. 0045 Standard_EXPORT void Colors (Quantity_Color& theColor1, Quantity_Color& theColor2) const; 0046 0047 //! Returns the current gradient background fill mode. 0048 Standard_EXPORT Aspect_GradientFillMethod BgGradientFillMethod() const; 0049 0050 //! Dumps the content of me into the stream 0051 Standard_EXPORT void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const; 0052 0053 private: 0054 0055 Quantity_Color MyColor2; 0056 Aspect_GradientFillMethod MyGradientMethod; 0057 0058 }; 0059 0060 #endif // _Aspect_GradientBackground_HeaderFile
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |