docs: Add a note about other state variables
Explain that the private structure would be the place to store other state variables for the instance.
This commit is contained in:
parent
08f5dc08d0
commit
5530c5e2ec
@ -22,6 +22,10 @@ G_DEFINE_TYPE (CbButton, cb_button, CLUTTER_TYPE_ACTOR);
|
||||
* intend to create wrapper functions which modify properties on the
|
||||
* actors composing an object, we should keep a reference to the actors
|
||||
* here
|
||||
*
|
||||
* this is also the place where other state variables go:
|
||||
* for example, you might record the current state of the button
|
||||
* (toggled on or off) or a background image
|
||||
*/
|
||||
struct _CbButtonPrivate
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user