Gtk2
view release on metacpan or search on metacpan
xs/GdkWindow.xs view on Meta::CPAN
visual Gtk2::Gdk::Visual
colormap Gtk2::Gdk::Colormap
window_type Gtk2::Gdk::WindowType enum
cursor Gtk2::Gdk::Cursor
wmclass_name string
wmclass_class string
override_redirect boolean (integer 0 or 1)
window_type is mandatory because it defaults to "root" but of course
it's not possible to create a new root window. The other fields get default
values zero, empty, unset, etc.
my $win = Gtk2::Gdk::Window->new
(undef, { window_type => 'toplevel,
wclass => 'GDK_INPUT_OUTPUT',
x => 0,
y => 0,
width => 200,
height => 100 });
Incidentally, the nicknames for wclass Gtk2::Gdk::WindowClass really
are "output" for input-output and "only" for input-only. Those names
are a bit odd, but that's what Gtk has. You can, as for any enum,
give the full names like "GDK_INPUT_OUTPUT" if desired, for some
clarity.
=cut
# Note: no _noinc here, as we dot own the returned window.
GdkWindow *
gdk_window_new (class, parent, attributes_ref)
GdkWindow_ornull *parent
SV *attributes_ref
PREINIT:
GdkWindowAttr *attributes;
GdkWindowAttributesType attributes_mask;
CODE:
attributes = SvGdkWindowAttrReal (attributes_ref, &attributes_mask);
RETVAL = gdk_window_new (parent, attributes, attributes_mask);
OUTPUT:
RETVAL
## void gdk_window_destroy (GdkWindow *window)
void
gdk_window_destroy (window)
GdkWindow *window
## GdkWindowType gdk_window_get_window_type (GdkWindow *window)
GdkWindowType
gdk_window_get_window_type (window)
GdkWindow *window
## GdkWindow* gdk_window_at_pointer (gint *win_x, gint *win_y)
=for apidoc
=for signature (window, win_x, win_y) = Gtk2::Gdk::Window->at_pointer
Returns window, a Gtk2::Gdk::Window and win_x and win_y, integers.
=cut
void
gdk_window_at_pointer (class)
PREINIT:
GdkWindow * window;
gint win_x, win_y;
PPCODE:
window = gdk_window_at_pointer (&win_x, &win_y);
EXTEND (SP, 3);
PUSHs (sv_2mortal (newSVGdkWindow (window)));
PUSHs (sv_2mortal (newSViv (win_x)));
PUSHs (sv_2mortal (newSViv (win_y)));
PERL_UNUSED_VAR (ax);
## void gdk_window_show (GdkWindow *window)
void
gdk_window_show (window)
GdkWindow *window
## void gdk_window_hide (GdkWindow *window)
void
gdk_window_hide (window)
GdkWindow *window
## void gdk_window_withdraw (GdkWindow *window)
void
gdk_window_withdraw (window)
GdkWindow *window
## void gdk_window_show_unraised (GdkWindow *window)
void
gdk_window_show_unraised (window)
GdkWindow *window
## void gdk_window_move (GdkWindow *window, gint x, gint y)
void
gdk_window_move (window, x, y)
GdkWindow *window
gint x
gint y
## void gdk_window_resize (GdkWindow *window, gint width, gint height)
void
gdk_window_resize (window, width, height)
GdkWindow *window
gint width
gint height
## void gdk_window_move_resize (GdkWindow *window, gint x, gint y, gint width, gint height)
void
gdk_window_move_resize (window, x, y, width, height)
GdkWindow *window
gint x
gint y
gint width
gint height
## void gdk_window_reparent (GdkWindow *window, GdkWindow *new_parent, gint x, gint y)
void
gdk_window_reparent (window, new_parent, x, y)
GdkWindow *window
GdkWindow *new_parent
gint x
gint y
## void gdk_window_clear (GdkWindow *window)
void
xs/GdkWindow.xs view on Meta::CPAN
gdk_window_set_back_pixmap (window, pixmap, parent_relative = 0)
GdkWindow *window
GdkPixmap_ornull *pixmap
gboolean parent_relative
## void gdk_window_set_cursor (GdkWindow *window, GdkCursor *cursor)
void
gdk_window_set_cursor (window, cursor)
GdkWindow * window
GdkCursor_ornull * cursor
## void gdk_window_get_user_data (GdkWindow *window, gpointer *data)
gulong
gdk_window_get_user_data (window)
GdkWindow * window
CODE:
gdk_window_get_user_data (window, (gpointer*)&RETVAL);
if( !RETVAL )
XSRETURN_UNDEF;
OUTPUT:
RETVAL
## void gdk_window_get_geometry (GdkWindow *window, gint *x, gint *y, gint *width, gint *height, gint *depth)
void gdk_window_get_geometry (GdkWindow *window, OUTLIST gint x, OUTLIST gint y, OUTLIST gint width, OUTLIST gint height, OUTLIST gint depth)
## void gdk_window_get_position (GdkWindow *window, gint *x, gint *y)
void gdk_window_get_position (GdkWindow *window, OUTLIST gint x, OUTLIST gint y)
## docs say return type is not meaningful, ignore
## gint gdk_window_get_origin (GdkWindow *window, gint *x, gint *y)
void gdk_window_get_origin (GdkWindow *window, OUTLIST gint x, OUTLIST gint y)
## void gdk_window_get_root_origin (GdkWindow *window, gint *x, gint *y)
void gdk_window_get_root_origin (GdkWindow *window, OUTLIST gint x, OUTLIST gint y)
## void gdk_window_get_frame_extents (GdkWindow *window, GdkRectangle *rect)
GdkRectangle_copy *
gdk_window_get_frame_extents (window)
GdkWindow *window
PREINIT:
GdkRectangle rect;
CODE:
gdk_window_get_frame_extents (window, &rect);
RETVAL = ▭
OUTPUT:
RETVAL
=for apidoc
=for signature (window_at_pointer, x, y, mask) = $window->get_pointer
Returns window_at_pointer, a Gtk2::Gdk::Window or undef, x and y, integers, and
mask, a Gtk2::Gdk::ModifierType.
=cut
## GdkWindow * gdk_window_get_pointer (GdkWindow *window, gint *x, gint *y, GdkModifierType *mask)
void
gdk_window_get_pointer (GdkWindow *window)
PREINIT:
GdkWindow * win;
gint x;
gint y;
GdkModifierType mask;
PPCODE:
win = gdk_window_get_pointer (window, &x, &y, &mask);
EXTEND (SP, 4);
PUSHs (sv_2mortal (newSVGdkWindow_ornull (win)));
PUSHs (sv_2mortal (newSViv (x)));
PUSHs (sv_2mortal (newSViv (y)));
PUSHs (sv_2mortal (newSVGdkModifierType (mask)));
## GdkWindow * gdk_window_get_parent (GdkWindow *window)
GdkWindow *
gdk_window_get_parent (window)
GdkWindow *window
## GdkWindow * gdk_window_get_toplevel (GdkWindow *window)
GdkWindow *
gdk_window_get_toplevel (window)
GdkWindow *window
## GList * gdk_window_get_children (GdkWindow *window)
## GList * gdk_window_peek_children (GdkWindow *window)
## we use ALIAS here b/c we're cheating and using peek_children all of the time
## since we're going to make a copy of the list anyway there's no need for gdk to
=for apidoc Gtk2::Gdk::Window::peek_children
An alias for get_children
=cut
=for apidoc
Returns the list of children (Gtk2::Gdk::Window's) known to gdk.
=cut
void
gdk_window_get_children (window)
GdkWindow *window
ALIAS:
Gtk2::Gdk::Window::peek_children = 1
PREINIT:
GList *windows = NULL, *i;
PPCODE:
PERL_UNUSED_VAR (ix);
windows = gdk_window_peek_children (window);
for (i = windows; i != NULL; i = i->next)
XPUSHs (sv_2mortal (newSVGdkWindow (i->data)));
## GdkEventMask gdk_window_get_events (GdkWindow *window)
GdkEventMask
gdk_window_get_events (window)
GdkWindow *window
## void gdk_window_set_events (GdkWindow *window, GdkEventMask event_mask)
void
gdk_window_set_events (window, event_mask)
GdkWindow *window
GdkEventMask event_mask
=for apidoc
=for arg ... of GdkPixbuf's
=cut
## void gdk_window_set_icon_list (GdkWindow *window, GList *pixbufs)
void
gdk_window_set_icon_list (window, ...)
GdkWindow *window
PREINIT:
int i;
GList *pixbufs = NULL;
CODE:
for (i = 1; i < items; i++)
pixbufs = g_list_append (pixbufs, SvGdkPixbuf (ST (i)));
gdk_window_set_icon_list (window, pixbufs);
g_list_free (pixbufs);
## void gdk_window_set_icon (GdkWindow *window, GdkWindow *icon_window, GdkPixmap *pixmap, GdkBitmap *mask)
void
gdk_window_set_icon (window, icon_window, pixmap, mask)
GdkWindow *window
GdkWindow_ornull *icon_window
GdkPixmap_ornull *pixmap
GdkBitmap_ornull *mask
## void gdk_window_set_icon_name (GdkWindow *window, const gchar *name)
void
gdk_window_set_icon_name (window, name)
GdkWindow *window
const gchar_ornull *name
#if GTK_CHECK_VERSION (2, 4, 0)
void gdk_window_set_accept_focus (GdkWindow *window, gboolean accept_focus)
void gdk_window_set_keep_above (GdkWindow *window, gboolean setting)
void gdk_window_set_keep_below (GdkWindow *window, gboolean setting)
GdkWindow * gdk_window_get_group (GdkWindow * window)
#endif
## void gdk_window_set_group (GdkWindow *window, GdkWindow *leader)
void
gdk_window_set_group (window, leader)
GdkWindow *window
GdkWindow_ornull *leader
## void gdk_window_set_decorations (GdkWindow *window, GdkWMDecoration decorations)
void
gdk_window_set_decorations (window, decorations)
GdkWindow *window
GdkWMDecoration decorations
## gboolean gdk_window_get_decorations (GdkWindow *window, GdkWMDecoration *decorations)
void
gdk_window_get_decorations (GdkWindow *window)
PREINIT:
gboolean result;
GdkWMDecoration decorations;
PPCODE:
result = gdk_window_get_decorations (window, &decorations);
EXTEND (SP, 2);
PUSHs (sv_2mortal (boolSV (result)));
PUSHs (sv_2mortal (newSVGdkWMDecoration (decorations)));
## void gdk_window_set_functions (GdkWindow *window, GdkWMFunction functions)
void
gdk_window_set_functions (window, functions)
GdkWindow *window
GdkWMFunction functions
## GList * gdk_window_get_toplevels (void)
=for apidoc
Returns a list of top level windows (Gtk2::Gdk::Window's) known to gdk, on the
default screen. A toplevel window is a child of the root window.
=cut
void
gdk_window_get_toplevels (class)
PREINIT:
GList *windows = NULL, *i;
PPCODE:
windows = gdk_window_get_toplevels ();
for (i = windows; i != NULL; i = i->next)
XPUSHs (sv_2mortal (newSVGdkWindow (i->data)));
g_list_free (windows);
PERL_UNUSED_VAR (ax);
## void gdk_window_iconify (GdkWindow *window)
void
gdk_window_iconify (window)
GdkWindow *window
## void gdk_window_deiconify (GdkWindow *window)
void
gdk_window_deiconify (window)
GdkWindow *window
## void gdk_window_stick (GdkWindow *window)
void
gdk_window_stick (window)
GdkWindow *window
## void gdk_window_unstick (GdkWindow *window)
void
gdk_window_unstick (window)
GdkWindow *window
## void gdk_window_maximize (GdkWindow *window)
void
gdk_window_maximize (window)
GdkWindow *window
## void gdk_window_unmaximize (GdkWindow *window)
void
gdk_window_unmaximize (window)
GdkWindow *window
#if GTK_CHECK_VERSION(2,2,0)
## void gdk_window_fullscreen (GdkWindow *window)
void
gdk_window_fullscreen (window)
GdkWindow *window
## void gdk_window_unfullscreen (GdkWindow *window)
void
gdk_window_unfullscreen (window)
GdkWindow *window
#endif
## void gdk_window_register_dnd (GdkWindow *window)
void
gdk_window_register_dnd (window)
GdkWindow *window
## void gdk_window_begin_resize_drag (GdkWindow *window, GdkWindowEdge edge, gint button, gint root_x, gint root_y, guint32 timestamp)
void
gdk_window_begin_resize_drag (window, edge, button, root_x, root_y, timestamp)
xs/GdkWindow.xs view on Meta::CPAN
GdkRegion *region
gboolean invalidate_children
## void gdk_window_invalidate_maybe_recurse (GdkWindow *window, GdkRegion *region, gboolean (*child_func) (GdkWindow *, gpointer), gpointer user_data)
void
gdk_window_invalidate_maybe_recurse (window, region, func, data=NULL)
GdkWindow *window
GdkRegion *region
SV *func
SV *data
PREINIT:
GPerlCallback *callback;
CODE:
callback = gtk2perl_gdk_window_invalidate_maybe_recurse_func_create (func, data);
gdk_window_invalidate_maybe_recurse (window,
region,
gtk2perl_gdk_window_invalidate_maybe_recurse_func,
callback);
gperl_callback_destroy (callback);
## GdkRegion* gdk_window_get_update_area (GdkWindow *window)
GdkRegion_own_ornull *
gdk_window_get_update_area (window)
GdkWindow *window
## void gdk_window_freeze_updates (GdkWindow *window)
void
gdk_window_freeze_updates (window)
GdkWindow * window
## void gdk_window_thaw_updates (GdkWindow *window)
void
gdk_window_thaw_updates (window)
GdkWindow * window
=for apidoc
=for signature Gtk2::Gdk::Window->process_all_updates
=for signature $window->process_all_updates
=cut
void gdk_window_process_all_updates (class_or_instance)
C_ARGS: /*void*/
=for apidoc
=for signature Gtk2::Gdk::Window->set_debug_updates ($enable)
=for signature $window->set_debug_updates ($enable)
=cut
void gdk_window_set_debug_updates (class_or_instance, gboolean enable)
C_ARGS: enable
## void gdk_window_process_updates (GdkWindow *window, gboolean update_children)
void
gdk_window_process_updates (GdkWindow * window, gboolean update_children)
## void gdk_window_get_internal_paint_info (GdkWindow *window, GdkDrawable **real_drawable, gint *x_offset, gint *y_offset)
void
gdk_window_get_internal_paint_info (GdkWindow *window)
PREINIT:
GdkDrawable *real_drawable = NULL;
gint x_offset;
gint y_offset;
PPCODE:
gdk_window_get_internal_paint_info (window, &real_drawable, &x_offset, &y_offset);
EXTEND (SP, 3);
PUSHs (sv_2mortal (newSVGdkDrawable (real_drawable)));
PUSHs (sv_2mortal (newSViv (x_offset)));
PUSHs (sv_2mortal (newSViv (y_offset)));
#if GTK_CHECK_VERSION (2, 6, 0)
void gdk_window_enable_synchronized_configure (GdkWindow *window);
void gdk_window_configure_finished (GdkWindow *window);
void gdk_window_set_focus_on_map (GdkWindow *window, gboolean focus_on_map);
#endif
#if GTK_CHECK_VERSION (2, 8, 0)
void gdk_window_set_urgency_hint (GdkWindow *window, gboolean urgent);
void gdk_window_move_region (GdkWindow *window, GdkRegion *region, gint dx, gint dy);
#endif
#if GTK_CHECK_VERSION (2, 10, 0)
GdkWindowTypeHint gdk_window_get_type_hint (GdkWindow *window);
void gdk_window_input_shape_combine_mask (GdkWindow * window, GdkBitmap_ornull *mask, gint x, gint y);
void gdk_window_input_shape_combine_region (GdkWindow * window, GdkRegion_ornull *shape, gint offset_x, gint offset_y);
void gdk_window_set_child_input_shapes (GdkWindow *window);
void gdk_window_merge_child_input_shapes (GdkWindow *window);
#endif
#if GTK_CHECK_VERSION (2, 12, 0)
void gdk_window_beep (GdkWindow *window);
void gdk_window_set_startup_id (GdkWindow *window, const gchar *startup_id);
void gdk_window_set_opacity (GdkWindow *window, gdouble opacity);
void gdk_window_set_composited (GdkWindow *window, gboolean composited);
#endif
#if GTK_CHECK_VERSION (2, 14, 0)
void gdk_window_redirect_to_drawable (GdkWindow *window, GdkDrawable *drawable, gint src_x, gint src_y, gint dest_x, gint dest_y, gint width, gint height);
void gdk_window_remove_redirection (GdkWindow *window)
#endif /* 2.14 */
#if GTK_CHECK_VERSION (2, 18, 0)
( run in 0.874 second using v1.01-cache-2.11-cpan-5511b514fd6 )