2 * Copyright © 2011 Red Hat Inc.
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 * Authors: Benjamin Otte <otte@gnome.org>
21 #include "gtkallocatedbitmaskprivate.h"
23 static inline GtkBitmask *
24 _gtk_bitmask_new (void)
26 return _gtk_allocated_bitmask_new ();
29 static inline GtkBitmask *
30 _gtk_bitmask_copy (const GtkBitmask *mask)
32 return _gtk_allocated_bitmask_copy (mask);
36 _gtk_bitmask_free (GtkBitmask *mask)
38 return _gtk_allocated_bitmask_free (mask);
42 _gtk_bitmask_to_string (const GtkBitmask *mask)
44 return _gtk_allocated_bitmask_to_string (mask);
48 _gtk_bitmask_print (const GtkBitmask *mask,
51 return _gtk_allocated_bitmask_print (mask, string);
54 static inline GtkBitmask *
55 _gtk_bitmask_intersect (GtkBitmask *mask,
56 const GtkBitmask *other)
58 return _gtk_allocated_bitmask_intersect (mask, other);
61 static inline GtkBitmask *
62 _gtk_bitmask_union (GtkBitmask *mask,
63 const GtkBitmask *other)
65 return _gtk_allocated_bitmask_union (mask, other);
68 static inline GtkBitmask *
69 _gtk_bitmask_subtract (GtkBitmask *mask,
70 const GtkBitmask *other)
72 return _gtk_allocated_bitmask_subtract (mask, other);
75 static inline gboolean
76 _gtk_bitmask_get (const GtkBitmask *mask,
79 return _gtk_allocated_bitmask_get (mask, index_);
82 static inline GtkBitmask *
83 _gtk_bitmask_set (GtkBitmask *mask,
87 return _gtk_allocated_bitmask_set (mask, index_, value);
90 static inline GtkBitmask *
91 _gtk_bitmask_invert_range (GtkBitmask *mask,
95 return _gtk_allocated_bitmask_invert_range (mask, start, end);
98 static inline gboolean
99 _gtk_bitmask_is_empty (const GtkBitmask *mask)
101 return _gtk_allocated_bitmask_is_empty (mask);
104 static inline gboolean
105 _gtk_bitmask_equals (const GtkBitmask *mask,
106 const GtkBitmask *other)
108 return _gtk_allocated_bitmask_equals (mask, other);
111 static inline gboolean
112 _gtk_bitmask_intersects (const GtkBitmask *mask,
113 const GtkBitmask *other)
115 return _gtk_allocated_bitmask_intersects (mask, other);