15 #ifndef WINDOWPROPERTIES_H 16 #define WINDOWPROPERTIES_H 18 #include "pandabase.h" 21 #include "windowHandle.h" 48 void operator = (
const WindowProperties ©);
49 INLINE ~WindowProperties();
51 static WindowProperties get_config_properties();
52 static WindowProperties get_default();
53 static void set_default(
const WindowProperties &default_properties);
54 static void clear_default();
56 static WindowProperties size(
int x_size,
int y_size);
58 bool operator == (
const WindowProperties &other)
const;
59 INLINE
bool operator != (
const WindowProperties &other)
const;
62 INLINE
bool is_any_specified()
const;
64 INLINE
void set_origin(
const LPoint2i &origin);
65 INLINE
void set_origin(
int x_origin,
int y_origin);
66 INLINE
const LPoint2i &get_origin()
const;
67 INLINE
int get_x_origin()
const;
68 INLINE
int get_y_origin()
const;
69 INLINE
bool has_origin()
const;
70 INLINE
void clear_origin();
72 INLINE
void set_size(
const LVector2i &size);
73 INLINE
void set_size(
int x_size,
int y_size);
75 INLINE
int get_x_size()
const;
76 INLINE
int get_y_size()
const;
77 INLINE
bool has_size()
const;
78 INLINE
void clear_size();
80 INLINE
bool has_mouse_mode()
const;
81 INLINE
void set_mouse_mode(MouseMode mode);
82 INLINE MouseMode get_mouse_mode()
const;
83 INLINE
void clear_mouse_mode();
85 INLINE
void set_title(
const string &title);
86 INLINE
const string &get_title()
const;
87 INLINE
bool has_title()
const;
88 INLINE
void clear_title();
90 INLINE
void set_undecorated(
bool undecorated);
91 INLINE
bool get_undecorated()
const;
92 INLINE
bool has_undecorated()
const;
93 INLINE
void clear_undecorated();
95 INLINE
void set_fixed_size(
bool fixed_size);
96 INLINE
bool get_fixed_size()
const;
97 INLINE
bool has_fixed_size()
const;
98 INLINE
void clear_fixed_size();
100 INLINE
void set_fullscreen(
bool fullscreen);
101 INLINE
bool get_fullscreen()
const;
102 INLINE
bool has_fullscreen()
const;
103 INLINE
void clear_fullscreen();
105 INLINE
void set_foreground(
bool foreground);
106 INLINE
bool get_foreground()
const;
107 INLINE
bool has_foreground()
const;
108 INLINE
void clear_foreground();
110 INLINE
void set_minimized(
bool minimized);
111 INLINE
bool get_minimized()
const;
112 INLINE
bool has_minimized()
const;
113 INLINE
void clear_minimized();
115 INLINE
void set_raw_mice(
bool raw_mice);
116 INLINE
bool get_raw_mice()
const;
117 INLINE
bool has_raw_mice()
const;
118 INLINE
void clear_raw_mice();
120 INLINE
void set_open(
bool open);
121 INLINE
bool get_open()
const;
122 INLINE
bool has_open()
const;
123 INLINE
void clear_open();
125 INLINE
void set_cursor_hidden(
bool cursor_hidden);
126 INLINE
bool get_cursor_hidden()
const;
127 INLINE
bool has_cursor_hidden()
const;
128 INLINE
void clear_cursor_hidden();
130 INLINE
void set_icon_filename(
const Filename &icon_filename);
131 INLINE
const Filename &get_icon_filename()
const;
132 INLINE
bool has_icon_filename()
const;
133 INLINE
void clear_icon_filename();
135 INLINE
void set_cursor_filename(
const Filename &cursor_filename);
136 INLINE
const Filename &get_cursor_filename()
const;
137 INLINE
bool has_cursor_filename()
const;
138 INLINE
void clear_cursor_filename();
140 INLINE
void set_z_order(ZOrder z_order);
141 INLINE ZOrder get_z_order()
const;
142 INLINE
bool has_z_order()
const;
143 INLINE
void clear_z_order();
145 void set_parent_window(
size_t parent);
146 INLINE
void set_parent_window(
WindowHandle *parent_window = NULL);
148 INLINE
bool has_parent_window()
const;
149 INLINE
void clear_parent_window();
151 void add_properties(
const WindowProperties &other);
153 void output(ostream &out)
const;
163 S_undecorated = 0x00008,
164 S_fullscreen = 0x00010,
165 S_foreground = 0x00020,
166 S_minimized = 0x00040,
168 S_cursor_hidden = 0x00100,
169 S_fixed_size = 0x00200,
171 S_icon_filename = 0x00800,
172 S_cursor_filename = 0x01000,
173 S_mouse_mode = 0x02000,
174 S_parent_window = 0x04000,
175 S_raw_mice = 0x08000,
182 F_undecorated = S_undecorated,
183 F_fullscreen = S_fullscreen,
184 F_foreground = S_foreground,
185 F_minimized = S_minimized,
187 F_cursor_hidden = S_cursor_hidden,
188 F_fixed_size = S_fixed_size,
189 F_raw_mice = S_raw_mice,
195 MouseMode _mouse_mode;
203 static WindowProperties *_default_properties;
206 EXPCL_PANDA_DISPLAY ostream &
207 operator << (ostream &out, WindowProperties::ZOrder z_order);
208 EXPCL_PANDA_DISPLAY istream &
209 operator >> (istream &in, WindowProperties::ZOrder &z_order);
211 EXPCL_PANDA_DISPLAY ostream &
212 operator << (ostream &out, WindowProperties::MouseMode mode);
213 EXPCL_PANDA_DISPLAY istream &
214 operator >> (istream &in, WindowProperties::MouseMode &mode);
217 INLINE ostream &operator << (ostream &out,
const WindowProperties &properties);
219 #include "windowProperties.I" This object represents a window on the desktop, not necessarily a Panda window.
A container for the various kinds of properties we might ask to have on a graphics window before we o...
This is a two-component point in space.
The name of a file, such as a texture file or an Egg file.
This is a two-component vector offset.