Documentation for graphex.ew v0.10.5
Table of Contents

Painting

There are two ways to draw with this system, rely on AutoPainting see setGfxAutoPaint or call doGfxPaint to do all needed painting at one time (which is usually better)


  • proc doGfxPaint(window)   Have Windows draw any updates to any gfx in the specified window
  • proc forcePaint(window)   forces repainting of all gfxs in the specified window
  • func gfx_paint(self, event, params)   The w32HPaint hander for each gfx object
  • proc setGfxAutoPaint(tof)   Turn on or off AutoPainting

    Documentation for graphex.ew v0.10.5
    Table of Contents

    [proc]
    doGfxPaint
    (window)

    Have Windows draw any updates to any gfx in the specified window

    Category: Painting

    The intention of this procedure is to paint only what is necessary. Call this after all drawing has been done if you do not have setGfxAutoPaint set to true

    See Also: forcePaint, gfx_paint, setGfxAutoPaint


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [proc]
    forcePaint
    (window)

    forces repainting of all gfxs in the specified window

    Category: Painting

    This ignores any dirty rectangle mechanism

    See Also: doGfxPaint, gfx_paint, setGfxAutoPaint


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [func]
    gfx_paint
    (self, event, params)

    The w32HPaint hander for each gfx object

    Category: Painting

    You don't call this directly. By creating a newGfx you imply (depending on the setGfxAutoPaint status that this routine will be called everytime something is drawn on the gfx or when doGfxPaint is called.

    See Also: doGfxPaint, forcePaint, setGfxAutoPaint


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [proc]
    setGfxAutoPaint
    (tof)

    Turn on or off AutoPainting

    Category: Painting

    Although this is on by default it is better to do all of the drawing and then call doGfxPaint
    It is on by default to avoid any confusion about the functionality of the system while developing a program. When optimisation is required disable AutoPainting and call doGfxPaint at the appropriate time.

    See Also: doGfxPaint, forcePaint, gfx_paint