PushButton

PushButtonSetCargo

Store an application data pointer on the button

Syntax

Signature
xBool           PushButtonSetCargo( PushButton *pushButton, void *cargo );

Arguments

pushButton the push button.

cargo the application data pointer, or NULL to clear it.

Return value

T on success, or F if the object is NULL.

Description

The application manages the lifetime of the data. A focus or action callback can retrieve it with `PushButtonGetCargo()`.

See also