atkmm  2.22.7
Public Member Functions | Static Public Member Functions | Related Functions | List of all members
Atk::StateSet Class Reference

An AtkStateSet determines a component's state set. More...

#include <atkmm/stateset.h>

Inheritance diagram for Atk::StateSet:
Inheritance graph
[legend]

Public Member Functions

AtkStateSet* gobj ()
 Provides access to the underlying C GObject.
 
const AtkStateSet* gobj () const
 Provides access to the underlying C GObject.
 
AtkStateSet* gobj_copy ()
 Provides access to the underlying C instance. The caller is responsible for unrefing it. Use when directly setting fields in structs.
 
bool is_empty () const
 Checks whether the state set is empty, i.e. has no states set. More...
 
bool add_state (Atk::StateType type)
 Add a new state for the specified type to the current state set if it is not already present. More...
 
void clear_states ()
 Removes all states from the state set.
 
bool contains_state (Atk::StateType type)
 Checks whether the state for the specified type is in the specified set. More...
 
bool remove_state (Atk::StateType type)
 Removes the state for the specified type from the state set. More...
 
Glib::RefPtr< StateSetand_sets (const Glib::RefPtr< StateSet >& compare_set)
 Constructs the intersection of the two sets, returning 0 if the intersection is empty. More...
 
Glib::RefPtr< StateSetor_sets (const Glib::RefPtr< StateSet >& compare_set)
 Constructs the union of the two sets. More...
 
Glib::RefPtr< StateSetxor_sets (const Glib::RefPtr< StateSet >& compare_set)
 Constructs the exclusive-or of the two sets, returning 0 is empty. More...
 

Static Public Member Functions

static GType get_type ()
 Get the GType for this class, for use with the underlying GObject type system.
 

Related Functions

(Note that these are not member functions.)

Glib::RefPtr< Atk::StateSetwrap (AtkStateSet* object, bool take_copy=false)
 A Glib::wrap() method for this object. More...
 

Detailed Description

An AtkStateSet determines a component's state set.

It is composed of a set of Atk::States.

Member Function Documentation

bool Atk::StateSet::add_state ( Atk::StateType  type)

Add a new state for the specified type to the current state set if it is not already present.

Parameters
typeAn Atk::StateType.
Returns
true if the state for type is not already in set.
Glib::RefPtr<StateSet> Atk::StateSet::and_sets ( const Glib::RefPtr< StateSet >&  compare_set)

Constructs the intersection of the two sets, returning 0 if the intersection is empty.

Parameters
compare_setAnother Atk::StateSet.
Returns
A new Atk::StateSet which is the intersection of the two sets.
bool Atk::StateSet::contains_state ( Atk::StateType  type)

Checks whether the state for the specified type is in the specified set.

Parameters
typeAn Atk::StateType.
Returns
true if type is the state type is in set.
bool Atk::StateSet::is_empty ( ) const

Checks whether the state set is empty, i.e. has no states set.

Returns
true if set has no states set, otherwise false.
Glib::RefPtr<StateSet> Atk::StateSet::or_sets ( const Glib::RefPtr< StateSet >&  compare_set)

Constructs the union of the two sets.

Parameters
compare_setAnother Atk::StateSet.
Returns
A new Atk::StateSet which is the union of the two sets, returning 0 is empty.
bool Atk::StateSet::remove_state ( Atk::StateType  type)

Removes the state for the specified type from the state set.

Parameters
typeAn Atk::Type.
Returns
true if type was the state type is in set.
Glib::RefPtr<StateSet> Atk::StateSet::xor_sets ( const Glib::RefPtr< StateSet >&  compare_set)

Constructs the exclusive-or of the two sets, returning 0 is empty.

The set returned by this operation contains the states in exactly one of the two sets.

Parameters
compare_setAnother Atk::StateSet.
Returns
A new Atk::StateSet which contains the states which are in exactly one of the two sets.

Friends And Related Function Documentation

Glib::RefPtr< Atk::StateSet > wrap ( AtkStateSet *  object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy or ref.
Returns
A C++ instance that wraps this C instance.