1package X11::Xlib::XSetWindowAttributes; 2require X11::Xlib::Struct; 3__END__ 4 5=head1 NAME 6 7X11::Xlib::XSetWindowAttributes - Struct defining window attributes 8 9=head1 DESCRIPTION 10 11This struct contains various attributes of a window, to be applied 12with calls like L<XCreateWindow|X11::Xlib/XCreateWindow> 13or L<XChangeWindowAttributes|X11::Xlib/XChangeWindowAttributes>. 14 15=head1 ATTRIBUTES 16 17(copied from X11 docs) 18 19 Pixmap background_pixmap; /* background, None, or ParentRelative */ 20 unsigned long background_pixel; /* background pixel */ 21 Pixmap border_pixmap; /* border of the window or CopyFromParent */ 22 unsigned long border_pixel; /* border pixel value */ 23 int bit_gravity; /* one of bit gravity values */ 24 int win_gravity; /* one of the window gravity values */ 25 int backing_store; /* NotUseful, WhenMapped, Always */ 26 unsigned long backing_planes; /* planes to be preserved if possible */ 27 unsigned long backing_pixel; /* value to use in restoring planes */ 28 Bool save_under; /* should bits under be saved? (popups) */ 29 long event_mask; /* set of events that should be saved */ 30 long do_not_propagate_mask; /* set of events that should not propagate */ 31 Bool override_redirect; /* boolean value for override_redirect */ 32 Colormap colormap; /* color map to be associated with window */ 33 Cursor cursor; /* cursor to be displayed (or None) */ 34 35Several Xlib functions allow you to specify which fields are defined rather 36than forcing you to apply all attributes at once. The constants to indicate 37which fields are use can be exported with 38 39 use X11::Xlib ':const_winattr'; 40 41 # CWBackPixel CWBackPixmap CWBackingPixel CWBackingPlanes CWBackingStore 42 # CWBitGravity CWBorderPixel CWBorderPixmap CWColormap CWCursor 43 # CWDontPropagate CWEventMask CWOverrideRedirect CWSaveUnder CWWinGravity 44 45=head1 METHODS 46 47See parent class L<X11::Xlib::Struct> 48 49=head1 AUTHOR 50 51Olivier Thauvin, E<lt>nanardon@nanardon.zarb.orgE<gt> 52 53Michael Conrad, E<lt>mike@nrdvana.netE<gt> 54 55=head1 COPYRIGHT AND LICENSE 56 57Copyright (C) 2009-2010 by Olivier Thauvin 58 59Copyright (C) 2017 by Michael Conrad 60 61This library is free software; you can redistribute it and/or modify 62it under the same terms as Perl itself, either Perl version 5.10.0 or, 63at your option, any later version of Perl 5 you may have available. 64 65=cut 66