/usr/include/wnckmm-1.0/wnckmm/screen.h is in libwnckmm-1.0-0-dev 0.1.1-2+b2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 | // Generated by gmmproc 2.50.0 -- DO NOT MODIFY!
#ifndef _WNCKMM_SCREEN_H
#define _WNCKMM_SCREEN_H
#include <glibmm/ustring.h>
#include <sigc++/sigc++.h>
/** This file is part of wnckmm
Copyright (c) 2013 Povilas Kanapickas <povilas@radix.lt>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef DOXYGEN_SHOULD_SKIP_THIS
using WnckScreen = struct _WnckScreen;
using WnckScreenClass = struct _WnckScreenClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Wnck
{ class Screen_Class; } // namespace Wnck
namespace Wnck {
class Application;
class ClassGroup;
class Window;
class Workspace;
/** This represents a screen.
*/
class Screen : public Glib::Object
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef Screen CppObjectType;
typedef Screen_Class CppClassType;
typedef WnckScreen BaseObjectType;
typedef WnckScreenClass BaseClassType;
private:
friend class Screen_Class;
static CppClassType screen_class_;
private:
// noncopyable
Screen(const Screen&);
Screen& operator=(const Screen&);
protected:
explicit Screen(const Glib::ConstructParams& construct_params);
explicit Screen(WnckScreen* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~Screen();
/** Get the GType for this class, for use with the underlying GObject type system.
*/
static GType get_type() G_GNUC_CONST;
#ifndef DOXYGEN_SHOULD_SKIP_THIS
static GType get_base_type() G_GNUC_CONST;
#endif
///Provides access to the underlying C GObject.
WnckScreen* gobj() { return reinterpret_cast<WnckScreen*>(gobject_); }
///Provides access to the underlying C GObject.
const WnckScreen* gobj() const { return reinterpret_cast<WnckScreen*>(gobject_); }
private:
public:
static Screen* get_default();
static Screen* get(int index);
static Screen* get_for_root(gulong root_id);
int get_number() const;
int get_width() const;
int get_height() const;
void force_update();
std::string get_window_manager_name();
bool net_wm_supports(const std::string& atom);
Window* get_active_window() const;
Window* get_previously_active_window() const;
Glib::ListHandle<Window*> get_windows() const;
Glib::ListHandle<Window*> get_windows_stacked() const;
Workspace* get_active_workspace() const;
// TODO: get_workspaces
Workspace* get_workspace(int workspace) const;
int get_workspace_count() const;
void set_workspace_count(int count) const;
// TODO: wnck_screen_try_set_workspace_layout
// TODO: wnck_screen_release_workspace_layout
void move_viewport(int x, int y) const;
gulong get_background_pixmap_xid() const;
//gtkmmproc error: wnck_screen_is_showing_desktop : method defs lookup failed (1)
void set_showing_desktop(bool show) const;
/**
* @par Slot Prototype:
* <tt>void on_my_%active_window_changed(Window* previously_active_window)</tt>
*
*/
Glib::SignalProxy< void,Window* > signal_active_window_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%active_workspace_changed(Workspace* previously_active_workspace)</tt>
*
*/
Glib::SignalProxy< void,Workspace* > signal_active_workspace_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%application_closed(Application* app)</tt>
*
*/
Glib::SignalProxy< void,Application* > signal_application_closed();
/**
* @par Slot Prototype:
* <tt>void on_my_%application_opened(Application* app)</tt>
*
*/
Glib::SignalProxy< void,Application* > signal_application_opened();
/**
* @par Slot Prototype:
* <tt>void on_my_%backgroupnd_changed()</tt>
*
*/
Glib::SignalProxy< void > signal_backgroupnd_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%class_group_closed(ClassGroup* app)</tt>
*
*/
Glib::SignalProxy< void,ClassGroup* > signal_class_group_closed();
/**
* @par Slot Prototype:
* <tt>void on_my_%class_group_opened(ClassGroup* app)</tt>
*
*/
Glib::SignalProxy< void,ClassGroup* > signal_class_group_opened();
/**
* @par Slot Prototype:
* <tt>void on_my_%showing_desktop_changed()</tt>
*
*/
Glib::SignalProxy< void > signal_showing_desktop_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%viewports_changed()</tt>
*
*/
Glib::SignalProxy< void > signal_viewports_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%window_opened(Window* window)</tt>
*
*/
Glib::SignalProxy< void,Window* > signal_window_opened();
/**
* @par Slot Prototype:
* <tt>void on_my_%window_closed(Window* window)</tt>
*
*/
Glib::SignalProxy< void,Window* > signal_window_closed();
/**
* @par Slot Prototype:
* <tt>void on_my_%window_manager_changed()</tt>
*
*/
Glib::SignalProxy< void > signal_window_manager_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%window_stacking_changed()</tt>
*
*/
Glib::SignalProxy< void > signal_window_stacking_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%workspace_created(Workspace* workspace)</tt>
*
*/
Glib::SignalProxy< void,Workspace* > signal_workspace_created();
/**
* @par Slot Prototype:
* <tt>void on_my_%workspace_destroyed(Workspace* workspace)</tt>
*
*/
Glib::SignalProxy< void,Workspace* > signal_workspace_destroyed();
public:
public:
//C++ methods used to invoke GTK+ virtual functions:
protected:
//GTK+ Virtual Functions (override these to change behaviour):
//Default Signal Handlers::
/// This is a default handler for the signal signal_active_window_changed().
virtual void on_active_window_changed(Window* previously_active_window);
/// This is a default handler for the signal signal_active_workspace_changed().
virtual void on_active_workspace_changed(Workspace* previously_active_workspace);
/// This is a default handler for the signal signal_application_closed().
virtual void on_application_closed(Application* app);
/// This is a default handler for the signal signal_application_opened().
virtual void on_application_opened(Application* app);
/// This is a default handler for the signal signal_backgroupnd_changed().
virtual void on_backgroupnd_changed();
/// This is a default handler for the signal signal_class_group_closed().
virtual void on_class_group_closed(ClassGroup* app);
/// This is a default handler for the signal signal_class_group_opened().
virtual void on_class_group_opened(ClassGroup* app);
/// This is a default handler for the signal signal_showing_desktop_changed().
virtual void on_showing_desktop_changed();
/// This is a default handler for the signal signal_viewports_changed().
virtual void on_viewports_changed();
/// This is a default handler for the signal signal_window_opened().
virtual void on_window_opened(Window* window);
/// This is a default handler for the signal signal_window_closed().
virtual void on_window_closed(Window* window);
/// This is a default handler for the signal signal_window_manager_changed().
virtual void on_window_manager_changed();
/// This is a default handler for the signal signal_window_stacking_changed().
virtual void on_window_stacking_changed();
/// This is a default handler for the signal signal_workspace_created().
virtual void on_workspace_created(Workspace* workspace);
/// This is a default handler for the signal signal_workspace_destroyed().
virtual void on_workspace_destroyed(Workspace* workspace);
};
} //namespace Wnck
namespace Glib
{
/** A Glib::wrap() method for this object.
*
* @param object The C instance.
* @param take_copy False if the result should take ownership of the C instance. True if it should take a new copy or ref.
* @result A C++ instance that wraps this C instance.
*
* @relates Wnck::Screen
*/
Wnck::Screen* wrap(WnckScreen* object, bool take_copy = false);
}
#endif /* _WNCKMM_SCREEN_H */
|