1 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %% Purpose: wxDCClipper documentation
4 %% Author: Vadim Zeitlin
7 %% Copyright: (c) 2006 Vadim Zeitlin
8 %% License: wxWindows license
9 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11 \section{\class{wxDCClipper
}}\label{wxdcclipper
}
13 wxDCClipper is a small helper class for setting a clipping region on a
14 \helpref{wxDC
}{wxdc
} and unsetting it automatically. An object of wxDCClipper
15 class is typically created on the stack so that it is automatically destroyed
16 when the object goes out of scope. A typical usage example:
19 void MyFunction(wxDC& dc)
21 wxDCClipper clip(rect);
22 ... drawing functions here are affected by clipping rect ...
29 ... drawing functions here are not affected by clipping rect ...
33 \wxheading{Derived from
}
37 \wxheading{Include files
}
43 \helpref{wxDC::SetClippingRegion
}{wxdcsetclippingregion
}
47 \latexignore{\rtfignore{\wxheading{Members
}}}
49 \membersection{wxDCClipper::wxDCClipper
}\label{wxdcclipperctor
}
51 \func{}{wxDCClipper
}{\param{wxDC\&
}{dc
},
\param{const wxRegion\&
}{r
}}
53 \func{}{wxDCClipper
}{\param{wxDC\&
}{dc
},
\param{const wxRect\&
}{rect
}}
55 \func{}{wxDCClipper
}{\param{wxDC\&
}{dc
},
\param{int
}{x
},
\param{int
}{y
},
\param{int
}{w
},
\param{int
}{h
}}
57 Sets the clipping region to the specified region
\arg{r
} or rectangle specified
58 by either a single
\arg{rect
} parameter or its position (
\arg{x
} and
\arg{y
})
59 and size (
\arg{w
} ad
\arg{h
}).
61 The clipping region is automatically unset when this object is destroyed.