---
name: "CL_InputButton_Basic"
section: "3"
platform: "linux"
package: "clanlib0-common-dev"
version: "0.4.4-8"
release: "Debian 3.0 (Woody)"
platforms: ["linux"]
url: "https://new.carta.tech/CL_InputButton_Basic"
---

# CL\_InputButton\_Basic(3)

CL\_InputButton interface used to ease manual implementation of a input button.

## NAME

CL\_InputButton\_Basic - CL\_InputButton interface used to ease manual implementation of a input button.

## CLASS MEMBERS

- **CL\_InputButton\_Basic**()

  - **CL\_InputButton\_Basic**(

  ```
  bool state)
  ```

- virtual **~CL\_InputButton\_Basic**()

  - virtual bool **is\_pressed**()

  - void **set\_state**(

  ```
  bool state)
  ```

## MEMBERS WITH DESCRIPTIONS

- **CL\_InputButton\_Basic**()

  ```
  Description:
  ```

  Constructs an input button defaulting to not being pressed (false).

- **CL\_InputButton\_Basic**(

  ```
  bool state)
  ```

  ```
  Description:
  ```

  Constructs an input button defaulting to *state*.

- virtual **~CL\_InputButton\_Basic**()

  ```
  Description:
  ```

- virtual bool **is\_pressed**()

  ```
  Description:
  ```

  Returns true if the button is pressed.

  ```
  Return value:
  ```

  True if pressed, false otherwise.

- void **set\_state**(

  ```
  bool state)
  ```

  ```
  Parameters:
  state - New button state. True = up, False = down.
  ```

  ```
  Description:
  ```

  Changes the current button state. If *state* is true, the button will beup, otherwise down.

## SEE ALSO

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

## AUTHORS

Originally written by Magnus Norddahl \<*mbn@dark.x.dtu.dk*\> and Martin Starch \<*starch@dark.x.dtu.dk*\>. 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.
