Documentation for graphex.ew v0.10.5
Table of Contents

Internal

Info for people interested in the internals of graphex.ew


  • var AutoUpdate   Controls whether auto painting will occur or not
  • var blank_gfx   Empty gfx object
  • proc cleanDirtyRects(gfxid)    removes all references to gfxid from the dirty_rects structure
  • var current_font   tracks currently selected font
  • var dirty_rects   A sequence of areas that need redrawing during every WM_PAINT
  • var DR_*   Sequence indices for the dirty rectangle system
  • var font_scale   Routines dealing with getting the gfx's drawn
  • var font_x   This is the calculated width of a font character
  • var font_y   This is the calculated height of the font characters
  • var gfxfont   sequence holding sequences of gfx-fonts
  • var gfxs   
  • var GFX_TOP   Sequence length verification
  • func GI(gfx_id)   get the index into the gfxs sequence of the gfx with id gfx_id
  • var last_id   unique id counter for gfxs
  • var putch   Routine id of the character drawing routine
  • func total_rect(window_id)    Find the greatest encompassing rectangle of all the dirty_rects

    Documentation for graphex.ew v0.10.5
    Table of Contents

    [var]
    AutoUpdate

    Controls whether auto painting will occur or not

    Category: Internal

    See Also: blank_gfx, cleanDirtyRects, current_font, dirty_rects, DR_*, font_scale, font_x, font_y, gfxfont, gfxs, GFX_TOP, GI, last_id, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [var]
    blank_gfx

    Empty gfx object

    Category: Internal

    This is my preferred method of creating new 'objects' with sequences as sometime you may not want all elements to be the same.

    See Also: AutoUpdate, cleanDirtyRects, current_font, dirty_rects, DR_*, font_scale, font_x, font_y, gfxfont, gfxs, GFX_TOP, GI, last_id, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [proc]
    cleanDirtyRects
    (gfxid)

    removes all references to gfxid from the dirty_rects structure

    Category: Internal

    See Also: AutoUpdate, blank_gfx, current_font, dirty_rects, DR_*, font_scale, font_x, font_y, gfxfont, gfxs, GFX_TOP, GI, last_id, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [var]
    current_font

    tracks currently selected font

    Category: Internal

    See Also: AutoUpdate, blank_gfx, cleanDirtyRects, dirty_rects, DR_*, font_scale, font_x, font_y, gfxfont, gfxs, GFX_TOP, GI, last_id, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [var]
    dirty_rects

    A sequence of areas that need redrawing during every WM_PAINT

    Category: Internal

    I think there may be serious problems with the logic involved with this in gfx_paint due to frequent changes to the actual notification method of AutoPainting. In any case a complete redraw with doGfxPaint should not be affected.

    See Also: AutoUpdate, blank_gfx, cleanDirtyRects, current_font, DR_*, font_scale, font_x, font_y, gfxfont, gfxs, GFX_TOP, GI, last_id, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [var]
    DR_*

    Sequence indices for the dirty rectangle system

    Category: Internal


    DR_GFX, copy of the gfx object
    DR_SX, DR_SY, DR_DX, DR_DY, bounding rectangle of area needing repaint as x1, y1, x2, y2

    See Also: AutoUpdate, blank_gfx, cleanDirtyRects, current_font, dirty_rects, font_scale, font_x, font_y, gfxfont, gfxs, GFX_TOP, GI, last_id, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [var]
    font_scale

    Routines dealing with getting the gfx's drawn

    Category: Internal

    See Also: AutoUpdate, blank_gfx, cleanDirtyRects, current_font, dirty_rects, DR_*, font_x, font_y, gfxfont, gfxs, GFX_TOP, GI, last_id, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [var]
    font_x

    This is the calculated width of a font character

    Category: Internal

    See Also: AutoUpdate, blank_gfx, cleanDirtyRects, current_font, dirty_rects, DR_*, font_scale, font_y, gfxfont, gfxs, GFX_TOP, GI, last_id, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [var]
    font_y

    This is the calculated height of the font characters

    Category: Internal

    form of gfxTextOutAt which takes a bounding box to wrap the text in. At present the height calculation is wrong.

    See Also: AutoUpdate, blank_gfx, cleanDirtyRects, current_font, dirty_rects, DR_*, font_scale, font_x, gfxfont, gfxs, GFX_TOP, GI, last_id, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [var]
    gfxfont

    sequence holding sequences of gfx-fonts

    Category: Internal

    See Also: AutoUpdate, blank_gfx, cleanDirtyRects, current_font, dirty_rects, DR_*, font_scale, font_x, font_y, gfxs, GFX_TOP, GI, last_id, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [var]
    gfxs

    Category: Internal

    sequence of each gfx object created with newGfx(...)

    See Also: AutoUpdate, blank_gfx, cleanDirtyRects, current_font, dirty_rects, DR_*, font_scale, font_x, font_y, gfxfont, GFX_TOP, GI, last_id, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [var]
    GFX_TOP

    Sequence length verification

    Category: Internal

    This should be updated to the sequence index of the last element of a gfx sequence if this is changed.

    See Also: AutoUpdate, blank_gfx, cleanDirtyRects, current_font, dirty_rects, DR_*, font_scale, font_x, font_y, gfxfont, gfxs, GI, last_id, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [func]
    GI
    (gfx_id)

    get the index into the gfxs sequence of the gfx with id gfx_id

    Returns: the index or -1 if not found

    Category: Internal

    See Also: AutoUpdate, blank_gfx, cleanDirtyRects, current_font, dirty_rects, DR_*, font_scale, font_x, font_y, gfxfont, gfxs, GFX_TOP, last_id, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [var]
    last_id

    unique id counter for gfxs

    Category: Internal

    See Also: AutoUpdate, blank_gfx, cleanDirtyRects, current_font, dirty_rects, DR_*, font_scale, font_x, font_y, gfxfont, gfxs, GFX_TOP, GI, putch, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [var]
    putch

    Routine id of the character drawing routine

    Category: Internal

    I have no idea what this is used for

    See Also: AutoUpdate, blank_gfx, cleanDirtyRects, current_font, dirty_rects, DR_*, font_scale, font_x, font_y, gfxfont, gfxs, GFX_TOP, GI, last_id, total_rect


    Documentation for graphex.ew v0.10.5
    Table of Contents

    [func]
    total_rect
    (window_id)

    Find the greatest encompassing rectangle of all the dirty_rects

    Category: Internal

    This is used in various places including gfx_paint find greatest rectangle of all gfxs on this window

    See Also: AutoUpdate, blank_gfx, cleanDirtyRects, current_font, dirty_rects, DR_*, font_scale, font_x, font_y, gfxfont, gfxs, GFX_TOP, GI, last_id, putch