3 #ifndef _GDKMM_WINDOW_H
4 #define _GDKMM_WINDOW_H
6 #include <gdkmmconfig.h>
9 #include <glibmm/ustring.h>
10 #include <sigc++/sigc++.h>
38 #ifndef DOXYGEN_SHOULD_SKIP_THIS
45 #ifndef DOXYGEN_SHOULD_SKIP_THIS
49 #ifndef DOXYGEN_SHOULD_SKIP_THIS
51 {
class Window_Class; }
99 {
return static_cast<EventMask>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
103 {
return static_cast<EventMask>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
107 {
return static_cast<EventMask>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
111 {
return static_cast<EventMask>(~static_cast<unsigned>(flags)); }
115 {
return (lhs =
static_cast<EventMask>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
119 {
return (lhs =
static_cast<EventMask>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
123 {
return (lhs =
static_cast<EventMask>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
128 #ifndef DOXYGEN_SHOULD_SKIP_THIS
136 static GType value_type() G_GNUC_CONST;
171 {
return static_cast<WindowState>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
175 {
return static_cast<WindowState>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
179 {
return static_cast<WindowState>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
183 {
return static_cast<WindowState>(~static_cast<unsigned>(flags)); }
187 {
return (lhs =
static_cast<WindowState>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
191 {
return (lhs =
static_cast<WindowState>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
195 {
return (lhs =
static_cast<WindowState>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
200 #ifndef DOXYGEN_SHOULD_SKIP_THIS
208 static GType value_type() G_GNUC_CONST;
236 #ifndef DOXYGEN_SHOULD_SKIP_THIS
244 static GType value_type() G_GNUC_CONST;
281 {
return static_cast<WindowAttributesType>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
285 {
return static_cast<WindowAttributesType>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
289 {
return static_cast<WindowAttributesType>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
297 {
return (lhs =
static_cast<WindowAttributesType>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
301 {
return (lhs =
static_cast<WindowAttributesType>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
305 {
return (lhs =
static_cast<WindowAttributesType>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
310 #ifndef DOXYGEN_SHOULD_SKIP_THIS
318 static GType value_type() G_GNUC_CONST;
355 {
return static_cast<WindowHints>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
359 {
return static_cast<WindowHints>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
363 {
return static_cast<WindowHints>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
367 {
return static_cast<WindowHints>(~static_cast<unsigned>(flags)); }
371 {
return (lhs =
static_cast<WindowHints>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
375 {
return (lhs =
static_cast<WindowHints>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
379 {
return (lhs =
static_cast<WindowHints>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
384 #ifndef DOXYGEN_SHOULD_SKIP_THIS
392 static GType value_type() G_GNUC_CONST;
427 #ifndef DOXYGEN_SHOULD_SKIP_THIS
435 static GType value_type() G_GNUC_CONST;
470 {
return static_cast<WMDecoration>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
474 {
return static_cast<WMDecoration>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
478 {
return static_cast<WMDecoration>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
482 {
return static_cast<WMDecoration>(~static_cast<unsigned>(flags)); }
486 {
return (lhs =
static_cast<WMDecoration>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
490 {
return (lhs =
static_cast<WMDecoration>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
494 {
return (lhs =
static_cast<WMDecoration>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
499 #ifndef DOXYGEN_SHOULD_SKIP_THIS
507 static GType value_type() G_GNUC_CONST;
541 {
return static_cast<WMFunction>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
545 {
return static_cast<WMFunction>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
549 {
return static_cast<WMFunction>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
553 {
return static_cast<WMFunction>(~static_cast<unsigned>(flags)); }
557 {
return (lhs =
static_cast<WMFunction>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
561 {
return (lhs =
static_cast<WMFunction>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
565 {
return (lhs =
static_cast<WMFunction>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
570 #ifndef DOXYGEN_SHOULD_SKIP_THIS
578 static GType value_type() G_GNUC_CONST;
607 #ifndef DOXYGEN_SHOULD_SKIP_THIS
615 static GType value_type() G_GNUC_CONST;
646 #ifndef DOXYGEN_SHOULD_SKIP_THIS
654 static GType value_type() G_GNUC_CONST;
680 #ifndef DOXYGEN_SHOULD_SKIP_THIS
688 static GType value_type() G_GNUC_CONST;
711 #ifndef DOXYGEN_SHOULD_SKIP_THIS
714 typedef Window CppObjectType;
720 static CppClassType window_class_;
728 explicit Window(
const Glib::ConstructParams& construct_params);
740 #ifndef DOXYGEN_SHOULD_SKIP_THIS
743 static GType get_base_type() G_GNUC_CONST;
763 static Glib::RefPtr<Window>
create(
const Glib::RefPtr<Window>& parent,
GdkWindowAttr* attributes,
int attributes_mask);
894 void reparent(
const Glib::RefPtr<Window>& new_parent,
int x,
int y);
960 void restack(
const Glib::RefPtr<Window>& sibling,
bool above);
1892 void set_icon_list(
const Glib::ListHandle< Glib::RefPtr<Gdk::Pixbuf> >& pixbufs);
1904 void set_icon(
const Glib::RefPtr<Window>& icon_window,
const Glib::RefPtr<Pixmap>&
pixmap,
const Glib::RefPtr<Bitmap>& mask);
1905 void set_icon(
const Glib::RefPtr<Window>& icon_window,
const Glib::RefPtr<Pixmap>&
pixmap);
1997 #ifndef GDKMM_DISABLE_DEPRECATED
2138 Glib::RefPtr<DragContext>
drag_begin(
const Glib::StringArrayHandle& targets);
Glib::RefPtr< const Display > get_display() const
GdkWindow * gobj()
Provides access to the underlying C GObject.
void get_root_origin(int &x, int &y) const
void set_icon(const Glib::RefPtr< Window > &icon_window, const Glib::RefPtr< Pixmap > &pixmap, const Glib::RefPtr< Bitmap > &mask)
Glib::RefPtr< Window > get_effective_parent()
Glib::RefPtr< Window > get_toplevel()
EventMask get_events() const
void invalidate_region(const Region ®ion, bool invalidate_children=true)
void coords_from_parent(double parent_x, double parent_y, double &x, double &y)
void clear_area_e(int x, int y, int width, int height)
void get_root_coords(int x, int y, int &root_x, int &root_y)
void move_region(const Region ®ion, int dx, int dy)
void reparent(const Glib::RefPtr< Window > &new_parent, int x, int y)
void set_keep_below(bool setting=true)
Glib::RefPtr< const Window > get_parent() const
void set_modal_hint(bool modal=true)
bool get_decorations(WMDecoration &decorations) const
void set_startup_id(const Glib::ustring &startup_id)
void set_back_pixmap(const Glib::RefPtr< Pixmap > &pixmap, bool parent_relative=true)
void set_functions(WMFunction functions)
GrabStatus pointer_grab(bool owner_events, EventMask event_mask, guint32 timestamp)
void coords_to_parent(double x, double y, double &parent_x, double &parent_y)
void set_keep_above(bool setting=true)
bool get_focus_on_map() const
Glib::RefPtr< Pixmap > get_offscreen_pixmap()
void set_skip_taskbar_hint(bool skips_taskbar=true)
int get_origin(int &x, int &y) const
void enable_synchronized_configure()
void set_background(const Color &color)
bool get_modal_hint() const
static void process_all_updates()
void add_filter(GdkFilterFunc function, gpointer data)
void set_type_hint(WindowTypeHint hint)
void merge_child_shapes()
static Glib::RefPtr< Window > create(const Glib::RefPtr< Window > &parent, GdkWindowAttr *attributes, int attributes_mask)
void input_shape_combine_mask(const Glib::RefPtr< Bitmap > &mask, int x, int y)
void set_child_input_shapes()
void shape_combine_region(const Region &shape_region, int offset_x, int offset_y)
void begin_resize_drag(WindowEdge edge, int button, int root_x, int root_y, guint32 timestamp)
Glib::RefPtr< Window > get_offscreen_embedder()
::Cairo::RefPtr< ::Cairo::Pattern > get_background_pattern()
void get_internal_paint_info(Glib::RefPtr< Drawable > &real_drawable, int &x_offset, int &y_offset) const
Glib::RefPtr< Window > get_effective_toplevel()
void remove_redirection()
static void set_sm_client_id(const Glib::ustring &sm_client_id)
void clear_area(int x, int y, int width, int height)
Glib::RefPtr< const Window > get_offscreen_embedder() const
Glib::ListHandle< Glib::RefPtr< Window > > get_children()
bool get_accept_focus() const
static Glib::RefPtr< Window > get_default_root_window()
Glib::RefPtr< const Window > get_effective_parent() const
Glib::RefPtr< const Window > get_group() const
GrabStatus pointer_grab(bool owner_events, EventMask event_mask, const Glib::RefPtr< const Window > &confine_to, const Cursor &cursor, guint32 time_)
void set_user_data(gpointer user_data)
void set_geometry_hints(const Geometry &geometry, WindowHints geom_mask)
void process_updates(bool update_children)
static void set_debug_updates(bool setting=true)
bool set_static_gravities(bool use_static=true)
static void constrain_size(const Geometry &geometry, guint flags, int width, int height, int &new_width, int &new_height)
void focus(guint32 timestamp)
Glib::RefPtr< Window > get_pointer(int &x, int &y, ModifierType &mask)
WindowTypeHint get_type_hint()
void scroll(int dx, int dy)
void get_position(int &x, int &y) const
void shape_combine_mask(const Glib::RefPtr< Bitmap > &mask, int x, int y)
void get_user_data(gpointer *data)
Window(const Glib::RefPtr< Window > &parent, GdkWindowAttr *attributes, int attributes_mask)
void set_decorations(WMDecoration decorations)
void set_title(const Glib::ustring &title)
Glib::RefPtr< const Window > get_toplevel() const
void set_icon(const Glib::RefPtr< Window > &icon_window, const Glib::RefPtr< Pixmap > &pixmap)
void unset_shape_combine_mask()
void restack(const Glib::RefPtr< Window > &sibling, bool above)
Glib::RefPtr< Screen > get_screen()
void set_urgency_hint(bool urgent=true)
void remove_filter(GdkFilterFunc function, gpointer data)
void begin_paint_rect(Rectangle &rectangle)
::Cairo::RefPtr< ::Cairo::Surface > create_similar_surface(::Cairo::Content content, int width, int height)
Glib::RefPtr< DragContext > drag_begin(const Glib::StringArrayHandle &targets)
GrabStatus pointer_grab(bool owner_events, EventMask event_mask, const Cursor &cursor, guint32 timestamp)
void set_skip_pager_hint(bool skips_pager=true)
Glib::RefPtr< Visual > get_visual()
void redirect_to_drawable(const Glib::RefPtr< Drawable > &drawable, int src_x, int src_y, int dest_x, int dest_y, int width, int height)
void set_override_redirect(bool override_redirect=true)
const GdkWindow * gobj() const
Provides access to the underlying C GObject.
static GType get_type() G_GNUC_CONST
void set_icon_list(const Glib::ListHandle< Glib::RefPtr< Gdk::Pixbuf > > &pixbufs)
void get_frame_extents(Rectangle &rect)
void get_geometry(int &x, int &y, int &width, int &height, int &depth) const
void invalidate(bool invalidate_children)
static void unset_sm_client_id()
void set_transient_for(const Glib::RefPtr< Window > &parent)
void set_composited(bool composited=TRUE)
void set_cursor(const Cursor &cursor)
void set_offscreen_embedder(const Glib::RefPtr< Window > &embedder)
Glib::ListHandle< Glib::RefPtr< const Window > > get_children() const
static Glib::ListHandle< Glib::RefPtr< Window > > get_toplevels()
void set_events(EventMask event_mask)
Glib::RefPtr< const Pixmap > get_offscreen_pixmap() const
Glib::RefPtr< Window > get_parent()
void resize(int width, int height)
void set_group(const Glib::RefPtr< Window > &leader)
void set_icon_name(const Glib::ustring &name)
Glib::RefPtr< Gdk::Window > wrap(GdkWindowObject *object, bool take_copy=false)
static void pointer_ungrab(guint32 timestamp)
void set_accept_focus(bool accept_focus=true)
bool is_input_only() const
Glib::RefPtr< Display > get_display()
Glib::RefPtr< Window > get_group()
static void keyboard_ungrab(guint32 timestamp)
WindowState get_state() const
GdkWindow * gobj_copy()
Provides access to the underlying C instance. The caller is responsible for unrefing it....
void set_focus_on_map(bool focus_on_map)
void merge_child_input_shapes()
void begin_paint_region(const Region ®ion)
::Cairo::RefPtr< const ::Cairo::Pattern > get_background_pattern() const
WindowType get_window_type() const
void configure_finished()
GrabStatus keyboard_grab(bool owner_events, guint32 timestamp)
void set_role(const Glib::ustring &role)
void begin_move_drag(int button, int root_x, int root_y, guint32 timestamp)
void set_opacity(double opacity)
bool get_composited() const
Glib::RefPtr< const Visual > get_visual() const
void move_resize(int x, int y, int width, int height)
Glib::RefPtr< const Screen > get_screen() const
void input_shape_combine_region(const Region &shape_region, int offset_x, int offset_y)
void invalidate_rect(const Rectangle &rect, bool invalidate_children)
GdkFilterReturn(* GdkFilterFunc)(GdkXEvent *xevent, GdkEvent *event, gpointer data)
GtkImageIconNameData name
GtkImagePixmapData pixmap
PBD::PropertyDescriptor< uint32_t > color
void rectangle(Cairo::RefPtr< Cairo::Context > context, double x, double y, double w, double h, double r=10)