/usr/include/wnckmm-1.0/wnckmm/window.h is in libwnckmm-1.0-0-dev 0.1.1-2.
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 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 | // -*- c++ -*-
// Generated by gmmproc 2.44.0 -- DO NOT MODIFY!
#ifndef _WNCKMM_WINDOW_H
#define _WNCKMM_WINDOW_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/>.
*/
#include <gdkmm/pixbuf.h>
#ifndef DOXYGEN_SHOULD_SKIP_THIS
typedef struct _WnckWindow WnckWindow;
typedef struct _WnckWindowClass WnckWindowClass;
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Wnck
{ class Window_Class; } // namespace Wnck
namespace Wnck
{
/** @addtogroup wnckmmEnums wnckmm Enums and Flags */
/**
*
* @ingroup wnckmmEnums
*/
enum WindowType
{
WINDOW_NORMAL,
WINDOW_DESKTOP,
WINDOW_DOCK,
WINDOW_DIALOG,
WINDOW_TOOLBAR,
WINDOW_MENU,
WINDOW_UTILITY,
WINDOW_SPLASHSCREEN
};
} // namespace Wnck
#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace Glib
{
template <>
class Value<Wnck::WindowType> : public Glib::Value_Enum<Wnck::WindowType>
{
public:
static GType value_type() G_GNUC_CONST;
};
} // namespace Glib
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Wnck
{
/**
*
* @ingroup wnckmmEnums
* @par Bitwise operators:
* <tt>%WindowState operator|(WindowState, WindowState)</tt><br>
* <tt>%WindowState operator&(WindowState, WindowState)</tt><br>
* <tt>%WindowState operator^(WindowState, WindowState)</tt><br>
* <tt>%WindowState operator~(WindowState)</tt><br>
* <tt>%WindowState& operator|=(WindowState&, WindowState)</tt><br>
* <tt>%WindowState& operator&=(WindowState&, WindowState)</tt><br>
* <tt>%WindowState& operator^=(WindowState&, WindowState)</tt><br>
*/
enum WindowState
{
WINDOW_STATE_MINIMIZED = 1 << 0,
WINDOW_STATE_MAXIMIZED_HORIZONTALLY = 1 << 1,
WINDOW_STATE_MAXIMIZED_VERTICALLY = 1 << 2,
WINDOW_STATE_SHADED = 1 << 3,
WINDOW_STATE_SKIP_PAGER = 1 << 4,
WINDOW_STATE_SKIP_TASKLIST = 1 << 5,
WINDOW_STATE_STICKY = 1 << 6,
WINDOW_STATE_HIDDEN = 1 << 7,
WINDOW_STATE_FULLSCREEN = 1 << 8,
WINDOW_STATE_DEMANDS_ATTENTION = 1 << 9,
WINDOW_STATE_URGENT = 1 << 10,
WINDOW_STATE_ABOVE = 1 << 11,
WINDOW_STATE_BELOW = 1 << 12
};
/** @ingroup wnckmmEnums */
inline WindowState operator|(WindowState lhs, WindowState rhs)
{ return static_cast<WindowState>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
/** @ingroup wnckmmEnums */
inline WindowState operator&(WindowState lhs, WindowState rhs)
{ return static_cast<WindowState>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
/** @ingroup wnckmmEnums */
inline WindowState operator^(WindowState lhs, WindowState rhs)
{ return static_cast<WindowState>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
/** @ingroup wnckmmEnums */
inline WindowState operator~(WindowState flags)
{ return static_cast<WindowState>(~static_cast<unsigned>(flags)); }
/** @ingroup wnckmmEnums */
inline WindowState& operator|=(WindowState& lhs, WindowState rhs)
{ return (lhs = static_cast<WindowState>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
/** @ingroup wnckmmEnums */
inline WindowState& operator&=(WindowState& lhs, WindowState rhs)
{ return (lhs = static_cast<WindowState>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
/** @ingroup wnckmmEnums */
inline WindowState& operator^=(WindowState& lhs, WindowState rhs)
{ return (lhs = static_cast<WindowState>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
} // namespace Wnck
#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace Glib
{
template <>
class Value<Wnck::WindowState> : public Glib::Value_Flags<Wnck::WindowState>
{
public:
static GType value_type() G_GNUC_CONST;
};
} // namespace Glib
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Wnck
{
/**
*
* @ingroup wnckmmEnums
* @par Bitwise operators:
* <tt>%WindowActions operator|(WindowActions, WindowActions)</tt><br>
* <tt>%WindowActions operator&(WindowActions, WindowActions)</tt><br>
* <tt>%WindowActions operator^(WindowActions, WindowActions)</tt><br>
* <tt>%WindowActions operator~(WindowActions)</tt><br>
* <tt>%WindowActions& operator|=(WindowActions&, WindowActions)</tt><br>
* <tt>%WindowActions& operator&=(WindowActions&, WindowActions)</tt><br>
* <tt>%WindowActions& operator^=(WindowActions&, WindowActions)</tt><br>
*/
enum WindowActions
{
WINDOW_ACTION_MOVE = 1 << 0,
WINDOW_ACTION_RESIZE = 1 << 1,
WINDOW_ACTION_SHADE = 1 << 2,
WINDOW_ACTION_STICK = 1 << 3,
WINDOW_ACTION_MAXIMIZE_HORIZONTALLY = 1 << 4,
WINDOW_ACTION_MAXIMIZE_VERTICALLY = 1 << 5,
WINDOW_ACTION_CHANGE_WORKSPACE = 1 << 6,
WINDOW_ACTION_CLOSE = 1 << 7,
WINDOW_ACTION_UNMAXIMIZE_HORIZONTALLY = 1 << 8,
WINDOW_ACTION_UNMAXIMIZE_VERTICALLY = 1 << 9,
WINDOW_ACTION_UNSHADE = 1 << 10,
WINDOW_ACTION_UNSTICK = 1 << 11,
WINDOW_ACTION_MINIMIZE = 1 << 12,
WINDOW_ACTION_UNMINIMIZE = 1 << 13,
WINDOW_ACTION_MAXIMIZE = 1 << 14,
WINDOW_ACTION_UNMAXIMIZE = 1 << 15,
WINDOW_ACTION_FULLSCREEN = 1 << 16,
WINDOW_ACTION_ABOVE = 1 << 17,
WINDOW_ACTION_BELOW = 1 << 18
};
/** @ingroup wnckmmEnums */
inline WindowActions operator|(WindowActions lhs, WindowActions rhs)
{ return static_cast<WindowActions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
/** @ingroup wnckmmEnums */
inline WindowActions operator&(WindowActions lhs, WindowActions rhs)
{ return static_cast<WindowActions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
/** @ingroup wnckmmEnums */
inline WindowActions operator^(WindowActions lhs, WindowActions rhs)
{ return static_cast<WindowActions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
/** @ingroup wnckmmEnums */
inline WindowActions operator~(WindowActions flags)
{ return static_cast<WindowActions>(~static_cast<unsigned>(flags)); }
/** @ingroup wnckmmEnums */
inline WindowActions& operator|=(WindowActions& lhs, WindowActions rhs)
{ return (lhs = static_cast<WindowActions>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
/** @ingroup wnckmmEnums */
inline WindowActions& operator&=(WindowActions& lhs, WindowActions rhs)
{ return (lhs = static_cast<WindowActions>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
/** @ingroup wnckmmEnums */
inline WindowActions& operator^=(WindowActions& lhs, WindowActions rhs)
{ return (lhs = static_cast<WindowActions>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
} // namespace Wnck
#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace Glib
{
template <>
class Value<Wnck::WindowActions> : public Glib::Value_Flags<Wnck::WindowActions>
{
public:
static GType value_type() G_GNUC_CONST;
};
} // namespace Glib
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Wnck
{
/**
*
* @ingroup wnckmmEnums
*/
enum WindowGravity
{
WINDOW_GRAVITY_CURRENT,
WINDOW_GRAVITY_NORTHWEST,
WINDOW_GRAVITY_NORTH,
WINDOW_GRAVITY_NORTHEAST,
WINDOW_GRAVITY_WEST,
WINDOW_GRAVITY_CENTER,
WINDOW_GRAVITY_EAST,
WINDOW_GRAVITY_SOUTHWEST,
WINDOW_GRAVITY_SOUTH,
WINDOW_GRAVITY_SOUTHEAST,
WINDOW_GRAVITY_STATIC
};
} // namespace Wnck
#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace Glib
{
template <>
class Value<Wnck::WindowGravity> : public Glib::Value_Enum<Wnck::WindowGravity>
{
public:
static GType value_type() G_GNUC_CONST;
};
} // namespace Glib
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Wnck
{
/**
*
* @ingroup wnckmmEnums
* @par Bitwise operators:
* <tt>%WindowMoveResizeMask operator|(WindowMoveResizeMask, WindowMoveResizeMask)</tt><br>
* <tt>%WindowMoveResizeMask operator&(WindowMoveResizeMask, WindowMoveResizeMask)</tt><br>
* <tt>%WindowMoveResizeMask operator^(WindowMoveResizeMask, WindowMoveResizeMask)</tt><br>
* <tt>%WindowMoveResizeMask operator~(WindowMoveResizeMask)</tt><br>
* <tt>%WindowMoveResizeMask& operator|=(WindowMoveResizeMask&, WindowMoveResizeMask)</tt><br>
* <tt>%WindowMoveResizeMask& operator&=(WindowMoveResizeMask&, WindowMoveResizeMask)</tt><br>
* <tt>%WindowMoveResizeMask& operator^=(WindowMoveResizeMask&, WindowMoveResizeMask)</tt><br>
*/
enum WindowMoveResizeMask
{
WINDOW_CHANGE_X = 1 << 0,
WINDOW_CHANGE_Y = 1 << 1,
WINDOW_CHANGE_WIDTH = 1 << 2,
WINDOW_CHANGE_HEIGHT = 1 << 3
};
/** @ingroup wnckmmEnums */
inline WindowMoveResizeMask operator|(WindowMoveResizeMask lhs, WindowMoveResizeMask rhs)
{ return static_cast<WindowMoveResizeMask>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs)); }
/** @ingroup wnckmmEnums */
inline WindowMoveResizeMask operator&(WindowMoveResizeMask lhs, WindowMoveResizeMask rhs)
{ return static_cast<WindowMoveResizeMask>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs)); }
/** @ingroup wnckmmEnums */
inline WindowMoveResizeMask operator^(WindowMoveResizeMask lhs, WindowMoveResizeMask rhs)
{ return static_cast<WindowMoveResizeMask>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs)); }
/** @ingroup wnckmmEnums */
inline WindowMoveResizeMask operator~(WindowMoveResizeMask flags)
{ return static_cast<WindowMoveResizeMask>(~static_cast<unsigned>(flags)); }
/** @ingroup wnckmmEnums */
inline WindowMoveResizeMask& operator|=(WindowMoveResizeMask& lhs, WindowMoveResizeMask rhs)
{ return (lhs = static_cast<WindowMoveResizeMask>(static_cast<unsigned>(lhs) | static_cast<unsigned>(rhs))); }
/** @ingroup wnckmmEnums */
inline WindowMoveResizeMask& operator&=(WindowMoveResizeMask& lhs, WindowMoveResizeMask rhs)
{ return (lhs = static_cast<WindowMoveResizeMask>(static_cast<unsigned>(lhs) & static_cast<unsigned>(rhs))); }
/** @ingroup wnckmmEnums */
inline WindowMoveResizeMask& operator^=(WindowMoveResizeMask& lhs, WindowMoveResizeMask rhs)
{ return (lhs = static_cast<WindowMoveResizeMask>(static_cast<unsigned>(lhs) ^ static_cast<unsigned>(rhs))); }
} // namespace Wnck
#ifndef DOXYGEN_SHOULD_SKIP_THIS
namespace Glib
{
template <>
class Value<Wnck::WindowMoveResizeMask> : public Glib::Value_Flags<Wnck::WindowMoveResizeMask>
{
public:
static GType value_type() G_GNUC_CONST;
};
} // namespace Glib
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
namespace Wnck
{
class Screen;
class Application;
class ClassGroup;
class Workspace;
/** This represents a workspace.
*/
class Window : public Glib::Object
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
public:
typedef Window CppObjectType;
typedef Window_Class CppClassType;
typedef WnckWindow BaseObjectType;
typedef WnckWindowClass BaseClassType;
private:
friend class Window_Class;
static CppClassType window_class_;
private:
// noncopyable
Window(const Window&);
Window& operator=(const Window&);
protected:
explicit Window(const Glib::ConstructParams& construct_params);
explicit Window(WnckWindow* castitem);
#endif /* DOXYGEN_SHOULD_SKIP_THIS */
public:
virtual ~Window();
/** 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.
WnckWindow* gobj() { return reinterpret_cast<WnckWindow*>(gobject_); }
///Provides access to the underlying C GObject.
const WnckWindow* gobj() const { return reinterpret_cast<WnckWindow*>(gobject_); }
private:
protected:
Window();
public:
static Window* get_for_xid(gulong xid);
Screen* get_screen() const;
bool has_name() const;
std::string get_name() const;
bool has_icon_name() const;
std::string get_icon_name() const;
bool is_icon_fallback() const;
// TODO: is pixbuf const?;
Glib::RefPtr<Gdk::Pixbuf> get_icon() const;
// TODO: is pixbuf const?;
Glib::RefPtr<Gdk::Pixbuf> get_mini_icon() const;
Application* get_application() const;
Window* get_transient() const;
gulong get_group_leader() const;
gulong get_xid() const;
ClassGroup* get_class_group() const;
std::string get_session_id() const;
std::string get_session_id_utf8() const;
int get_pid() const;
int get_sort_order() const;
void set_sort_order(int order);
WindowType get_window_type() const;
void set_window_type(WindowType order);
WindowState get_state() const;
bool is_minimized() const;
bool is_maximized_horizontally() const;
bool is_maximized_vertically() const;
bool is_maximized() const;
bool is_shaded() const;
bool is_pinned() const;
bool is_sticky() const;
bool is_above() const;
bool is_below() const;
bool is_skip_pager() const;
bool is_skip_tasklist() const;
bool is_fullscreen() const;
bool is_needs_attention() const;
bool is_needs_attention_or_transient() const;
WindowActions get_actions() const;
void minimize();
void unminimize(guint32 timestamp);
void maximize();
void unmaximize();
void maximize_vertically();
void unmaximize_vertically();
void maximize_horizontally();
void unmaximize_horizontally();
void shade();
void unshade();
void pin();
void unpin();
void stick();
void unstick();
void make_above();
void unmake_above();
void make_below();
void unmake_below();
void set_skip_pager(bool skip = true);
void set_skip_tasklist(bool skip = true);
void set_fullscreen(bool fullscreen = true);
void close(guint32 timestamp);
Workspace* get_workspace() const;
bool is_on_workspace(const Workspace* workspace) const;
bool is_visible_on_workspace(const Workspace* workspace) const;
void move_to_workspace(const Workspace* workspace);
bool is_in_viewport(const Workspace* workspace) const;
void activate(guint32 timestamp);
bool is_active() const;
bool is_most_recently_activated() const;
void activate_transient(guint32 timestamp);
bool is_transient_most_recently_activated() const;
void set_icon_geometry(int x, int y, int width, int height);
// TODO: documentation
void set_icon_geometry(const Gdk::Rectangle& geom);
// TODO: documentation
Gdk::Rectangle get_client_geometry() const;
// TODO: documentation
Gdk::Rectangle get_geometry() const;
void set_geometry(WindowGravity gravity, WindowMoveResizeMask geometry_mask, int x, int y, int width, int height);
void set_geometry(WindowGravity gravity, WindowMoveResizeMask geometry_mask,
const Gdk::Rectangle& geom);
void keyboard_move();
void keyboard_size();
/**
* @par Slot Prototype:
* <tt>void on_my_%actions_changed(WindowActions changed_mask, WindowActions new_state)</tt>
*
*/
Glib::SignalProxy2< void,WindowActions,WindowActions > signal_actions_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%geometry_changed()</tt>
*
*/
Glib::SignalProxy0< void > signal_geometry_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%state_changed(WindowState changed_mask, WindowState new_state)</tt>
*
*/
Glib::SignalProxy2< void,WindowState,WindowState > signal_state_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%workspace_changed()</tt>
*
*/
Glib::SignalProxy0< void > signal_workspace_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%icon_changed()</tt>
*
*/
Glib::SignalProxy0< void > signal_icon_changed();
/**
* @par Slot Prototype:
* <tt>void on_my_%name_changed()</tt>
*
*/
Glib::SignalProxy0< void > signal_name_changed();
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_actions_changed().
virtual void on_actions_changed(WindowActions changed_mask, WindowActions new_state);
/// This is a default handler for the signal signal_geometry_changed().
virtual void on_geometry_changed();
/// This is a default handler for the signal signal_state_changed().
virtual void on_state_changed(WindowState changed_mask, WindowState new_state);
/// This is a default handler for the signal signal_workspace_changed().
virtual void on_workspace_changed();
/// This is a default handler for the signal signal_icon_changed().
virtual void on_icon_changed();
/// This is a default handler for the signal signal_name_changed().
virtual void on_name_changed();
};
} //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::Window
*/
Wnck::Window* wrap(WnckWindow* object, bool take_copy = false);
}
#endif /* _WNCKMM_WINDOW_H */
|