Amulets & Armor  v1.02
Open Source Game
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Functions
GRAPHIC

Graphic User Interface Component. More...

Functions

T_void GraphicCleanUp (T_void)
 
T_void GraphicClear (T_graphicID graphicID, T_byte8 clearcolor)
 
T_graphicID GraphicCreate (T_word16 lx, T_word16 ly, T_byte8 *bmname)
 
T_void GraphicDelete (T_graphicID graphicID)
 
T_void GraphicDrawAt (T_graphicID graphicID, T_word16 lx, T_word16 ly)
 
T_void GraphicDrawToActualScreen (T_void)
 
T_void GraphicDrawToCurrentScreen (T_void)
 
T_resource GraphicGetResource (T_graphicID graphicID)
 
T_voidGraphicGetStateBlock (T_void)
 
T_void GraphicHide (T_graphicID graphicID)
 
E_Boolean GraphicIsAt (T_graphicID graphicID, T_word16 lx, T_word16 ly)
 
E_Boolean GraphicIsOffSet (T_graphicID graphicID)
 
E_Boolean GraphicIsShadowed (T_graphicID graphicID)
 
E_Boolean GraphicIsVisible (T_graphicID graphicID)
 
T_void GraphicSetOffSet (T_graphicID graphicID, T_word16 x, T_word16 y)
 
T_void GraphicSetPostCallBack (T_graphicID graphicID, T_graphicHandler graphichandler, T_word16 cbinfo)
 
T_void GraphicSetPreCallBack (T_graphicID graphicID, T_graphicHandler graphichandler, T_word16 cbinfo)
 
T_void GraphicSetResource (T_graphicID graphicID, T_resource newresource)
 
T_void GraphicSetShadow (T_graphicID graphicID, T_byte8 newshadow)
 
T_void GraphicSetSize (T_graphicID graphicID, T_word16 sizex, T_word16 sizey)
 
T_void GraphicSetStateBlock (T_void *p_state)
 
T_void GraphicShow (T_graphicID graphicID)
 
T_void GraphicUpdate (T_graphicID graphicID)
 
T_void GraphicUpdateAllGraphics (T_void)
 
T_void GraphicUpdateAllGraphicsBuffered (T_void)
 
T_void GraphicUpdateAllGraphicsForced (T_void)
 

Detailed Description

Graphic User Interface Component.

In the UI system, a Graphic is a single picture or graphic.

See Also
http://www.amuletsandarmor.com/AALicense.txt

Function Documentation

T_void GraphicCleanUp ( T_void  )
T_void GraphicClear ( T_graphicID  graphicID,
T_byte8  clearcolor 
)

Draws a box of the specified color over the graphic location

T_graphicID GraphicCreate ( T_word16  lx,
T_word16  ly,
T_byte8 bmname 
)

Adds a graphic to the current list of graphics for a form

T_void GraphicDelete ( T_graphicID  graphicID)

Releases memory allocated to a graphic Cleanup releases memory allocated to all 'graphics'

T_void GraphicDrawAt ( T_graphicID  graphicID,
T_word16  lx,
T_word16  ly 
)

Draws the graphic at a specific x,y location passed in.

T_void GraphicDrawToActualScreen ( T_void  )
T_void GraphicDrawToCurrentScreen ( T_void  )
T_resource GraphicGetResource ( T_graphicID  graphicID)
T_void* GraphicGetStateBlock ( T_void  )
T_void GraphicHide ( T_graphicID  graphicID)

Sets variables in the Graphic structure

E_Boolean GraphicIsAt ( T_graphicID  graphicID,
T_word16  lx,
T_word16  ly 
)
E_Boolean GraphicIsOffSet ( T_graphicID  graphicID)
E_Boolean GraphicIsShadowed ( T_graphicID  graphicID)
E_Boolean GraphicIsVisible ( T_graphicID  graphicID)

Returns E_booleans about the state of the given graphic

T_void GraphicSetOffSet ( T_graphicID  graphicID,
T_word16  x,
T_word16  y 
)
T_void GraphicSetPostCallBack ( T_graphicID  graphicID,
T_graphicHandler  graphichandler,
T_word16  cbinfo 
)
T_void GraphicSetPreCallBack ( T_graphicID  graphicID,
T_graphicHandler  graphichandler,
T_word16  cbinfo 
)
T_void GraphicSetResource ( T_graphicID  graphicID,
T_resource  newresource 
)
T_void GraphicSetShadow ( T_graphicID  graphicID,
T_byte8  newshadow 
)
T_void GraphicSetSize ( T_graphicID  graphicID,
T_word16  sizex,
T_word16  sizey 
)
T_void GraphicSetStateBlock ( T_void p_state)
T_void GraphicShow ( T_graphicID  graphicID)
T_void GraphicUpdate ( T_graphicID  graphicID)

Draws a graphic on the screen at the stored locx+xoff, locy+yoff also will shadow if shadow is set to anything less than 255, and will not draw graphic if visible or changed are set to FALSE.

T_void GraphicUpdateAllGraphics ( T_void  )

Calls GraphicUpdate for all graphics currently allocated. Note that graphic will not draw if visible or changed are set to FALSE.

T_void GraphicUpdateAllGraphicsBuffered ( T_void  )
T_void GraphicUpdateAllGraphicsForced ( T_void  )