Table Of Contents

Previous topic

SVGFileDC

Next topic

ScrollBar

This Page

phoenix_title ScreenDC

A ScreenDC can be used to paint on the screen.

This should normally be constructed as a temporary stack object; don’t store a ScreenDC object.


class_hierarchy Inheritance Diagram

Inheritance diagram for class ScreenDC

Inheritance diagram of ScreenDC


method_summary Methods Summary

__init__ Constructor.
EndDrawingOnTop Use this in conjunction with StartDrawingOnTop .
StartDrawingOnTop Use this in conjunction with EndDrawingOnTop to ensure that drawing to the screen occurs on top of existing windows.

api Class API



class ScreenDC(DC)

A ScreenDC can be used to paint on the screen.

Possible constructors:

ScreenDC()

Methods



__init__(self)

Constructor.



static EndDrawingOnTop()

Use this in conjunction with StartDrawingOnTop .

This function destroys the temporary window created to implement on-top drawing (X only).

Return type:bool


static StartDrawingOnTop(*args, **kw)

overload Overloaded Implementations:



StartDrawingOnTop (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 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 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 SplitterWindow implementation.

Parameters:window (Window) –
Return type:bool

Note

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.



StartDrawingOnTop (rect=None)

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 None 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 , 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 SplitterWindow implementation.

Parameters:rect (Rect) –
Return type:bool

Note

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.