Debian Codegraph @

atk/src/stateset.hg

raw
1 /* Copyright (C) 1998-2002 The gtkmm Development Team
2 *
3 * This library is free software; you can redistribute it and/or
4 * modify it under the terms of the GNU Lesser General Public
5 * License as published by the Free Software Foundation; either
6 * version 2.1 of the License, or (at your option) any later version.
7 *
8 * This library is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * Lesser General Public License for more details.
12 *
13 * You should have received a copy of the GNU Lesser General Public
14 * License along with this library; if not, see <https://www.gnu.org/licenses/>.
15 */
16
17 _CONFIGINCLUDE(atkmmconfig.h)
18
19 _DEFS(atkmm,atk)
20 _PINCLUDE(glibmm/private/object_p.h)
21
22 #include <glibmm/object.h>
23 #include <glibmm/value.h>
24 #include <glibmm/arrayhandle.h>
25
26 namespace Atk
27 {
28
29 _CC_INCLUDE(atk/atk-enum-types.h)
30 _WRAP_ENUM(StateType, AtkStateType, decl_prefix ATKMM_API)
31
32 /** An AtkStateSet determines a component's state set.
33 * It is composed of a set of Atk::States.
34 */
35 class ATKMM_API StateSet : public Glib::Object
36 {
37 _CLASS_GOBJECT(StateSet, AtkStateSet, ATK_STATE_SET, Glib::Object, GObject, , , ATKMM_API)
38
39 protected:
40 _CTOR_DEFAULT()
41
42 public:
43 _WRAP_CREATE()
44
45 _WRAP_METHOD(bool is_empty() const, atk_state_set_is_empty)
46
47 //Note that we use Atk::StateType instead of StateType, because there is a Gtk::StateType too, and Doxygen gets confused.
48 _WRAP_METHOD(bool add_state(Atk::StateType type), atk_state_set_add_state)
49 void add_states(const Glib::ArrayHandle<Atk::StateType>& types);
50 _IGNORE(atk_state_set_add_states)
51 _WRAP_METHOD(void clear_states(),atk_state_set_clear_states)
52 _WRAP_METHOD(bool contains_state(Atk::StateType type), atk_state_set_contains_state)
53 bool contains_states(const Glib::ArrayHandle<Atk::StateType>& types) const;
54 _IGNORE(atk_state_set_contains_states)
55 _WRAP_METHOD(bool remove_state(Atk::StateType type), atk_state_set_remove_state)
56 _WRAP_METHOD(Glib::RefPtr<StateSet> and_sets(const Glib::RefPtr<StateSet>& compare_set), atk_state_set_and_sets)
57 _WRAP_METHOD(Glib::RefPtr<StateSet> or_sets(const Glib::RefPtr<StateSet>& compare_set), atk_state_set_or_sets)
58 _WRAP_METHOD(Glib::RefPtr<StateSet> xor_sets(const Glib::RefPtr<StateSet>& compare_set), atk_state_set_xor_sets)
59 };
60
61 } // namespace Atk