Documentation for graphex.ew v0.10.5
Table of Contents

Utils

Useful routines


  • proc gfxAddDirty(sequence dr_data)    Manually add a dirty rectangle to the system (see DR_*)
  • func gfxPointInRect(point_x, point_y, rect)   Determine if point_x, point_y is inside the rectangle rect
  • proc gfxResize(gfxid, width, height)   Resize the gfx to new width, new height
  • proc gfxUpdate(gfxid)   Update the internal state of a gfx after changing the size or location of the gfx control

    Documentation for graphex.ew v0.10.5
    Table of Contents

    [proc]
    gfxAddDirty
    (sequence dr_data)

    Manually add a dirty rectangle to the system (see DR_*)

    Category: Utils

    See Also: gfxPointInRect, gfxResize, gfxUpdate


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [func]
    gfxPointInRect
    (point_x, point_y, rect)

    Determine if point_x, point_y is inside the rectangle rect

    Returns: True or False

    Category: Utils

    rect is a sequence {x1, y1, x2, y2} Not to be confused with gfxPointInSprite

    See Also: gfxAddDirty, gfxResize, gfxUpdate


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [proc]
    gfxResize
    (gfxid, width, height)

    Resize the gfx to new width, new height

    Category: Utils

    See Also: gfxAddDirty, gfxPointInRect, gfxUpdate


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [proc]
    gfxUpdate
    (gfxid)

    Update the internal state of a gfx after changing the size or location of the gfx control

    Category: Utils

    used mainly by gfxResize, but you can do this stuff yourself

    See Also: gfxAddDirty, gfxPointInRect, gfxResize