summaryrefslogtreecommitdiff
path: root/src/Aspect/Aspect_Window.cxx
blob: e00c476a0e7938f9bcb4773c634741e7c9d48721 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77

// File         Aspect_Window.cxx
// Created      Fevrier 1993
// Author       NW,JPB,CAL,GG
// Modified:    GG 28/11/00 G002
//              Add BackgroundImage() and BackgroundFillMethod() methods

//-Copyright    MatraDatavision 1991,1992,1993

//-Version

//-Design       Creation d'une fenetre

//-Warning

//-References

//-Language     C++ 2.0

//-Declarations

// for the class
#include <Aspect_Window.ixx>

//-Aliases

//-Global data definitions

//-Destructors

//-Constructors

Aspect_Window::Aspect_Window (const Handle(Aspect_GraphicDevice)& aGraphicDevice)
: MyGraphicDevice(aGraphicDevice),
  MyBackground(),
  MyBackgroundImage(),
  MyBackgroundFillMethod(Aspect_FM_NONE),
  MyHBackground(0),
  MyGradientBackground()
  
{
}

Handle(Aspect_GraphicDevice) Aspect_Window::GraphicDevice() const
{
  return MyGraphicDevice;
}

Aspect_Background Aspect_Window::Background() const
{
  return MyBackground;
}

Standard_CString Aspect_Window::BackgroundImage() const
{
  return MyBackgroundImage.ToCString();
}

Aspect_FillMethod Aspect_Window::BackgroundFillMethod() const
{
  return MyBackgroundFillMethod;
}

Aspect_GradientBackground Aspect_Window::GradientBackground() const
{
  return MyGradientBackground;
}

Standard_Boolean Aspect_Window::IsVirtual() const
{
  return MyIsVirtual;
}

void Aspect_Window::SetVirtual (const Standard_Boolean theVirtual)
{
  MyIsVirtual = theVirtual;
}