1package X11::Xlib::XSizeHints;
2require X11::Xlib::Struct;
3__END__
4
5=head1 NAME
6
7X11::Xlib::XSizeHints - Struct providing window size hints to the Window Manager
8
9=head1 ATTRIBUTES
10
11The fields of the struct are as follows (from X11 docs)
12
13  long flags;         /* marks which fields in this structure are defined */
14  int x, y;           /* obsolete for new window mgrs, but clients */
15  int width, height;  /* should set so old wm's don't mess up */
16  int min_width, min_height;
17  int max_width, max_height;
18  int width_inc, height_inc;
19  struct {
20      int x;  /* numerator */
21      int y;  /* denominator */
22  } min_aspect, max_aspect;
23  int base_width, base_height;  /* added by ICCCM version 1 */
24  int win_gravity;              /* added by ICCCM version 1 */
25
26The accessor methods for C<min_aspect> and C<max_aspect> are a special case:
27
28  ->min_aspect_x
29  ->min_aspect_y
30  ->max_aspect_x
31  ->max_aspect_y
32
33The values for C<flags> are exported with
34
35  use X11::Xlib ':const_sizehint';
36
37and can be an ORed combination of:
38
39  USPosition   /* user specified x, y */
40  USSize       /* user specified width, height */
41  PPosition    /* program specified position */
42  PSize        /* program specified size */
43  PMinSize     /* program specified minimum size */
44  PMaxSize     /* program specified maximum size */
45  PResizeInc   /* program specified resize increments */
46  PAspect      /* program specified min and max aspect ratios */
47  PBaseSize    /* program specified base for incrementing */
48  PWinGravity  /* program specified window gravity */
49
50=head1 METHODS
51
52See parent class L<X11::Xlib::Struct>
53
54=head1 AUTHOR
55
56Olivier Thauvin, E<lt>nanardon@nanardon.zarb.orgE<gt>
57
58Michael Conrad, E<lt>mike@nrdvana.netE<gt>
59
60=head1 COPYRIGHT AND LICENSE
61
62Copyright (C) 2009-2010 by Olivier Thauvin
63
64Copyright (C) 2017 by Michael Conrad
65
66This library is free software; you can redistribute it and/or modify
67it under the same terms as Perl itself, either Perl version 5.10.0 or,
68at your option, any later version of Perl 5 you may have available.
69
70=cut
71