1Glib::Flags(3) User Contributed Perl Documentation Glib::Flags(3)
2
3
4
6 Glib::Flags
7
9 Glib maps flag and enum values to the nicknames strings provided by the
10 underlying C libraries. Representing flags this way in Perl is an
11 interesting problem, which Glib solves by using some cool overloaded
12 operators.
13
14 The functions described here actually do the work of those overloaded
15 operators. See the description of the flags operators in the "This Is
16 Now That" section of Glib for more info.
17
19 scalar = $a->all ($b, $swap)
20
21 * $b (scalar)
22 * $swap (integer)
23
24 scalar = $a->as_arrayref ($b, $swap)
25
26 * $b (scalar)
27 * $swap (integer)
28
29 integer = $a->bool ($b, $swap)
30
31 * $b (scalar)
32 * $swap (integer)
33
34 integer = $a->eq ($b, $swap)
35
36 * $b (scalar)
37 * $swap (integer)
38
39 integer = $a->ge ($b, $swap)
40
41 * $b (scalar)
42 * $swap (integer)
43
44 scalar = $a->intersect ($b, $swap)
45
46 * $b (scalar)
47 * $swap (integer)
48
49 scalar = $a->sub ($b, $swap)
50
51 * $b (scalar)
52 * $swap (integer)
53
54 scalar = $a->union ($b, $swap)
55
56 * $b (scalar)
57 * $swap (integer)
58
59 scalar = $a->xor ($b, $swap)
60
61 * $b (scalar)
62 * $swap (integer)
63
65 Glib
66
68 Copyright (C) 2003-2007 by the gtk2-perl team.
69
70 This software is licensed under the LGPL. See Glib for a full notice.
71
72
73
74perl v5.8.8 2007-02-26 Glib::Flags(3)