Changes between Version 7 and Version 8 of IconTutorial


Ignore:
Timestamp:
Dec 29, 2007, 9:28:48 AM (17 years ago)
Author:
cinc
Comment:

Explanantion of <ctxt> command

Legend:

Unmodified
Added
Removed
Modified
  • IconTutorial

    v7 v8  
    139139
    140140[[Image(source:/icon_tutorial/overlay1.png, nolink)]]
     141
     142=== The commands in detail ===
     143
     144 <ctxt>save/restore<\>::
     145   Save and restore the current paint context.
     146
     147The icon engine holds internal data defining the current colors, fonts, angle of rotation etc. Some paint commands alter this information in a global way. To preserve a set state the ''<ctxt>'' command can be used. It stores all the data on a stack and any changes will be reverted when issuing a ''<ctx>restore<\>''.[[BR]]
     148It is save to have several of these commands in a set of commands. Make sure every '''save''' has an associated '''restore'''.
     149