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; }
102 {
return static_cast<EventMask>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
106 {
return static_cast<EventMask>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
110 {
return static_cast<EventMask>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
114 {
return static_cast<EventMask>(~static_cast<unsigned>(flags)); }
118 {
return (lhs =
static_cast<EventMask>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
122 {
return (lhs =
static_cast<EventMask>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
126 {
return (lhs =
static_cast<EventMask>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
131 #ifndef DOXYGEN_SHOULD_SKIP_THIS
139 static GType value_type() G_GNUC_CONST;
174 {
return static_cast<WindowState>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
178 {
return static_cast<WindowState>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
182 {
return static_cast<WindowState>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
186 {
return static_cast<WindowState>(~static_cast<unsigned>(flags)); }
190 {
return (lhs =
static_cast<WindowState>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
194 {
return (lhs =
static_cast<WindowState>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
198 {
return (lhs =
static_cast<WindowState>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
203 #ifndef DOXYGEN_SHOULD_SKIP_THIS
211 static GType value_type() G_GNUC_CONST;
239 #ifndef DOXYGEN_SHOULD_SKIP_THIS
247 static GType value_type() G_GNUC_CONST;
284 {
return static_cast<WindowAttributesType>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
288 {
return static_cast<WindowAttributesType>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
292 {
return static_cast<WindowAttributesType>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
300 {
return (lhs =
static_cast<WindowAttributesType>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
304 {
return (lhs =
static_cast<WindowAttributesType>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
308 {
return (lhs =
static_cast<WindowAttributesType>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
313 #ifndef DOXYGEN_SHOULD_SKIP_THIS
321 static GType value_type() G_GNUC_CONST;
358 {
return static_cast<WindowHints>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
362 {
return static_cast<WindowHints>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
366 {
return static_cast<WindowHints>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
370 {
return static_cast<WindowHints>(~static_cast<unsigned>(flags)); }
374 {
return (lhs =
static_cast<WindowHints>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
378 {
return (lhs =
static_cast<WindowHints>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
382 {
return (lhs =
static_cast<WindowHints>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
387 #ifndef DOXYGEN_SHOULD_SKIP_THIS
395 static GType value_type() G_GNUC_CONST;
430 #ifndef DOXYGEN_SHOULD_SKIP_THIS
438 static GType value_type() G_GNUC_CONST;
473 {
return static_cast<WMDecoration>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
477 {
return static_cast<WMDecoration>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
481 {
return static_cast<WMDecoration>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
485 {
return static_cast<WMDecoration>(~static_cast<unsigned>(flags)); }
489 {
return (lhs =
static_cast<WMDecoration>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
493 {
return (lhs =
static_cast<WMDecoration>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
497 {
return (lhs =
static_cast<WMDecoration>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
502 #ifndef DOXYGEN_SHOULD_SKIP_THIS
510 static GType value_type() G_GNUC_CONST;
544 {
return static_cast<WMFunction>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs)); }
548 {
return static_cast<WMFunction>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs)); }
552 {
return static_cast<WMFunction>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs)); }
556 {
return static_cast<WMFunction>(~static_cast<unsigned>(flags)); }
560 {
return (lhs =
static_cast<WMFunction>(
static_cast<unsigned>(lhs) |
static_cast<unsigned>(rhs))); }
564 {
return (lhs =
static_cast<WMFunction>(
static_cast<unsigned>(lhs) &
static_cast<unsigned>(rhs))); }
568 {
return (lhs =
static_cast<WMFunction>(
static_cast<unsigned>(lhs) ^
static_cast<unsigned>(rhs))); }
573 #ifndef DOXYGEN_SHOULD_SKIP_THIS
581 static GType value_type() G_GNUC_CONST;
610 #ifndef DOXYGEN_SHOULD_SKIP_THIS
618 static GType value_type() G_GNUC_CONST;
649 #ifndef DOXYGEN_SHOULD_SKIP_THIS
657 static GType value_type() G_GNUC_CONST;
683 #ifndef DOXYGEN_SHOULD_SKIP_THIS
691 static GType value_type() G_GNUC_CONST;
714 #ifndef DOXYGEN_SHOULD_SKIP_THIS
717 typedef Window CppObjectType;
723 static CppClassType window_class_;
731 explicit Window(
const Glib::ConstructParams& construct_params);
743 #ifndef DOXYGEN_SHOULD_SKIP_THIS
746 static GType get_base_type() G_GNUC_CONST;
766 static Glib::RefPtr<Window>
create(
const Glib::RefPtr<Window>& parent,
GdkWindowAttr* attributes,
int attributes_mask);
897 void reparent(
const Glib::RefPtr<Window>& new_parent,
int x,
int y);
963 void restack(
const Glib::RefPtr<Window>& sibling,
bool above);
1895 void set_icon_list(
const Glib::ListHandle< Glib::RefPtr<Gdk::Pixbuf> >& pixbufs);
1907 void set_icon(
const Glib::RefPtr<Window>& icon_window,
const Glib::RefPtr<Pixmap>&
pixmap,
const Glib::RefPtr<Bitmap>& mask);
1908 void set_icon(
const Glib::RefPtr<Window>& icon_window,
const Glib::RefPtr<Pixmap>&
pixmap);
2000 #ifndef GDKMM_DISABLE_DEPRECATED
2141 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
PBD::PropertyDescriptor< bool > region
void rectangle(Cairo::RefPtr< Cairo::Context > context, double x, double y, double w, double h, double r=10)