Reference

CL_InputButton_Group(3)

CL_InputButton container class.

NAME

CL_InputButton_Group - CL_InputButton container class.

DESCRIPTION

Groups a set of buttons - if either of them are down, CL_InputButton_Groups is down.

Inherited from public CL_InputButton

CLASS MEMBERS

void add(
CL_InputButton *add_button)

void remove(
CL_InputButton *remove_button)

virtual bool is_pressed()

MEMBERS WITH DESCRIPTIONS

void add(
CL_InputButton *add_button)

Parameters:
add_button - Button to be added.

Description:

Adds a input button to the group.

void remove(
CL_InputButton *remove_button)

Parameters:
remove_button - Button to be removed.

Description:

Removes a (previously added) button from the group.

virtual bool is_pressed()
Description:

Returns true if just one of the buttons in the button group is down; false otherwise.

Return value:

True if pressed, false otherwise.

SEE ALSO

All ClanLib API classes can be found in clanlib (3).

AUTHORS

Originally written by Magnus Norddahl <[email protected]> and Martin Starch <[email protected]>. ClanLib is now developed by the ClanLib Development team as an Open Source project.

The ClanLib man pages was created using the Perceps documentation system (another excellent piece of Open Source software, available at http://somewhere.in.the.world.org).

See clanlib (3) to find out how to get a full list of contributors and details on how to submit bug reports, comments etc.