forked from FNNDSC/KWWidgets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vtkKWFrame.h
109 lines (87 loc) · 3.59 KB
/
vtkKWFrame.h
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
/*=========================================================================
Module: $RCSfile: vtkKWFrame.h,v $
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkKWFrame - a simple frame
// .SECTION Description
// The core frame
#ifndef __vtkKWFrame_h
#define __vtkKWFrame_h
#include "vtkKWCoreWidget.h"
class KWWidgets_EXPORT vtkKWFrame : public vtkKWCoreWidget
{
public:
static vtkKWFrame* New();
vtkTypeMacro(vtkKWFrame,vtkKWCoreWidget);
void PrintSelf(ostream& os, vtkIndent indent);
// Description:
// Set/Get the background color of the widget.
virtual void GetBackgroundColor(double *r, double *g, double *b);
virtual double* GetBackgroundColor();
virtual void SetBackgroundColor(double r, double g, double b);
virtual void SetBackgroundColor(double rgb[3])
{ this->SetBackgroundColor(rgb[0], rgb[1], rgb[2]); };
// Description:
// Set/Get the highlight thickness, a non-negative value indicating the
// width of the highlight rectangle to draw around the outside of the
// widget when it has the input focus.
virtual void SetHighlightThickness(int);
virtual int GetHighlightThickness();
// Description:
// Set/Get the border width, a non-negative value indicating the width of
// the 3-D border to draw around the outside of the widget (if such a border
// is being drawn; the Relief option typically determines this).
virtual void SetBorderWidth(int);
virtual int GetBorderWidth();
// Description:
// Set/Get the 3-D effect desired for the widget.
// The value indicates how the interior of the widget should appear
// relative to its exterior.
// Valid constants can be found in vtkKWOptions::ReliefType.
virtual void SetRelief(int);
virtual int GetRelief();
virtual void SetReliefToRaised();
virtual void SetReliefToSunken();
virtual void SetReliefToFlat();
virtual void SetReliefToRidge();
virtual void SetReliefToSolid();
virtual void SetReliefToGroove();
// Description:
// Set/Get the padding that will be applied around each widget (in pixels).
// Specifies a non-negative value indicating how much extra space to request
// for the widget in the X and Y-direction. When computing how large a
// window it needs, the widget will add this amount to the width it would
// normally need (as determined by the width of the things displayed
// in the widget); if the geometry manager can satisfy this request, the
// widget will end up with extra internal space around what it displays
// inside.
virtual void SetPadX(int);
virtual int GetPadX();
virtual void SetPadY(int);
virtual int GetPadY();
// Description:
// Request the width/height of a frame.
// If width or height is less than or equal to zero then the frame will
// not request any site at all, and we obey both the geometry of its
// children and the space provided by its parent.
// Supported only starting Tcl/Tk 8.3
virtual void SetWidth(int);
virtual int GetWidth();
virtual void SetHeight(int);
virtual int GetHeight();
protected:
vtkKWFrame() {};
~vtkKWFrame() {};
// Description:
// Create the widget.
virtual void CreateWidget();
private:
vtkKWFrame(const vtkKWFrame&); // Not implemented
void operator=(const vtkKWFrame&); // Not implemented
};
#endif