Baigudin Software avatar
Baigudin Software logo
home
ru region
en region

Interface «api::Toggle»

Toggle interface of some controllers.

public: virtual ~Toggle();

Destructor.

public: virtual bool disable();

Disables a controller.

Returns:
an enable source bit value of a controller before method was called.

public: Type enable(bool status, Type ret);

Enables a controller.

Parameters:
status — returned status by disable method.
ret — value which will be returned.

Returns:
given value.

public: virtual void enable(bool status=true);

Enables a controller.

The true passed argument directly turns a controller on, and the false does nothing, a controller stays in the current state.

Parameters:
status — returned status by disable method, or true for directly turning a controller on.

public: virtual bool isConstructed() const;

Tests if this object has been constructed.

public: static bool isObject(const Type* obj);

Tests if given object has been constructed object.

Back to class list