TwRemoveVar (function)

int TwRemoveVar(TwBar *bar, const char *name)

Description

This function removes a variable, button or separator from a tweak bar.

Parameters

bar

The tweak bar from which to remove a variable.

name

The name of the variable. It is the same name as the one provided to the TwAdd* functions when the variable was added.

Return values

  • 1 if the variable was successfully removed.
  • 0 if an error occurred (call TwGetLastError to retrieve the error).

See also