.TH TICKIT_WINDOW_REF 3 .SH NAME tickit_window_ref, tickit_window_unref \- adjust the refcount of a window .SH SYNOPSIS .EX .B #include .sp .BI "TickitWindow *tickit_window_ref(TickitWindow *" win ); .BI "void tickit_window_unref(TickitWindow *" win ); .EE .sp Link with \fI\-ltickit\fP. .SH DESCRIPTION \fBtickit_window_ref\fP() increments the stored refcount of the given window instance by one. It returns the pointer argument itself, so it is useful for chaining. .PP \fBtickit_window_unref\fP() decrements the stored refcount of the given window instance by one. If the refcount drops to zero, the instance is destroyed. This will release any resources controlled by it and unbind all the bound event handlers, causing handlers to be invoked with the \fBTICKIT_EV_DESTROY\fP flag if appropriate. .SH "RETURN VALUE" \fBtickit_window_ref\fP() returns a window instance pointer. \fBtickit_window_unref\fP() returns no value. .SH "SEE ALSO" .BR tickit_window_new (3), .BR tickit_window (7), .BR tickit (7)