Usermode/AxWin4 - Controls working, starting on text
[tpg/acess2.git] / Usermode / Libraries / libaxwin4.so_src / include_exp / axwin4 / axwin.h
index d4a3004..0a23ad7 100644 (file)
@@ -37,10 +37,38 @@ extern void AxWin4_ResizeWindow(tAxWin4_Window *Window, unsigned int W, unsigned
 extern void    AxWin4_DamageRect(tAxWin4_Window *Window, unsigned int X, unsigned int Y, unsigned int W, unsigned int H);
 extern void*   AxWin4_GetWindowBuffer(tAxWin4_Window *Window);
 
+/**
+ * \brief Set the render clipping region. Any attempts to render outside this area will silently fail
+ * \param Window       Target window
+ *
+ * \note Allows clipping other render functions to avoid excessive redraws
+ * \note Cleared when \a AxWin4_DamageRect is called, or when called with a zero width or height
+ */
+extern void    AxWin4_SetRenderClip(tAxWin4_Window *Window, int X, int Y, unsigned int W, unsigned int H);
+
+/**
+ * \brief Draw a user-supplied bitmap to the window
+ * \param Data Bitmap data in the same format as the window's back buffer
+ * \note VERY SLOW
+ */
 extern void    AxWin4_DrawBitmap(tAxWin4_Window *Window, int X, int Y, unsigned int W, unsigned int H, void *Data);
+/**
+ * \brief Draw a "control" to the window
+ * \param Window       Target window
+ * \param X    Destination X
+ * \param Y    Destination Y
+ * \param W    Control width
+ * \param H    Control height
+ * \param ControlID    Specifies which control to use. Can be a global or application-registered (See eAxWin4_GlobalControls)
+ * \param Frame        Control frame number. Used to specify a variant of the control (e.g. hovered/pressed)
+ *
+ * Controls are server-side bitmaps that can be arbitarily scaled to fit a region.
+ */
+extern void    AxWin4_DrawControl(tAxWin4_Window *Window, int X, int Y, unsigned int W, unsigned int H, uint16_t ControlID, unsigned int Frame);
 
-#include "definitions.h"
+extern void    AxWin4_DrawText(tAxWin4_Window *Window, int X, int Y, unsigned int W, unsigned int H, uint16_t FontID, const char *String);
 
+#include "definitions.h"
 
 #ifdef __cplusplus
 }

UCC git Repository :: git.ucc.asn.au