File: dcscreen.h

package info (click to toggle)
wxwidgets3.0 3.0.5.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 120,464 kB
  • sloc: cpp: 896,633; makefile: 52,303; ansic: 21,971; sh: 5,713; python: 2,940; xml: 1,534; perl: 264; javascript: 33
file content (81 lines) | stat: -rw-r--r-- 3,280 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/////////////////////////////////////////////////////////////////////////////
// Name:        dcscreen.h
// Purpose:     interface of wxScreenDC
// Author:      wxWidgets team
// Licence:     wxWindows licence
/////////////////////////////////////////////////////////////////////////////

/**
    @class wxScreenDC

    A wxScreenDC can be used to paint on the screen. This should normally be
    constructed as a temporary stack object; don't store a wxScreenDC object.

    @library{wxcore}
    @category{dc}

    @see wxDC, wxMemoryDC, wxPaintDC, wxClientDC, wxWindowDC
*/
class wxScreenDC : public wxDC
{
public:
    /**
        Constructor.
    */
    wxScreenDC();

    /**
        Use this in conjunction with StartDrawingOnTop().

        This function destroys the temporary window created to implement on-top
        drawing (X only).
    */
    static bool EndDrawingOnTop();

    /**
        Use this in conjunction with EndDrawingOnTop() to ensure that drawing
        to the screen occurs on top of existing windows. Without this, some
        window systems (such as X) only allow drawing to take place underneath
        other windows.

        This version of StartDrawingOnTop() is used to specify that the area
        that will be drawn on coincides with the given window. It is
        recommended that an area of the screen is specified with
        StartDrawingOnTop(wxRect*) because with large regions, flickering
        effects are noticeable when destroying the temporary transparent window
        used to implement this feature.

        You might use this function when implementing a drag feature, for
        example as in the wxSplitterWindow implementation.

        @remarks This function is probably obsolete since the X implementations
                 allow drawing directly on the screen now. However, the fact
                 that this function allows the screen to be refreshed
                 afterwards, may be useful to some applications.
    */
    static bool StartDrawingOnTop(wxWindow* window);
    /**
        Use this in conjunction with EndDrawingOnTop() to ensure that drawing
        to the screen occurs on top of existing windows. Without this, some
        window systems (such as X) only allow drawing to take place underneath
        other windows.

        This version of StartDrawingOnTop() is used to specify an area of the
        screen which is to be drawn on. If @NULL is passed, the whole screen is
        available. It is recommended that an area of the screen is specified
        with this function rather than with StartDrawingOnTop(wxWindow*),
        because with large regions, flickering effects are noticeable when
        destroying the temporary transparent window used to implement this
        feature.

        You might use this function when implementing a drag feature, for
        example as in the wxSplitterWindow implementation.

        @remarks This function is probably obsolete since the X implementations
                 allow drawing directly on the screen now. However, the fact
                 that this function allows the screen to be refreshed
                 afterwards, may be useful to some applications.
    */
    static bool StartDrawingOnTop(wxRect* rect = NULL);
};