![]() |
![]() |
![]() |
![]() |
GDstack_push and GDstack_pop
Synopsis
save and restore a view's state
void GDstack_push
(GDview *view)
void GDstack_pop
(GDview *view)Description
GDstack_push saves the specified view's state. GDstack_pop restores it.
Internally, a view has a structure called GDstack. A call to GDstack_push places a marker on the stack. Each time you set a state variable with a call to one of the GDstate_set routines, the current value of the state variable is saved on the stack. Later, when you call GD_stack_pop, the view's state is restored by copying the state variables on the view's GDstack, all the way back to the marker. The state variables and the marker are then removed from the stack.
![]() |
![]() |
![]() |
![]() |