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{wxCore
}{librarieslist
}
47 \helpref{wxDC::SetClippingRegion
}{wxdcsetclippingregion
}
51 \latexignore{\rtfignore{\wxheading{Members
}}}
53 \membersection{wxDCClipper::wxDCClipper
}\label{wxdcclipperctor
}
55 \func{}{wxDCClipper
}{\param{wxDC\&
}{dc
},
\param{const wxRegion\&
}{r
}}
57 \func{}{wxDCClipper
}{\param{wxDC\&
}{dc
},
\param{const wxRect\&
}{rect
}}
59 \func{}{wxDCClipper
}{\param{wxDC\&
}{dc
},
\param{int
}{x
},
\param{int
}{y
},
\param{int
}{w
},
\param{int
}{h
}}
61 Sets the clipping region to the specified region
\arg{r
} or rectangle specified
62 by either a single
\arg{rect
} parameter or its position (
\arg{x
} and
\arg{y
})
63 and size (
\arg{w
} ad
\arg{h
}).
65 The clipping region is automatically unset when this object is destroyed.