GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
wxBufferedPaintDC(3) Erlang Module Definition wxBufferedPaintDC(3)

wxBufferedPaintDC - Functions for wxBufferedPaintDC class

This is a subclass of wxBufferedDC which can be used inside of an EVT_PAINT() event handler to achieve double-buffered drawing. Just use this class instead of wxPaintDC and make sure wxWindow:setBackgroundStyle/2 is called with wxBG_STYLE_PAINT somewhere in the class initialization code, and that's all you have to do to (mostly) avoid flicker. The only thing to watch out for is that if you are using this class together with wxScrolled (not implemented in wx), you probably do not want to call wxScrolledWindow:prepareDC/2 on it as it already does this internally for the real underlying wxPaintDC.

See: wxDC, wxBufferedDC, wxAutoBufferedPaintDC (not implemented in wx), wxPaintDC

This class is derived (and can use functions) from: wxBufferedDC wxMemoryDC wxDC

wxWidgets docs: wxBufferedPaintDC

wxBufferedPaintDC() = wx:wx_object()

new(Window) -> wxBufferedPaintDC()


Types:

Window = wxWindow:wxWindow()

new(Window, Buffer) -> wxBufferedPaintDC()


new(Window, Buffer :: [Option]) -> wxBufferedPaintDC()


Types:

Window = wxWindow:wxWindow()
Option = {style, integer()}

new(Window, Buffer, Options :: [Option]) -> wxBufferedPaintDC()


Types:

Window = wxWindow:wxWindow()
Buffer = wxBitmap:wxBitmap()
Option = {style, integer()}

As with wxBufferedDC, you may either provide the bitmap to be used for buffering or let this object create one internally (in the latter case, the size of the client part of the window is used).

Pass wxBUFFER_CLIENT_AREA for the style parameter to indicate that just the client area of the window is buffered, or wxBUFFER_VIRTUAL_AREA to indicate that the buffer bitmap covers the virtual area.

destroy(This :: wxBufferedPaintDC()) -> ok


Copies everything drawn on the DC so far to the window associated with this object, using a wxPaintDC.

wx 2.1.1 wxWidgets team.

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.