7fd59977 |
1 | |
2 | // File Aspect_Window.cxx |
3 | // Created Fevrier 1993 |
4 | // Author NW,JPB,CAL,GG |
5 | // Modified: GG 28/11/00 G002 |
6 | // Add BackgroundImage() and BackgroundFillMethod() methods |
7 | |
8 | //-Copyright MatraDatavision 1991,1992,1993 |
9 | |
10 | //-Version |
11 | |
12 | //-Design Creation d'une fenetre |
13 | |
14 | //-Warning |
15 | |
16 | //-References |
17 | |
18 | //-Language C++ 2.0 |
19 | |
20 | //-Declarations |
21 | |
22 | // for the class |
23 | #include <Aspect_Window.ixx> |
24 | |
25 | //-Aliases |
26 | |
27 | //-Global data definitions |
28 | |
29 | //-Destructors |
30 | |
31 | //-Constructors |
32 | |
33 | Aspect_Window::Aspect_Window (const Handle(Aspect_GraphicDevice)& aGraphicDevice) |
34 | : MyGraphicDevice(aGraphicDevice), |
35 | MyBackground(), |
36 | MyBackgroundImage(), |
37 | MyGradientBackground(), |
38 | MyBackgroundFillMethod(Aspect_FM_NONE), |
39 | MyHBackground(0) |
40 | { |
41 | } |
42 | |
43 | Handle(Aspect_GraphicDevice) Aspect_Window::GraphicDevice() const |
44 | { |
45 | return MyGraphicDevice; |
46 | } |
47 | |
48 | Aspect_Background Aspect_Window::Background() const |
49 | { |
50 | return MyBackground; |
51 | } |
52 | |
53 | Standard_CString Aspect_Window::BackgroundImage() const |
54 | { |
55 | return MyBackgroundImage.ToCString(); |
56 | } |
57 | |
58 | Aspect_FillMethod Aspect_Window::BackgroundFillMethod() const |
59 | { |
60 | return MyBackgroundFillMethod; |
61 | } |
62 | |
63 | Aspect_GradientBackground Aspect_Window::GradientBackground() const |
64 | { |
65 | return MyGradientBackground; |
66 | } |
67 | |
68 | Standard_Boolean Aspect_Window::IsVirtual() const |
69 | { |
70 | return MyIsVirtual; |
71 | } |
72 | |
73 | void Aspect_Window::SetVirtual (const Standard_Boolean theVirtual) |
74 | { |
75 | MyIsVirtual = theVirtual; |
76 | } |