hello,
most of the gui manual pages (gui/*.3) mistakenly
use AG_Widget * as the parent type, when it fact
it should be void *.
also, AG_WidgetPrimitives(3) specifies an AG_DrawCircle2,
but this function doesn't exist. i note however that
AG_GL_DrawCircle2 _does_ exist. additionally,
AG_PixmapFromTexture takes a Uint as an argument, and
not a GLuint (although within the function body it is casted
to a GLuint).
here is the (rather long) patch fixing all the errors i could
find. note that this patch includes my two previous manual
page patches:
Index: gui/AG_Box.3
===================================================================
--- gui/AG_Box.3 (revision 9625)
+++ gui/AG_Box.3 (working copy)
@@ -47,19 +47,19 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Box *"
-.Fn AG_BoxNew "AG_Widget *parent" "enum ag_box_type type" "Uint flags"
+.Fn AG_BoxNew "void *parent" "enum ag_box_type type" "Uint flags"
.Pp
.Ft "AG_Box *"
-.Fn AG_BoxNewHoriz "AG_Widget *parent" "Uint flags"
+.Fn AG_BoxNewHoriz "void *parent" "Uint flags"
.Pp
.Ft "AG_Box *"
-.Fn AG_BoxNewVert "AG_Widget *parent" "Uint flags"
+.Fn AG_BoxNewVert "void *parent" "Uint flags"
.Pp
.Ft "AG_Box *"
-.Fn AG_BoxNewHorizNS "AG_Widget *parent" "Uint flags"
+.Fn AG_BoxNewHorizNS "void *parent" "Uint flags"
.Pp
.Ft "AG_Box *"
-.Fn AG_BoxNewVertNS "AG_Widget *parent" "Uint flags"
+.Fn AG_BoxNewVertNS "void *parent" "Uint flags"
.Pp
.Ft void
.Fn AG_BoxSetLabel "AG_Box *box" "const char *format" "..."
Index: gui/AG_Button.3
===================================================================
--- gui/AG_Button.3 (revision 9625)
+++ gui/AG_Button.3 (working copy)
@@ -49,27 +49,27 @@
.Sh INTERFACE
.nr nS 1
.Ft "AG_Button *"
-.Fn AG_ButtonNew "AG_Widget *parent" "Uint flags" "const char *format" "..."
+.Fn AG_ButtonNew "void *parent" "Uint flags" "const char *format" "..."
.Pp
.Ft "AG_Button *"
-.Fn AG_ButtonNewS "AG_Widget *parent" "Uint flags" "const char *label"
+.Fn AG_ButtonNewS "void *parent" "Uint flags" "const char *label"
.Pp
.Ft "AG_Button *"
-.Fn AG_ButtonNewFn "AG_Widget *parent" "Uint flags" "const char *label" "void
(*fn)(AG_Event *)" "const char *fnArgs" "..."
+.Fn AG_ButtonNewFn "void *parent" "Uint flags" "const char *label" "void
(*fn)(AG_Event *)" "const char *fnArgs" "..."
.Pp
.\" MANLINK(AG_ButtonNewInt)
.\" MANLINK(AG_ButtonNewUint8)
.\" MANLINK(AG_ButtonNewUint16)
.\" MANLINK(AG_ButtonNewUint32)
.Ft "AG_Button *"
-.Fn AG_ButtonNew{Int,Uint8,Uint16,Uint32} "AG_Widget *parent" "Uint flags"
"const char *label" "<Type> *p"
+.Fn AG_ButtonNew{Int,Uint8,Uint16,Uint32} "void *parent" "Uint flags" "const
char *label" "<Type> *p"
.Pp
.\" MANLINK(AG_ButtonNewFlag)
.\" MANLINK(AG_ButtonNewFlag8)
.\" MANLINK(AG_ButtonNewFlag16)
.\" MANLINK(AG_ButtonNewFlag32)
.Ft "AG_Button *"
-.Fn AG_ButtonNew{Flag,Flag8,Flag16,Flag32} "AG_Widget *parent" "Uint flags"
"const char *label" "Uint *p" "<Type> bitmask"
+.Fn AG_ButtonNew{Flag,Flag8,Flag16,Flag32} "void *parent" "Uint flags" "const
char *label" "Uint *p" "<Type> bitmask"
.Pp
.Ft void
.Fn AG_ButtonSetPadding "AG_Button *button" "int lPad" "int rPad" "int tPad"
"int bPad"
Index: gui/AG_Checkbox.3
===================================================================
--- gui/AG_Checkbox.3 (revision 9625)
+++ gui/AG_Checkbox.3 (working copy)
@@ -50,28 +50,28 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Checkbox *"
-.Fn AG_CheckboxNew "AG_Widget *parent" "Uint flags" "const char *format" "..."
+.Fn AG_CheckboxNew "void *parent" "Uint flags" "const char *format" "..."
.Pp
.Ft "AG_Checkbox *"
-.Fn AG_CheckboxNewS "AG_Widget *parent" "Uint flags" "const char *label"
+.Fn AG_CheckboxNewS "void *parent" "Uint flags" "const char *label"
.Pp
.Ft "AG_Checkbox *"
-.Fn AG_CheckboxNewFn "AG_Widget *parent" "Uint flags" "const char *label"
"AG_EventFn fn" "const char *fmt" "..."
+.Fn AG_CheckboxNewFn "void *parent" "Uint flags" "const char *label"
"AG_EventFn fn" "const char *fmt" "..."
.Pp
.Ft "AG_Checkbox *"
-.Fn AG_CheckboxNewInt "AG_Widget *parent" "Uint flags" "const char *label"
"int *pBool"
+.Fn AG_CheckboxNewInt "void *parent" "Uint flags" "const char *label" "int
*pBool"
.Pp
.Ft "AG_Checkbox *"
-.Fn AG_CheckboxNewFlag "AG_Widget *parent" "Uint flags" "const char *label"
"Uint *pFlags" "Uint bitmask"
+.Fn AG_CheckboxNewFlag "void *parent" "Uint flags" "const char *label" "Uint
*pFlags" "Uint bitmask"
.Pp
.Ft "AG_Checkbox *"
-.Fn AG_CheckboxNewFlag32 "AG_Widget *parent" "Uint flags" "const char *label"
"Uint32 *pFlags" "Uint32 bitmask"
+.Fn AG_CheckboxNewFlag32 "void *parent" "Uint flags" "const char *label"
"Uint32 *pFlags" "Uint32 bitmask"
.Pp
.Fn "AG_Checkbox *"
-.Fn AG_CheckboxSetFromFlags "AG_Widget *parent" "Uint flags" "Uint *pFlags"
"const AG_FlagDescr *flagsDescr"
+.Fn AG_CheckboxSetFromFlags "void *parent" "Uint flags" "Uint *pFlags" "const
AG_FlagDescr *flagsDescr"
.Pp
.Fn "AG_Checkbox *"
-.Fn AG_CheckboxSetFromFlags32 "AG_Widget *parent" "Uint flags" "Uint32
*pFlags" "const AG_FlagDescr *flagsDescr"
+.Fn AG_CheckboxSetFromFlags32 "void *parent" "Uint flags" "Uint32 *pFlags"
"const AG_FlagDescr *flagsDescr"
.Pp
.Ft "void"
.Fn AG_CheckboxToggle "AG_Checkbox *checkbox"
Index: gui/AG_Combo.3
===================================================================
--- gui/AG_Combo.3 (revision 9625)
+++ gui/AG_Combo.3 (working copy)
@@ -55,10 +55,10 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Combo *"
-.Fn AG_ComboNew "AG_Widget *parent" "Uint flags" "const char *format" "..."
+.Fn AG_ComboNew "void *parent" "Uint flags" "const char *format" "..."
.Pp
.Ft "AG_Combo *"
-.Fn AG_ComboNewS "AG_Widget *parent" "Uint flags" "const char *label"
+.Fn AG_ComboNewS "void *parent" "Uint flags" "const char *label"
.Pp
.Ft "void"
.Fn AG_ComboSizeHint "AG_Combo *combo" "const char *text" "int nitems"
Index: gui/AG_Console.3
===================================================================
--- gui/AG_Console.3 (revision 9625)
+++ gui/AG_Console.3 (working copy)
@@ -52,7 +52,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Console *"
-.Fn AG_ConsoleNew "AG_Widget *parent" "Uint flags"
+.Fn AG_ConsoleNew "void *parent" "Uint flags"
.Pp
.Ft "void"
.Fn AG_ConsoleSetPadding "AG_Console *cons" "int padding"
Index: gui/AG_Cursor.3
===================================================================
--- gui/AG_Cursor.3 (revision 9625)
+++ gui/AG_Cursor.3 (working copy)
@@ -53,13 +53,13 @@
.Pp
.nr nS 1
.Ft "AG_CursorArea *"
-.Fn AG_MapCursor "AG_Widget *wid" "AG_Rect r" "AG_Cursor *c"
+.Fn AG_MapCursor "void *wid" "AG_Rect r" "AG_Cursor *c"
.Pp
.Ft "AG_CursorArea *"
-.Fn AG_MapStockCursor "AG_Widget *wid" "AG_Rect r" "int cursorName"
+.Fn AG_MapStockCursor "void *wid" "AG_Rect r" "int cursorName"
.Pp
.Ft "void"
-.Fn AG_UnmapCursor "AG_Widget *wid" "AG_CursorArea *cursorArea"
+.Fn AG_UnmapCursor "void *wid" "AG_CursorArea *cursorArea"
.Pp
.nr nS 0
The
Index: gui/AG_DirDlg.3
===================================================================
--- gui/AG_DirDlg.3 (revision 9625)
+++ gui/AG_DirDlg.3 (working copy)
@@ -50,10 +50,10 @@
.Sh INITIALIZATION
.nr nS 1
.Ft AG_DirDlg *
-.Fn AG_DirDlgNew "AG_Widget *parent" "Uint flags"
+.Fn AG_DirDlgNew "void *parent" "Uint flags"
.Pp
.Ft AG_DirDlg *
-.Fn AG_DirDlgNewMRU "AG_Widget *parent" "const char *mruKey" "Uint flags"
+.Fn AG_DirDlgNewMRU "void *parent" "const char *mruKey" "Uint flags"
.Pp
.Ft int
.Fn AG_DirDlgSetDirectory "AG_DirDlg *dd" "const char *format" "..."
Index: gui/AG_Dummy.3
===================================================================
--- gui/AG_Dummy.3 (revision 9625)
+++ gui/AG_Dummy.3 (working copy)
@@ -47,7 +47,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Template *"
-.Fn AG_TemplateNew "AG_Widget *parent" "Uint flags"
+.Fn AG_TemplateNew "void *parent" "Uint flags"
.Pp
.nr nS 0
The
Index: gui/AG_Editable.3
===================================================================
--- gui/AG_Editable.3 (revision 9625)
+++ gui/AG_Editable.3 (working copy)
@@ -76,7 +76,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Editable *"
-.Fn AG_EditableNew "AG_Widget *parent" "Uint flags"
+.Fn AG_EditableNew "void *parent" "Uint flags"
.Pp
.Ft "void"
.Fn AG_EditableBindUTF8 "AG_Editable *ed" "char *buffer" "size_t bufferSize"
Index: gui/AG_FileDlg.3
===================================================================
--- gui/AG_FileDlg.3 (revision 9625)
+++ gui/AG_FileDlg.3 (working copy)
@@ -63,10 +63,10 @@
.Sh INITIALIZATION
.nr nS 1
.Ft AG_FileDlg *
-.Fn AG_FileDlgNew "AG_Widget *parent" "Uint flags"
+.Fn AG_FileDlgNew "void *parent" "Uint flags"
.Pp
.Ft AG_FileDlg *
-.Fn AG_FileDlgNewMRU "AG_Widget *parent" "const char *mruKey" "Uint flags"
+.Fn AG_FileDlgNewMRU "void *parent" "const char *mruKey" "Uint flags"
.Pp
.Ft int
.Fn AG_FileDlgSetDirectory "AG_FileDlg *file_dlg" "const char *format" "..."
@@ -267,7 +267,7 @@
.Pp
.nr nS 1
.Ft "void"
-.Fn AG_FileDlgSetOptionContainer "AG_FileDlg *file_dlg" "AG_Widget *container"
+.Fn AG_FileDlgSetOptionContainer "AG_FileDlg *file_dlg" "void *container"
.Pp
.Ft "AG_FileOption *"
.Fn AG_FileOptionNewBool "AG_FileType *type" "const char *descr" "const char
*key" "int default"
Index: gui/AG_Fixed.3
===================================================================
--- gui/AG_Fixed.3 (revision 9625)
+++ gui/AG_Fixed.3 (working copy)
@@ -49,7 +49,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Fixed *"
-.Fn AG_FixedNew "AG_Widget *parent" "Uint flags"
+.Fn AG_FixedNew "void *parent" "Uint flags"
.Pp
.nr nS 0
The
Index: gui/AG_FixedPlotter.3
===================================================================
--- gui/AG_FixedPlotter.3 (revision 9625)
+++ gui/AG_FixedPlotter.3 (working copy)
@@ -52,7 +52,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_FixedPlotter *"
-.Fn AG_FixedPlotterNew "AG_Widget *parent, enum ag_fixed_plotter_type type"
"Uint flags"
+.Fn AG_FixedPlotterNew "void *parent, enum ag_fixed_plotter_type type" "Uint
flags"
.Pp
.nr nS 0
The
Index: gui/AG_FontSelector.3
===================================================================
--- gui/AG_FontSelector.3 (revision 9625)
+++ gui/AG_FontSelector.3 (working copy)
@@ -52,7 +52,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_FontSelector *"
-.Fn AG_FontSelectorNew "AG_Widget *parent" "Uint flags"
+.Fn AG_FontSelectorNew "void *parent" "Uint flags"
.Pp
.nr nS 0
The
Index: gui/AG_GL.3
===================================================================
--- gui/AG_GL.3 (revision 9625)
+++ gui/AG_GL.3 (working copy)
@@ -97,40 +97,40 @@
.Sh TEXTURE/SURFACE MANAGEMENT
.nr nS 1
.Ft "void"
-.Fn AG_GL_UploadTexture "AG_Driver *drv" "Uint *texName" "AG_Surface *suSrc"
"AG_TexCoord *tc"
+.Fn AG_GL_UploadTexture "void *drv" "Uint *texName" "AG_Surface *suSrc"
"AG_TexCoord *tc"
.Pp
.Ft "void"
-.Fn AG_GL_UpdateTexture "AG_Driver *drv" "Uint texName" "AG_Surface *suSrc"
"AG_TexCoord *tc"
+.Fn AG_GL_UpdateTexture "void *drv" "Uint texName" "AG_Surface *suSrc"
"AG_TexCoord *tc"
.Pp
.Ft "void"
-.Fn AG_GL_DeleteTexture "AG_Driver *drv" "Uint texName"
+.Fn AG_GL_DeleteTexture "void *drv" "Uint texName"
.Pp
.Ft "void"
-.Fn AG_GL_DeleteList "AG_Driver *drv" "Uint listName"
+.Fn AG_GL_DeleteList "void *drv" "Uint listName"
.Pp
.Ft "void"
-.Fn AG_GL_BlitSurface "AG_Driver *drv" "AG_Widget *wid" "AG_Surface *s" "int
x" "int y"
+.Fn AG_GL_BlitSurface "void *drv" "AG_Widget *wid" "AG_Surface *s" "int x"
"int y"
.Pp
.Ft "void"
-.Fn AG_GL_BlitSurfaceFrom "AG_Driver *drv" "AG_Widget *widSrc" "int surfName"
"AG_Rect *r" "int x" "int y"
+.Fn AG_GL_BlitSurfaceFrom "void *drv" "AG_Widget *widSrc" "int surfName"
"AG_Rect *r" "int x" "int y"
.Pp
.Ft "void"
-.Fn AG_GL_BlitSurfaceGL "AG_Driver *drv" "AG_Widget *wid" "AG_Surface *s"
"float w" "float h"
+.Fn AG_GL_BlitSurfaceGL "void *drv" "AG_Widget *wid" "AG_Surface *s" "float w"
"float h"
.Pp
.Ft "void"
-.Fn AG_GL_BlitSurfaceFromGL "AG_Driver *drv" "AG_Widget *wid" "int surfName"
"float w" "float h"
+.Fn AG_GL_BlitSurfaceFromGL "void *drv" "AG_Widget *wid" "int surfName" "float
w" "float h"
.Pp
.Ft "void"
-.Fn AG_GL_BlitSurfaceFlippedGL "AG_Driver *drv" "AG_Widget *wid" "int
surfName" "float w" "float h"
+.Fn AG_GL_BlitSurfaceFlippedGL "void *drv" "AG_Widget *wid" "int surfName"
"float w" "float h"
.Pp
.Ft "void"
-.Fn AG_GL_BackupSurfaces "AG_Driver *drv" "AG_Widget *wid"
+.Fn AG_GL_BackupSurfaces "void *drv" "AG_Widget *wid"
.Pp
.Ft "void"
-.Fn AG_GL_RestoreSurfaces "AG_Driver *drv" "AG_Widget *wid"
+.Fn AG_GL_RestoreSurfaces "void *drv" "AG_Widget *wid"
.Pp
.Ft "void"
-.Fn AG_GL_RenderToSurface "AG_Driver *drv" "AG_Widget *wid" "AG_Surface **sDst"
+.Fn AG_GL_RenderToSurface "void *drv" "AG_Widget *wid" "AG_Surface **sDst"
.Pp
.nr nS 0
The
@@ -181,71 +181,74 @@
.Sh RENDERING PRIMITIVES
.nr nS 1
.Ft void
-.Fn AG_GL_FillRect "AG_Driver *drv" "AG_Rect r" "AG_Color c"
+.Fn AG_GL_FillRect "void *drv" "AG_Rect r" "AG_Color c"
.Pp
.Ft void
-.Fn AG_GL_PutPixel "AG_Driver *drv" "int x" "int y" "AG_Color c"
+.Fn AG_GL_PutPixel "void *drv" "int x" "int y" "AG_Color c"
.Pp
.Ft void
-.Fn AG_GL_PutPixel32 "AG_Driver *drv" "int x" "int y" "Uint32 c"
+.Fn AG_GL_PutPixel32 "void *drv" "int x" "int y" "Uint32 c"
.Pp
.Ft void
-.Fn AG_GL_PutPixelRGB "AG_Driver *drv" "int x" "int y" "Uint8 r" "Uint8 g"
"Uint8 b"
+.Fn AG_GL_PutPixelRGB "void *drv" "int x" "int y" "Uint8 r" "Uint8 g" "Uint8 b"
.Pp
.Ft void
-.Fn AG_GL_BlendPixel "AG_Driver *drv" "int x" "int y" "AG_Color C" "AG_BlendFn
fnSrc" "AG_BlendFn fnDst"
+.Fn AG_GL_BlendPixel "void *drv" "int x" "int y" "AG_Color C" "AG_BlendFn
fnSrc" "AG_BlendFn fnDst"
.Pp
.Ft void
-.Fn AG_GL_DrawLine "AG_Driver *drv" "int x1" "int y1" "int x2" "int y2"
"AG_Color C"
+.Fn AG_GL_DrawLine "void *drv" "int x1" "int y1" "int x2" "int y2" "AG_Color C"
.Pp
.Ft void
-.Fn AG_GL_DrawLineH "AG_Driver *drv" "int x1" "int x2" "int y" "AG_Color c"
+.Fn AG_GL_DrawLineH "void *drv" "int x1" "int x2" "int y" "AG_Color c"
.Pp
.Ft void
-.Fn AG_GL_DrawLineV "AG_Driver *drv" "int x" "int y1" "int y2" "AG_Color c"
+.Fn AG_GL_DrawLineV "void *drv" "int x" "int y1" "int y2" "AG_Color c"
.Pp
.Ft void
-.Fn AG_GL_DrawLineBlended "AG_Driver *drv" "int x1" "int y1" "int x2" "int y2"
"AG_Color c" "AG_BlendFn fnSrc" "AG_BlendFn fnDst"
+.Fn AG_GL_DrawLineBlended "void *drv" "int x1" "int y1" "int x2" "int y2"
"AG_Color c" "AG_BlendFn fnSrc" "AG_BlendFn fnDst"
.Pp
.Ft void
-.Fn AG_GL_DrawArrowUp "AG_Driver *drv" "int x" "int y" "int h" "AG_Color C[2]"
+.Fn AG_GL_DrawArrowUp "void *drv" "int x" "int y" "int h" "AG_Color C[2]"
.Pp
.Ft void
-.Fn AG_GL_DrawArrowDown "AG_Driver *drv" "int x" "int y" "int h" "AG_Color
C[2]"
+.Fn AG_GL_DrawArrowDown "void *drv" "int x" "int y" "int h" "AG_Color C[2]"
.Pp
.Ft void
-.Fn AG_GL_DrawArrowLeft "AG_Driver *drv" "int x" "int y" "int h" "AG_Color
C[2]"
+.Fn AG_GL_DrawArrowLeft "void *drv" "int x" "int y" "int h" "AG_Color C[2]"
.Pp
.Ft void
-.Fn AG_GL_DrawArrowRight "AG_Driver *drv" "int x" "int y" "int h" "AG_Color
C[2]"
+.Fn AG_GL_DrawArrowRight "void *drv" "int x" "int y" "int h" "AG_Color C[2]"
.Pp
.Ft void
-.Fn AG_GL_DrawRectDithered "AG_Driver *drv" "AG_Rect r" "AG_Color c"
+.Fn AG_GL_DrawRectDithered "void *drv" "AG_Rect r" "AG_Color c"
.Pp
.Ft void
-.Fn AG_GL_DrawBoxRounded "AG_Driver *drv" "AG_Rect r" "int z" "int radius"
"AG_Color C[3]"
+.Fn AG_GL_DrawBoxRounded "void *drv" "AG_Rect r" "int z" "int radius"
"AG_Color C[3]"
.Pp
.Ft void
-.Fn AG_GL_DrawBoxRoundedTop "AG_Driver *drv" "AG_Rect r" "int z" "int radius"
"AG_Color C[3]"
+.Fn AG_GL_DrawBoxRoundedTop "void *drv" "AG_Rect r" "int z" "int radius"
"AG_Color C[3]"
.Pp
.Ft void
-.Fn AG_GL_DrawCircle "AG_Driver *drv" "int x" "int y" "int r" "AG_Color C"
+.Fn AG_GL_DrawCircle "void *drv" "int x" "int y" "int r" "AG_Color C"
.Pp
.Ft void
-.Fn AG_GL_DrawCircle2 "AG_Driver *drv" "int x" "int y" "int r" "AG_Color C"
+.Fn AG_GL_DrawCircle2 "void *drv" "int x" "int y" "int r" "AG_Color C"
.Pp
.Ft void
-.Fn AG_GL_DrawRectFilled "AG_Driver *drv" "AG_Rect r" "AG_Color c"
+.Fn AG_GL_DrawCircleFilled "void *drv" "int x" "int y" "int r" "AG_Color C"
.Pp
.Ft void
-.Fn AG_GL_DrawRectBlended "AG_Driver *drv" "AG_Rect r" "AG_Color c"
"AG_BlendFn fnSrc" "AG_BlendFn fnDst"
+.Fn AG_GL_DrawRectFilled "void *drv" "AG_Rect r" "AG_Color c"
.Pp
.Ft void
-.Fn AG_GL_UpdateGlyph "AG_Driver *drv" "AG_Glyph *glyph"
+.Fn AG_GL_DrawRectBlended "void *drv" "AG_Rect r" "AG_Color c" "AG_BlendFn
fnSrc" "AG_BlendFn fnDst"
.Pp
.Ft void
-.Fn AG_GL_DrawGlyph "AG_Driver *drv" "const AG_Glyph *glyph" "int x" "int y"
+.Fn AG_GL_UpdateGlyph "void *drv" "AG_Glyph *glyph"
.Pp
+.Ft void
+.Fn AG_GL_DrawGlyph "void *drv" "const AG_Glyph *glyph" "int x" "int y"
+.Pp
.nr nS 0
These functions are generic OpenGL backends to the corresponding driver
surface/texture operations (e.g.,
Index: gui/AG_GLView.3
===================================================================
--- gui/AG_GLView.3 (revision 9625)
+++ gui/AG_GLView.3 (working copy)
@@ -107,7 +107,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_GLView *"
-.Fn AG_GLViewNew "AG_Widget *parent" "Uint flags"
+.Fn AG_GLViewNew "void *parent" "Uint flags"
.Pp
.Ft "void"
.Fn AG_GLViewSetBgColor "AG_GLView *glv" "AG_Color c"
@@ -116,31 +116,31 @@
.Fn AG_GLViewSizeHint "AG_GLView *glv" "int w" "int h"
.Pp
.Ft void
-.Fn AG_GLViewDrawFn "AG_GLView *glv" "void (*fn)(AG_Event *)" "const char
*args" "..."
+.Fn AG_GLViewDrawFn "void *glv" "void (*fn)(AG_Event *)" "const char *args"
"..."
.Pp
.Ft void
-.Fn AG_GLViewOverlayFn "AG_GLView *glv" "void (*fn)(AG_Event *)" "const char
*args" "..."
+.Fn AG_GLViewOverlayFn "void *glv" "void (*fn)(AG_Event *)" "const char *args"
"..."
.Pp
.Ft void
-.Fn AG_GLViewUnderlayFn "AG_GLView *glv" "void (*fn)(AG_Event *)" "const char
*args" "..."
+.Fn AG_GLViewUnderlayFn "void *glv" "void (*fn)(AG_Event *)" "const char
*args" "..."
.Pp
.Ft void
-.Fn AG_GLViewScaleFn "AG_GLView *glv" "void (*fn)(AG_Event *)" "const char
*args" "..."
+.Fn AG_GLViewScaleFn "void *glv" "void (*fn)(AG_Event *)" "const char *args"
"..."
.Pp
.Ft void
-.Fn AG_GLViewKeydownFn "AG_GLView *glv" "void (*fn)(AG_Event *)" "const char
*args" "..."
+.Fn AG_GLViewKeydownFn "void *glv" "void (*fn)(AG_Event *)" "const char *args"
"..."
.Pp
.Ft void
-.Fn AG_GLViewKeyupFn "AG_GLView *glv" "void (*fn)(AG_Event *)" "const char
*args" "..."
+.Fn AG_GLViewKeyupFn "void *glv" "void (*fn)(AG_Event *)" "const char *args"
"..."
.Pp
.Ft void
-.Fn AG_GLViewButtondownFn "AG_GLView *glv" "void (*fn)(AG_Event *)" "const
char *args" "..."
+.Fn AG_GLViewButtondownFn "void *glv" "void (*fn)(AG_Event *)" "const char
*args" "..."
.Pp
.Ft void
-.Fn AG_GLViewButtonupFn "AG_GLView *glv" "void (*fn)(AG_Event *)" "const char
*args" "..."
+.Fn AG_GLViewButtonupFn "void *glv" "void (*fn)(AG_Event *)" "const char
*args" "..."
.Pp
.Ft void
-.Fn AG_GLViewMotionFn "AG_GLView *glv" "void (*fn)(AG_Event *)" "const char
*args" "..."
+.Fn AG_GLViewMotionFn "void *glv" "void (*fn)(AG_Event *)" "const char *args"
"..."
.Pp
.nr nS 0
The
Index: gui/AG_Graph.3
===================================================================
--- gui/AG_Graph.3 (revision 9625)
+++ gui/AG_Graph.3 (working copy)
@@ -61,7 +61,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Graph *"
-.Fn AG_GraphNew "AG_Widget *parent" "Uint flags"
+.Fn AG_GraphNew "void *parent" "Uint flags"
.Pp
.Ft "void"
.Fn AG_GraphSizeHint "AG_Graph *graph" "Uint width" "Uint height"
Index: gui/AG_HBox.3
===================================================================
--- gui/AG_HBox.3 (revision 9625)
+++ gui/AG_HBox.3 (working copy)
@@ -50,7 +50,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_HBox *"
-.Fn AG_HBoxNew "AG_Widget *parent" "int flags"
+.Fn AG_HBoxNew "void *parent" "int flags"
.Pp
.Ft void
.Fn AG_HBoxSetHomogenous "AG_HBox *box" "int homogenous"
Index: gui/AG_HSVPal.3
===================================================================
--- gui/AG_HSVPal.3 (revision 9625)
+++ gui/AG_HSVPal.3 (working copy)
@@ -65,7 +65,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_HSVPal *"
-.Fn AG_HSVPalNew "AG_Widget *parent" "Uint flags"
+.Fn AG_HSVPalNew "void *parent" "Uint flags"
.Pp
.nr nS 0
The
Index: gui/AG_Keyboard.3
===================================================================
--- gui/AG_Keyboard.3 (revision 9625)
+++ gui/AG_Keyboard.3 (working copy)
@@ -59,19 +59,19 @@
.Fn AG_LookupKeySym "const char *name"
.Pp
.Ft "int *"
-.Fn AG_GetKeyState "AG_Widget *widget"
+.Fn AG_GetKeyState "void *obj"
.Pp
.Ft "int"
-.Fn AG_GetKeyCount "AG_Widget *widget"
+.Fn AG_GetKeyCount "void *obj"
.Pp
.Ft "void"
-.Fn AG_SetKeyState "AG_Widget *widget" "int *keyState"
+.Fn AG_SetKeyState "void *obj" "int *keyState"
.Pp
.Ft "Uint"
-.Fn AG_GetModState "AG_Widget *widget"
+.Fn AG_GetModState "void *obj"
.Pp
.Ft "void"
-.Fn AG_SetModState "AG_Widget *widget" "Uint modState"
+.Fn AG_SetModState "void *obj" "Uint modState"
.Pp
.Ft "int"
.Fn AG_CompareKeyMods "Uint modState" "const char *flags"
@@ -123,7 +123,7 @@
.Sh INTERNAL DRIVER INTERFACE
.nr nS 1
.Ft "AG_Keyboard *"
-.Fn AG_KeyboardNew "AG_Driver *drv" "const char *descr"
+.Fn AG_KeyboardNew "void *drv" "const char *descr"
.Pp
.Ft "int"
.Fn AG_KeyboardUpdate "AG_Keyboard *kbd" "AG_KeyboardAction action" "AG_KeySym
sym" "Uint32 unicode"
Index: gui/AG_Label.3
===================================================================
--- gui/AG_Label.3 (revision 9625)
+++ gui/AG_Label.3 (working copy)
@@ -51,16 +51,16 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Label *"
-.Fn AG_LabelNew "AG_Widget *parent" "Uint flags" "const char *fmt" "..."
+.Fn AG_LabelNew "void *parent" "Uint flags" "const char *fmt" "..."
.Pp
.Ft "AG_Label *"
-.Fn AG_LabelNewS "AG_Widget *parent" "Uint flags" "const char *text"
+.Fn AG_LabelNewS "void *parent" "Uint flags" "const char *text"
.Pp
.Ft "AG_Label *"
-.Fn AG_LabelNewPolled "AG_Widget *parent" "Uint flags" "const char *fmt" "..."
+.Fn AG_LabelNewPolled "void *parent" "Uint flags" "const char *fmt" "..."
.Pp
.Ft "AG_Label *"
-.Fn AG_LabelNewPolledMT "AG_Widget *parent" "Uint flags" "AG_Mutex *mutex"
"const char *fmt" "..."
+.Fn AG_LabelNewPolledMT "void *parent" "Uint flags" "AG_Mutex *mutex" "const
char *fmt" "..."
.Pp
.Ft void
.Fn AG_LabelText "AG_Label *label" "const char *format" "..."
Index: gui/AG_MPane.3
===================================================================
--- gui/AG_MPane.3 (revision 9625)
+++ gui/AG_MPane.3 (working copy)
@@ -55,7 +55,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_MPane *"
-.Fn AG_MPaneNew "AG_Widget *parent" "enum ag_mpane_layout layout" "Uint flags"
+.Fn AG_MPaneNew "void *parent" "enum ag_mpane_layout layout" "Uint flags"
.Pp
.Ft "void"
.Fn AG_MPaneSetLayout "AG_MPane *mpane" "enum ag_mpane_layout layout"
Index: gui/AG_Menu.3
===================================================================
--- gui/AG_Menu.3 (revision 9625)
+++ gui/AG_Menu.3 (working copy)
@@ -88,16 +88,16 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Menu *"
-.Fn AG_MenuNew "AG_Widget *parent" "Uint flags"
+.Fn AG_MenuNew "void *parent" "Uint flags"
.Pp
.Ft "AG_Menu *"
.Fn AG_MenuNewGlobal "Uint flags"
.Pp
.Ft void
-.Fn AG_MenuExpand "AG_Widget *parentWidget" "AG_MenuItem *item" "int x" "int y"
+.Fn AG_MenuExpand "void *parent" "AG_MenuItem *item" "int x" "int y"
.Pp
.Ft void
-.Fn AG_MenuCollapse "AG_Widget *parentWidget" "AG_MenuItem *item"
+.Fn AG_MenuCollapse "void *parent" "AG_MenuItem *item"
.Pp
.Ft void
.Fn AG_MenuCollapseAll "AG_Menu *m"
@@ -147,7 +147,7 @@
widget displaying the menu items under
.Fa item .
The
-.Fa parentWidget
+.Fa parent
argument should point to some parent widget responsible for triggering
the popup menu.
If there is none, NULL may be passed.
@@ -155,9 +155,9 @@
.Fa x ,
.Fa y
relative to
-.Fa parentWidget
+.Fa parent
(if
-.Fa parentWidget
+.Fa parent
is NULL, the coordinates are relative to the upper left corner of
the view area).
.Pp
@@ -400,7 +400,7 @@
.Sh POPUP MENUS
.nr nS 1
.Ft "AG_PopupMenu *"
-.Fn AG_PopupNew "AG_Widget *widget"
+.Fn AG_PopupNew "void *parent"
.Pp
.Ft void
.Fn AG_PopupShow "AG_PopupMenu *pm"
@@ -412,7 +412,7 @@
.Fn AG_PopupHide "AG_PopupMenu *pm"
.Pp
.Ft void
-.Fn AG_PopupDestroy "AG_Widget *widget" "AG_PopupMenu *pm"
+.Fn AG_PopupDestroy "widget *parent" "AG_PopupMenu *pm"
.Pp
.nr nS 0
The
Index: gui/AG_Notebook.3
===================================================================
--- gui/AG_Notebook.3 (revision 9625)
+++ gui/AG_Notebook.3 (working copy)
@@ -51,7 +51,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Notebook *"
-.Fn AG_NotebookNew "AG_Widget *parent" "Uint flags"
+.Fn AG_NotebookNew "widget *parent" "Uint flags"
.Pp
.Ft "void"
.Fn AG_NotebookSetPadding "AG_Notebook *nb" "int padding"
Index: gui/AG_Numerical.3
===================================================================
--- gui/AG_Numerical.3 (revision 9625)
+++ gui/AG_Numerical.3 (working copy)
@@ -75,10 +75,10 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Numerical *"
-.Fn AG_NumericalNew "AG_Widget *parent, Uint flags, const char *unit" "const
char *format" "..."
+.Fn AG_NumericalNew "widget *parent, Uint flags, const char *unit" "const char
*format" "..."
.Pp
.Ft "AG_Numerical *"
-.Fn AG_NumericalNewS "AG_Widget *parent, Uint flags, const char *unit" "const
char *label"
+.Fn AG_NumericalNewS "widget *parent, Uint flags, const char *unit" "const
char *label"
.Pp
.\" MANLINK(AG_NumericalNewFlt)
.\" MANLINK(AG_NumericalNewDbl)
@@ -86,7 +86,7 @@
.\" MANLINK(AG_NumericalNewInt)
.\" MANLINK(AG_NumericalNewUint)
.Ft "AG_Numerical *"
-.Fn AG_NumericalNew{Flt,Dbl,Ldbl,Int,Uint} "AG_Widget *parent, Uint flags,
const char *unit" "const char *label" "<Type> *value"
+.Fn AG_NumericalNew{Flt,Dbl,Ldbl,Int,Uint} "widget *parent, Uint flags, const
char *unit" "const char *label" "<Type> *value"
.Pp
.\" MANLINK(AG_NumericalNewFltR)
.\" MANLINK(AG_NumericalNewDblR)
@@ -94,7 +94,7 @@
.\" MANLINK(AG_NumericalNewIntR)
.\" MANLINK(AG_NumericalNewUintR)
.Ft "AG_Numerical *"
-.Fn AG_NumericalNew{Flt,Dbl,Ldbl,Int,Uint}R "AG_Widget *parent, Uint flags,
const char *unit" "const char *label" "<Type> *value" "<Type> min" "<Type> max"
+.Fn AG_NumericalNew{Flt,Dbl,Ldbl,Int,Uint}R "widget *parent, Uint flags, const
char *unit" "const char *label" "<Type> *value" "<Type> min" "<Type> max"
.Pp
.Ft "void"
.Fn AG_NumericalSizeHint "AG_Numerical *num" "const char *sizeHint"
Index: gui/AG_Pane.3
===================================================================
--- gui/AG_Pane.3 (revision 9625)
+++ gui/AG_Pane.3 (working copy)
@@ -49,11 +49,14 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Pane *"
-.Fn AG_PaneNewHoriz "AG_Widget *parent" "Uint flags"
+.Fn AG_PaneNew "AG_Widget *parent" "enum ag_pane_type type" "Uint flags"
.Pp
.Ft "AG_Pane *"
-.Fn AG_PaneNewVert "AG_Widget *parent" "Uint flags"
+.Fn AG_PaneNewHoriz "widget *parent" "Uint flags"
.Pp
+.Ft "AG_Pane *"
+.Fn AG_PaneNewVert "widget *parent" "Uint flags"
+.Pp
.Ft "void"
.Fn AG_PaneAttachBox "AG_Pane *pane" "int which" "AG_Box *box"
.Pp
@@ -77,13 +80,16 @@
.Pp
.nr nS 0
The
-.Fn AG_PaneNewHoriz
-and
-.Fn AG_PaneNewVert
-functions allocate, initialize, and attach a new
+.Fn AG_PaneNew
+function allocates, initializes, and attaches a new
.Nm
container, dividing space in the specified orientation.
-.Pp
+The
+.Fa type
+argument defines the packing as
+.Dv AG_PANE_HORIZ
+or
+.Dv AG_PANE_VERT .
Acceptable
.Fa flags
include:
@@ -115,6 +121,15 @@
.Xr AG_BoxSetDepth 3
on the partitions.
.Pp
+The
+.Fn AG_PaneNewHoriz
+and
+.Fn AG_PaneNewVert
+variants are equivalent to setting
+.Dv AG_PANE_HORIZ
+and
+.Dv AG_PANE_VERT .
+.Pp
By default, the two
.Xr AG_Box 3
sub-containers of
Index: gui/AG_Pixmap.3
===================================================================
--- gui/AG_Pixmap.3 (revision 9625)
+++ gui/AG_Pixmap.3 (working copy)
@@ -60,22 +60,22 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Pixmap *"
-.Fn AG_PixmapNew "AG_Widget *parent" "Uint flags" "Uint width" "Uint height"
+.Fn AG_PixmapNew "widget *parent" "Uint flags" "Uint width" "Uint height"
.Pp
.Ft "AG_Pixmap *"
-.Fn AG_PixmapFromSurface "AG_Widget *parent" "Uint flags" "AG_Surface *src"
+.Fn AG_PixmapFromSurface "widget *parent" "Uint flags" "AG_Surface *src"
.Pp
.Ft "AG_Pixmap *"
-.Fn AG_PixmapFromSurfaceCopy "AG_Widget *parent" "Uint flags" "AG_Surface *src"
+.Fn AG_PixmapFromSurfaceCopy "widget *parent" "Uint flags" "AG_Surface *src"
.Pp
.Ft "AG_Pixmap *"
-.Fn AG_PixmapFromSurfaceScaled "AG_Widget *parent" "Uint flags" "AG_Surface
*src" "int width" "int height"
+.Fn AG_PixmapFromSurfaceScaled "widget *parent" "Uint flags" "AG_Surface *src"
"int width" "int height"
.Pp
.Ft "AG_Pixmap *"
-.Fn AG_PixmapFromBMP "AG_Widget *parent" "Uint flags" "const char *path"
+.Fn AG_PixmapFromBMP "widget *parent" "Uint flags" "const char *path"
.Pp
.Ft "AG_Pixmap *"
-.Fn AG_PixmapFromTexture "AG_Widget *parent" "Uint flags" "GLuint texture"
"int lod"
+.Fn AG_PixmapFromTexture "widget *parent" "Uint flags" "GLuint texture" "int
lod"
.Pp
.nr nS 0
The
Index: gui/AG_ProgressBar.3
===================================================================
--- gui/AG_ProgressBar.3 (revision 9625)
+++ gui/AG_ProgressBar.3 (working copy)
@@ -48,16 +48,16 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_ProgressBar *"
-.Fn AG_ProgressBarNew "AG_Widget *parent" "enum ag_progress_bar_type type"
"Uint flags"
+.Fn AG_ProgressBarNew "void *parent" "enum ag_progress_bar_type type" "Uint
flags"
.Pp
.Ft "AG_ProgressBar *"
-.Fn AG_ProgressBarNewInt "AG_Widget *parent" "enum ag_progress_bar_type type"
"Uint flags" "int *value" "int *min" "int *max"
+.Fn AG_ProgressBarNewInt "void *parent" "enum ag_progress_bar_type type" "Uint
flags" "int *value" "int *min" "int *max"
.Pp
.Ft "AG_ProgressBar *"
-.Fn AG_ProgressBarNewHoriz "AG_Widget *parent" "Uint flags"
+.Fn AG_ProgressBarNewHoriz "void *parent" "Uint flags"
.Pp
.Ft "AG_ProgressBar *"
-.Fn AG_ProgressBarNewVert "AG_Widget *parent" "Uint flags"
+.Fn AG_ProgressBarNewVert "void *parent" "Uint flags"
.Pp
.Ft void
.Fn AG_ProgressBarSetWidth "AG_ProgressBar *pb" "int width"
Index: gui/AG_Radio.3
===================================================================
--- gui/AG_Radio.3 (revision 9625)
+++ gui/AG_Radio.3 (working copy)
@@ -47,15 +47,15 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Radio *"
-.Fn AG_RadioNew "AG_Widget *parent" "Uint flags" "const char *items[]"
+.Fn AG_RadioNew "void *parent" "Uint flags" "const char *items[]"
.Pp
.Ft "AG_Radio *"
-.Fn AG_RadioNewFn "AG_Widget *parent" "Uint flags" "const char *items[]"
"AG_EventFn fn" "const char *fmt" "..."
+.Fn AG_RadioNewFn "void *parent" "Uint flags" "const char *items[]"
"AG_EventFn fn" "const char *fmt" "..."
.Pp
.\" MANLINK(AG_RadioNewInt)
.\" MANLINK(AG_RadioNewUint)
.Ft "AG_Radio *"
-.Fn AG_RadioNew{Int,Uint} "AG_Widget *parent" "Uint flags" "const char
*items[]" "<Type> *value"
+.Fn AG_RadioNew{Int,Uint} "void *parent" "Uint flags" "const char *items[]"
"<Type> *value"
.Pp
.Ft void
.Fn AG_RadioItemsFromArray "AG_Radio *radio" "const char *items[]"
Index: gui/AG_Scrollbar.3
===================================================================
--- gui/AG_Scrollbar.3 (revision 9625)
+++ gui/AG_Scrollbar.3 (working copy)
@@ -72,7 +72,7 @@
.Sh INTERFACE
.nr nS 1
.Ft "AG_Scrollbar *"
-.Fn AG_ScrollbarNew "AG_Widget *parent" "enum ag_scrollbar_type type" "Uint
flags"
+.Fn AG_ScrollbarNew "void *parent" "enum ag_scrollbar_type type" "Uint flags"
.Pp
.Ft void
.Fn AG_ScrollbarSizeHint "AG_Scrollbar *scrollbar" "int length"
Index: gui/AG_Scrollview.3
===================================================================
--- gui/AG_Scrollview.3 (revision 9625)
+++ gui/AG_Scrollview.3 (working copy)
@@ -51,7 +51,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Scrollview *"
-.Fn AG_ScrollviewNew "AG_Widget *parent" "Uint flags"
+.Fn AG_ScrollviewNew "void *parent" "Uint flags"
.Pp
.Ft "void"
.Fn AG_ScrollviewSizeHint "AG_Scrollview *sv" "Uint width" "Uint height"
Index: gui/AG_Separator.3
===================================================================
--- gui/AG_Separator.3 (revision 9625)
+++ gui/AG_Separator.3 (working copy)
@@ -47,22 +47,22 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Separator *"
-.Fn AG_SeparatorNew "AG_Widget *parent" "enum ag_separator_type type"
+.Fn AG_SeparatorNew "void *parent" "enum ag_separator_type type"
.Pp
.Ft "AG_Separator *"
-.Fn AG_SpacerNew "AG_Widget *parent" "enum ag_separator_type type"
+.Fn AG_SpacerNew "void *parent" "enum ag_separator_type type"
.Pp
.Ft "AG_Separator *"
-.Fn AG_SeparatorNewHoriz "AG_Widget *parent"
+.Fn AG_SeparatorNewHoriz "void *parent"
.Pp
.Ft "AG_Separator *"
-.Fn AG_SeparatorNewVert "AG_Widget *parent"
+.Fn AG_SeparatorNewVert "void *parent"
.Pp
.Ft "AG_Separator *"
-.Fn AG_SpacerNewHoriz "AG_Widget *parent"
+.Fn AG_SpacerNewHoriz "void *parent"
.Pp
.Ft "AG_Separator *"
-.Fn AG_SpacerNewVert "AG_Widget *parent"
+.Fn AG_SpacerNewVert "void *parent"
.Pp
.Ft void
.Fn AG_SeparatorSetPadding "AG_Separator *sep" "Uint pixels"
Index: gui/AG_Slider.3
===================================================================
--- gui/AG_Slider.3 (revision 9625)
+++ gui/AG_Slider.3 (working copy)
@@ -50,7 +50,7 @@
.Sh INTERFACE
.nr nS 1
.Ft "AG_Slider *"
-.Fn AG_SliderNew "AG_Widget *parent" "enum ag_slider_type type" "Uint flags"
+.Fn AG_SliderNew "void *parent" "enum ag_slider_type type" "Uint flags"
.Pp
.Ft void
.Fn AG_SliderSetControlSize "AG_Slider *slider" "int pixels"
Index: gui/AG_Socket.3
===================================================================
--- gui/AG_Socket.3 (revision 9625)
+++ gui/AG_Socket.3 (working copy)
@@ -54,13 +54,13 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Socket *"
-.Fn AG_SocketNew "AG_Widget *parent" "Uint flags"
+.Fn AG_SocketNew "void *parent" "Uint flags"
.Pp
.Ft "AG_Socket *"
-.Fn AG_SocketFromSurface "AG_Widget *parent" "Uint flags" "AG_Surface *s"
+.Fn AG_SocketFromSurface "void *parent" "Uint flags" "AG_Surface *s"
.Pp
.Ft "AG_Socket *"
-.Fn AG_SocketFromBMP "AG_Widget *parent" "Uint flags" "const char *file"
+.Fn AG_SocketFromBMP "void *parent" "Uint flags" "const char *file"
.Pp
.Ft void
.Fn AG_SocketInsertFn "AG_Socket *socket" "int (*fn)(AG_Socket *, AG_Icon *)"
Index: gui/AG_Table.3
===================================================================
--- gui/AG_Table.3 (revision 9625)
+++ gui/AG_Table.3 (working copy)
@@ -59,10 +59,10 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Table *"
-.Fn AG_TableNew "AG_Widget *parent" "Uint flags"
+.Fn AG_TableNew "void *parent" "Uint flags"
.Pp
.Ft "AG_Table *"
-.Fn AG_TableNewPolled "AG_Widget *parent" "Uint flags" "void
(*event_fn)(AG_Event *)" "const char *event_args" "..."
+.Fn AG_TableNewPolled "void *parent" "Uint flags" "void (*event_fn)(AG_Event
*)" "const char *event_args" "..."
.Pp
.Ft "void"
.Fn AG_TableSetPollInterval "AG_Table *tbl" "Uint ms"
Index: gui/AG_Textbox.3
===================================================================
--- gui/AG_Textbox.3 (revision 9625)
+++ gui/AG_Textbox.3 (working copy)
@@ -74,10 +74,10 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Textbox *"
-.Fn AG_TextboxNew "AG_Widget *parent" "Uint flags" "const char *format" "..."
+.Fn AG_TextboxNew "void *parent" "Uint flags" "const char *format" "..."
.Pp
.Ft "AG_Textbox *"
-.Fn AG_TextboxNewS "AG_Widget *parent" "Uint flags" "const char *label"
+.Fn AG_TextboxNewS "void *parent" "Uint flags" "const char *label"
.Pp
.Ft "void"
.Fn AG_TextboxBindUTF8 "AG_Textbox *textbox" "char *buffer" "size_t bufferSize"
Index: gui/AG_Titlebar.3
===================================================================
--- gui/AG_Titlebar.3 (revision 9625)
+++ gui/AG_Titlebar.3 (working copy)
@@ -63,7 +63,7 @@
.Pp
.nr nS 1
.Ft "AG_Titlebar *"
-.Fn AG_TitlebarNew "AG_Widget *parent" "Uint flags"
+.Fn AG_TitlebarNew "void *parent" "Uint flags"
.Pp
.nr nS 0
The
Index: gui/AG_Tlist.3
===================================================================
--- gui/AG_Tlist.3 (revision 9625)
+++ gui/AG_Tlist.3 (working copy)
@@ -56,10 +56,10 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Tlist *"
-.Fn AG_TlistNew "AG_Widget *parent" "Uint flags"
+.Fn AG_TlistNew "void *parent" "Uint flags"
.Pp
.Ft "AG_Tlist *"
-.Fn AG_TlistNewPolled "AG_Widget *parent" "Uint flags" "void
(*eventFn)(AG_Event *)" "const char *eventArgs" "..."
+.Fn AG_TlistNewPolled "void *parent" "Uint flags" "void (*eventFn)(AG_Event
*)" "const char *eventArgs" "..."
.Pp
.Ft void
.Fn AG_TlistSetRefresh "AG_Tlist *tl" "int ms"
Index: gui/AG_Toolbar.3
===================================================================
--- gui/AG_Toolbar.3 (revision 9625)
+++ gui/AG_Toolbar.3 (working copy)
@@ -51,7 +51,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Toolbar *"
-.Fn AG_ToolbarNew "AG_Widget *parent" "enum ag_toolbar_type" "int nRows" "Uint
flags"
+.Fn AG_ToolbarNew "void *parent" "enum ag_toolbar_type" "int nRows" "Uint
flags"
.Pp
.Ft "void"
.Fn AG_ToolbarRow "AG_Toolbar *toolbar" "int row_name"
Index: gui/AG_Treetbl.3
===================================================================
--- gui/AG_Treetbl.3 (revision 9625)
+++ gui/AG_Treetbl.3 (working copy)
@@ -54,7 +54,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_Treetbl *"
-.Fn AG_TreetblNew "AG_Widget *parent" "Uint flags" "AG_TreetblDataFn dataFn"
"AG_TreetblSortFn sortFn"
+.Fn AG_TreetblNew "void *parent" "Uint flags" "AG_TreetblDataFn dataFn"
"AG_TreetblSortFn sortFn"
.Pp
.Ft "void"
.Fn AG_TreetblSizeHint "AG_Treetbl *tbl" "int width" "int nrows"
Index: gui/AG_UCombo.3
===================================================================
--- gui/AG_UCombo.3 (revision 9625)
+++ gui/AG_UCombo.3 (working copy)
@@ -53,10 +53,10 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_UCombo *"
-.Fn AG_UComboNew "AG_Widget *parent" "Uint flags"
+.Fn AG_UComboNew "void *parent" "Uint flags"
.Pp
.Ft "AG_UCombo *"
-.Fn AG_UComboNewPolled "AG_Widget *parent" "Uint flags" "AG_EventFn fn" "const
char *fmt" "..."
+.Fn AG_UComboNewPolled "void *parent" "Uint flags" "AG_EventFn fn" "const char
*fmt" "..."
.Pp
.Ft "void"
.Fn AG_UComboSizeHint "AG_UCombo *com" "const char *text" "int nitems"
Index: gui/AG_VBox.3
===================================================================
--- gui/AG_VBox.3 (revision 9625)
+++ gui/AG_VBox.3 (working copy)
@@ -50,7 +50,7 @@
.Sh INITIALIZATION
.nr nS 1
.Ft "AG_VBox *"
-.Fn AG_VBoxNew "AG_Widget *parent" "Uint flags"
+.Fn AG_VBoxNew "void *parent" "Uint flags"
.Pp
.Ft void
.Fn AG_VBoxSetHomogenous "AG_VBox *box" "int homogenous"
Index: gui/AG_Widget.3
===================================================================
--- gui/AG_Widget.3 (revision 9625)
+++ gui/AG_Widget.3 (working copy)
@@ -82,9 +82,9 @@
.Bd -literal
typedef struct ag_widget_class {
struct ag_object_class _inherit;
- void (*draw)(AG_Widget *w);
- void (*size_request)(AG_Widget *w, AG_SizeReq *req);
- int (*size_allocate)(AG_Widget *w, const AG_SizeAlloc *alloc);
+ void (*draw)(void *obj);
+ void (*size_request)(void *obj, AG_SizeReq *req);
+ int (*size_allocate)(void *obj, const AG_SizeAlloc *alloc);
} AG_WidgetClass;
.Ed
.Pp
@@ -139,31 +139,31 @@
.Sh SIZING
.nr nS 1
.Ft "void"
-.Fn AG_Expand "AG_Widget *widget"
+.Fn AG_Expand "void *obj"
.Pp
.Ft "void"
-.Fn AG_ExpandHoriz "AG_Widget *widget"
+.Fn AG_ExpandHoriz "void *obj"
.Pp
.Ft "void"
-.Fn AG_ExpandVert "AG_Widget *widget"
+.Fn AG_ExpandVert "void *obj"
.Pp
.Ft "void"
-.Fn AG_WidgetSizeReq "AG_Widget *widget" "AG_SizeReq *req"
+.Fn AG_WidgetSizeReq "void *obj" "AG_SizeReq *req"
.Pp
.Ft "void"
-.Fn AG_WidgetSizeAlloc "AG_Widget *widget" "AG_SizeAlloc *alloc"
+.Fn AG_WidgetSizeAlloc "void *obj" "AG_SizeAlloc *alloc"
.Pp
.Ft void
-.Fn AG_WidgetSetPosition "AG_Widget *widget" "int x" "int y"
+.Fn AG_WidgetSetPosition "void *obj" "int x" "int y"
.Pp
.Ft void
-.Fn AG_WidgetSetSize "AG_Widget *widget" "int w" "int h"
+.Fn AG_WidgetSetSize "void *obj" "int w" "int h"
.Pp
.Ft void
-.Fn AG_WidgetSetGeometry "AG_Widget *widget" "AG_Rect rect"
+.Fn AG_WidgetSetGeometry "void *obj" "AG_Rect rect"
.Pp
.Ft void
-.Fn AG_WidgetUpdate "AG_Widget *widget"
+.Fn AG_WidgetUpdate "void *obj"
.Pp
.nr nS 0
The
@@ -268,16 +268,16 @@
.Sh INPUT STATE
.nr nS 1
.Ft "void"
-.Fn AG_WidgetEnable "AG_Widget *widget"
+.Fn AG_WidgetEnable "void *obj"
.Pp
.Ft "void"
-.Fn AG_WidgetDisable "AG_Widget *widget"
+.Fn AG_WidgetDisable "void *obj"
.Pp
.Ft "int"
-.Fn AG_WidgetEnabled "AG_Widget *widget"
+.Fn AG_WidgetEnabled "void *obj"
.Pp
.Ft "int"
-.Fn AG_WidgetDisabled "AG_Widget *widget"
+.Fn AG_WidgetDisabled "void *obj"
.Pp
.nr nS 0
The "enabled" flag of a widget determines whether the user is allowed to modify
@@ -320,22 +320,22 @@
.Pp
.nr nS 1
.Ft "void"
-.Fn AG_WidgetSetFocusable "AG_Widget *widget" "int enable"
+.Fn AG_WidgetSetFocusable "void *obj" "int enable"
.Pp
.Ft "int"
-.Fn AG_WidgetFocus "AG_Widget *widget"
+.Fn AG_WidgetFocus "void *obj"
.Pp
.Ft "void"
-.Fn AG_WidgetUnfocus "AG_Widget *widget"
+.Fn AG_WidgetUnfocus "void *obj"
.Pp
.Ft "int"
-.Fn AG_WidgetIsFocused "AG_Widget *widget"
+.Fn AG_WidgetIsFocused "void *obj"
.Pp
.Ft "int"
-.Fn AG_WidgetIsFocusedInWindow "AG_Widget *widget"
+.Fn AG_WidgetIsFocusedInWindow "void *obj"
.Pp
.Ft "void"
-.Fn AG_WidgetForwardFocus "AG_Widget *widget" "AG_Widget *widgetToFocus"
+.Fn AG_WidgetForwardFocus "void *obj" "void *objFwd"
.Pp
.nr nS 0
.Fn AG_WidgetSetFocusable
@@ -380,10 +380,10 @@
.Sh COORDINATES
.nr nS 1
.Ft int
-.Fn AG_WidgetArea "AG_Widget *widget" "int x" "int y"
+.Fn AG_WidgetArea "void *obj" "int x" "int y"
.Pp
.Ft int
-.Fn AG_WidgetRelativeArea "AG_Widget *widget" "int x" "int y"
+.Fn AG_WidgetRelativeArea "void *obj" "int x" "int y"
.Pp
.nr nS 0
The
@@ -407,31 +407,31 @@
.Pp
.nr nS 1
.Ft void
-.Fn AG_WidgetBlit "AG_Widget *widget" "AG_Surface *src" "int x" "int y"
+.Fn AG_WidgetBlit "void *obj" "AG_Surface *src" "int x" "int y"
.Pp
.Ft int
-.Fn AG_WidgetMapSurface "AG_Widget *widget" "AG_Surface *su"
+.Fn AG_WidgetMapSurface "void *obj" "AG_Surface *su"
.Pp
.Ft int
-.Fn AG_WidgetMapSurfaceNODUP "AG_Widget *widget" "AG_Surface *su"
+.Fn AG_WidgetMapSurfaceNODUP "void *obj" "AG_Surface *su"
.Pp
.Ft void
-.Fn AG_WidgetReplaceSurface "AG_Widget *widget" "int surface_id" "AG_Surface
*newSurface"
+.Fn AG_WidgetReplaceSurface "void *obj" "int surface_id" "AG_Surface
*newSurface"
.Pp
.Ft void
-.Fn AG_WidgetReplaceSurfaceNODUP "AG_Widget *widget" "int surface_id"
"AG_Surface *newSurface"
+.Fn AG_WidgetReplaceSurfaceNODUP "void *obj" "int surface_id" "AG_Surface
*newSurface"
.Pp
.Ft void
-.Fn AG_WidgetUnmapSurface "AG_Widget *widget" "int surface_id"
+.Fn AG_WidgetUnmapSurface "void *obj" "int surface_id"
.Pp
.Ft void
-.Fn AG_WidgetUpdateSurface "AG_Widget *widget" "int surface_id"
+.Fn AG_WidgetUpdateSurface "void *obj" "int surface_id"
.Pp
.Ft void
-.Fn AG_WidgetBlitFrom "AG_Widget *dstWidget" "AG_Widget *srcWidget" "int
surface_id" "AG_Rect *rs" "int x" "int y"
+.Fn AG_WidgetBlitFrom "void *obj" "void *objSrc" "int surface_id" "AG_Rect
*rs" "int x" "int y"
.Pp
.Ft void
-.Fn AG_WidgetBlitSurface "AG_Widget *widget" "int surface_id" "int x" "int y"
+.Fn AG_WidgetBlitSurface "void *obj" "int surface_id" "int x" "int y"
.Pp
.nr nS 0
The
@@ -585,13 +585,13 @@
.Sh CONTROLLING REDRAW
.nr nS 1
.Ft "void"
-.Fn AG_Redraw "AG_Widget *widget"
+.Fn AG_Redraw "void *obj"
.Pp
.Ft "void"
-.Fn AG_RedrawOnChange "AG_Widget *widget" "int refresh_ms" "const char
*binding_name"
+.Fn AG_RedrawOnChange "void *obj" "int refresh_ms" "const char *binding_name"
.Pp
.Ft "void"
-.Fn AG_RedrawOnTick "AG_Widget *widget" "int refresh_ms"
+.Fn AG_RedrawOnTick "void *obj" "int refresh_ms"
.Pp
.nr nS 0
The
@@ -631,13 +631,13 @@
.Sh WIDGET QUERIES
.nr nS 1
.Ft "AG_Window *"
-.Fn AG_ParentWindow "AG_Widget *widget"
+.Fn AG_ParentWindow "void *obj"
.Pp
.Ft "AG_Widget *"
-.Fn AG_WidgetFind "AG_Display *view" "const char *name"
+.Fn AG_WidgetFind "void *obj" "const char *name"
.Pp
.Ft "AG_Widget *"
-.Fn AG_WidgetFindFocused "AG_Window *win"
+.Fn AG_WidgetFindFocused "void *obj"
.Pp
.Ft "AG_Widget *"
.Fn AG_WidgetFindPoint "const char *classMask" "int x" "int y"
@@ -687,31 +687,31 @@
.Sh RENDERING CONTROL
.nr nS 1
.Ft void
-.Fn AG_PushClipRect "AG_Widget *widget" "AG_Rect r"
+.Fn AG_PushClipRect "void *obj" "AG_Rect r"
.Pp
.Ft void
-.Fn AG_PopClipRect "AG_Widget *widget"
+.Fn AG_PopClipRect "void *obj"
.Pp
.Ft "void"
-.Fn AG_WidgetDraw "AG_Widget *widget"
+.Fn AG_WidgetDraw "void *obj"
.Pp
.Ft "void"
-.Fn AG_BeginRendering "AG_Driver *drv"
+.Fn AG_BeginRendering "void *obj"
.Pp
.Ft "void"
-.Fn AG_EndRendering "AG_Driver *drv"
+.Fn AG_EndRendering "void *obj"
.Pp
.Ft "void"
-.Fn AG_WidgetHide "AG_Widget *widget"
+.Fn AG_WidgetHide "void *obj"
.Pp
.Ft "void"
-.Fn AG_WidgetShow "AG_Widget *widget"
+.Fn AG_WidgetShow "void *obj"
.Pp
.Ft "int"
-.Fn AG_WidgetVisible "AG_Widget *widget"
+.Fn AG_WidgetVisible "void *obj"
.Pp
.Ft "AG_Surface *"
-.Fn AG_WidgetSurface "AG_Widget *widget"
+.Fn AG_WidgetSurface "void *obj"
.Pp
.nr nS 0
The
@@ -762,10 +762,10 @@
.Pp
.nr nS 1
.Ft "void"
-.Fn AG_SetFont "AG_Widget *widget" "const AG_Font *font"
+.Fn AG_SetFont "void *obj" "const AG_Font *font"
.Pp
.Ft "void"
-.Fn AG_SetStyle "AG_Widget *widget" "const char *which" "const char *value"
+.Fn AG_SetStyle "void *obj" "const char *which" "const char *value"
.Pp
.nr nS 0
The
@@ -828,43 +828,43 @@
.\" MANLINK(AG_Action)
.nr nS 1
.Ft "AG_Action *"
-.Fn AG_ActionFn "AG_Widget *widget" "const char *action" "void (*fn)(AG_Event
*)" "const char *fnArgs" "..."
+.Fn AG_ActionFn "void *obj" "const char *action" "void (*fn)(AG_Event *)"
"const char *fnArgs" "..."
.Pp
.Ft "AG_Action *"
-.Fn AG_ActionSetInt "AG_Widget *widget" "const char *action" "int *variable"
"int value"
+.Fn AG_ActionSetInt "void *obj" "const char *action" "int *variable" "int
value"
.Pp
.Ft "AG_Action *"
-.Fn AG_ActionSetFlag "AG_Widget *widget" "const char *action" "Uint *variable"
"Uint bitmask" "int value"
+.Fn AG_ActionSetFlag "void *obj" "const char *action" "Uint *variable" "Uint
bitmask" "int value"
.Pp
.Ft "AG_Action *"
-.Fn AG_ActionToggleInt "AG_Widget *widget" "const char *action" "int *variable"
+.Fn AG_ActionToggleInt "void *obj" "const char *action" "int *variable"
.Pp
.Ft "AG_Action *"
-.Fn AG_ActionToggleFlag "AG_Widget *widget" "const char *action" "Uint
*variable" "Uint bitmask"
+.Fn AG_ActionToggleFlag "void *obj" "const char *action" "Uint *variable"
"Uint bitmask"
.Pp
.Ft void
-.Fn AG_ActionOnButtonDown "AG_Widget *widget" "int button" "const char *action"
+.Fn AG_ActionOnButtonDown "void *obj" "int button" "const char *action"
.Pp
.Ft void
-.Fn AG_ActionOnButtonUp "AG_Widget *widget" "int button" "const char *action"
+.Fn AG_ActionOnButtonUp "void *obj" "int button" "const char *action"
.Pp
.Ft void
-.Fn AG_ActionOnKeyDown "AG_Widget *widget" "AG_KeySym sym" "AG_KeyMod mod"
"const char *action"
+.Fn AG_ActionOnKeyDown "void *obj" "AG_KeySym sym" "AG_KeyMod mod" "const char
*action"
.Pp
.Ft void
-.Fn AG_ActionOnKeyUp "AG_Widget *widget" "AG_KeySym sym" "AG_KeyMod mod"
"const char *action"
+.Fn AG_ActionOnKeyUp "void *obj" "AG_KeySym sym" "AG_KeyMod mod" "const char
*action"
.Pp
.Ft void
-.Fn AG_ActionOnKey "AG_Widget *widget" "AG_KeySym sym" "AG_KeyMod mod" "const
char *action"
+.Fn AG_ActionOnKey "void *obj" "AG_KeySym sym" "AG_KeyMod mod" "const char
*action"
.Pp
.Ft int
-.Fn AG_ExecMouseAction "AG_Widget *widget" "AG_ActionEventType type" "int
button" "int x" "int y"
+.Fn AG_ExecMouseAction "void *obj" "AG_ActionEventType type" "int button" "int
x" "int y"
.Pp
.Ft int
-.Fn AG_ExecKeyAction "AG_Widget *widget" "AG_ActionEventType type" "AG_KeySym
sym" "AG_KeyMod mod"
+.Fn AG_ExecKeyAction "void *obj" "AG_ActionEventType type" "AG_KeySym sym"
"AG_KeyMod mod"
.Pp
.Ft int
-.Fn AG_ExecAction "AG_Widget *widget" "AG_Action *a"
+.Fn AG_ExecAction "void *obj" "AG_Action *a"
.Pp
.nr nS 0
.Fn AG_ActionFn
Index: gui/AG_WidgetPrimitives.3
===================================================================
--- gui/AG_WidgetPrimitives.3 (revision 9625)
+++ gui/AG_WidgetPrimitives.3 (working copy)
@@ -64,55 +64,55 @@
.Sh PRIMITIVES
.nr nS 1
.Ft void
-.Fn AG_PutPixel "AG_Widget *widget" "int x" "int y" "AG_Color c"
+.Fn AG_PutPixel "void *obj" "int x" "int y" "AG_Color c"
.Pp
.Ft void
-.Fn AG_PutPixelRGB "AG_Widget *widget" "int x" "int y" "Uint8 r" "Uint8 g"
"Uint8 b"
+.Fn AG_PutPixelRGB "void *obj" "int x" "int y" "Uint8 r" "Uint8 g" "Uint8 b"
.Pp
.Ft void
-.Fn AG_PutPixel32 "AG_Widget *widget" "int x" "int y" "Uint32 c"
+.Fn AG_PutPixel32 "void *obj" "int x" "int y" "Uint32 c"
.Pp
.Ft void
-.Fn AG_BlendPixel "AG_Widget *widget" "int x" "int y" "AG_Color c" "AG_BlendFn
blendFn"
+.Fn AG_BlendPixel "void *obj" "int x" "int y" "AG_Color c" "AG_BlendFn blendFn"
.Pp
.Ft void
-.Fn AG_BlendPixelRGBA "AG_Widget *widget" "int x" "int y" "Uint8 c[4]"
"AG_BlendFn blendFn"
+.Fn AG_BlendPixelRGBA "void *obj" "int x" "int y" "Uint8 c[4]" "AG_BlendFn
blendFn"
.Pp
.Ft void
-.Fn AG_BlendPixel32 "AG_Widget *widget" "int x" "int y" "Uint32 c" "AG_BlendFn
blendFn"
+.Fn AG_BlendPixel32 "void *obj" "int x" "int y" "Uint32 c" "AG_BlendFn blendFn"
.Pp
.Ft void
-.Fn AG_DrawCircle "AG_Widget *widget" "int x" "int y" "int radius" "AG_Color c"
+.Fn AG_DrawCircle "void *obj" "int x" "int y" "int radius" "AG_Color c"
.Pp
.Ft void
-.Fn AG_DrawCircle2 "AG_Widget *widget" "int x" "int y" "int radius" "AG_Color
c"
+.Fn AG_DrawCircleFilled "void *obj" "int x" "int y" "int radius" "AG_Color c"
.Pp
.Ft void
-.Fn AG_DrawLine "AG_Widget *widget" "int x1" "int y1" "int x2" "int y2"
"AG_Color c"
+.Fn AG_DrawLine "void *obj" "int x1" "int y1" "int x2" "int y2" "AG_Color c"
.Pp
.Ft void
-.Fn AG_DrawLine2 "AG_Widget *widget" "int x1" "int y1" "int x2" "int y2"
"AG_Color c"
+.Fn AG_DrawLine2 "void *obj" "int x1" "int y1" "int x2" "int y2" "AG_Color c"
.Pp
.Ft void
-.Fn AG_DrawLineBlended "AG_Widget *widget" "int x1" "int y1" "int x2" "int y2"
"Uint8 c[4]" "AG_BlendFn blendFn"
+.Fn AG_DrawLineBlended "void *obj" "int x1" "int y1" "int x2" "int y2" "Uint8
c[4]" "AG_BlendFn blendFn"
.Pp
.Ft void
-.Fn AG_DrawLineH "AG_Widget *widget" "int x1" "int x2" "int y" "AG_Color c"
+.Fn AG_DrawLineH "void *obj" "int x1" "int x2" "int y" "AG_Color c"
.Pp
.Ft void
-.Fn AG_DrawLineV "AG_Widget *widget" "int x" "int y1" "int y2" "AG_Color c"
+.Fn AG_DrawLineV "void *obj" "int x" "int y1" "int y2" "AG_Color c"
.Pp
.Ft void
-.Fn AG_DrawRect "AG_Widget *widget, AG_Rect r" "AG_Color c"
+.Fn AG_DrawRect "void *obj" "AG_Rect r" "AG_Color c"
.Pp
.Ft void
-.Fn AG_DrawRectOutline "AG_Widget *widget, AG_Rect r" "AG_Color c"
+.Fn AG_DrawRectOutline "void *obj" "AG_Rect r" "AG_Color c"
.Pp
.Ft void
-.Fn AG_DrawRectFilled "AG_Widget *widget, AG_Rect r" "AG_Color c"
+.Fn AG_DrawRectFilled "void *obj" "AG_Rect r" "AG_Color c"
.Pp
.Ft void
-.Fn AG_DrawRectBlended "AG_Widget *widget, AG_Rect r" "AG_Color c" "AG_BlendFn
blendFn"
+.Fn AG_DrawRectBlended "void *obj" "AG_Rect r" "AG_Color c" "AG_BlendFn
blendFn"
.Pp
.nr nS 0
.Fn AG_PutPixel
@@ -173,6 +173,8 @@
and a radius of
.Fa radius
pixels.
+.Fn AG_DrawCircleFilled
+draws a filled circle.
.Pp
.Fn AG_DrawLine
scan-converts a line segment going from point
@@ -222,25 +224,25 @@
.Sh SIMPLE GRAPHICAL ELEMENTS
.nr nS 1
.Ft void
-.Fn AG_DrawBox "AG_Widget *widget" "AG_Rect r" "int z" "AG_Color c"
+.Fn AG_DrawBox "void *obj" "AG_Rect r" "int z" "AG_Color c"
.Pp
.Ft void
-.Fn AG_DrawBoxDisabled "AG_Widget *widget" "AG_Rect r" "int z" "AG_Color c1"
"AG_Color c2"
+.Fn AG_DrawBoxDisabled "void *obj" "AG_Rect r" "int z" "AG_Color c1" "AG_Color
c2"
.Pp
.Ft void
-.Fn AG_DrawBoxRounded "AG_Widget *widget" "AG_Rect r" "int z" "int radius"
"AG_Color c"
+.Fn AG_DrawBoxRounded "void *obj" "AG_Rect r" "int z" "int radius" "AG_Color c"
.Pp
.Ft void
-.Fn AG_DrawBoxRoundedTop "AG_Widget *widget" "AG_Rect r" "int z" "int radius"
"AG_Color c"
+.Fn AG_DrawBoxRoundedTop "void *obj" "AG_Rect r" "int z" "int radius"
"AG_Color c"
.Pp
.Ft void
-.Fn AG_DrawTiling "AG_Widget *widget, AG_Rect r" "int tileSz" "int offset"
"AG_Color c1" "AG_Color c2"
+.Fn AG_DrawTiling "void *obj" "AG_Rect r" "int tileSz" "int offset" "AG_Color
c1" "AG_Color c2"
.Pp
.Ft void
-.Fn AG_DrawFrame "AG_Widget *widget" "AG_Rect r" "int z" "AG_Color c"
+.Fn AG_DrawFrame "void *obj" "AG_Rect r" "int z" "AG_Color c"
.Pp
.Ft void
-.Fn AG_DrawFrameBlended "AG_Widget *widget" "AG_Rect r" "Uint8 c[4]"
"AG_BlendFn blendFn"
+.Fn AG_DrawFrameBlended "void *obj" "AG_Rect r" "Uint8 c[4]" "AG_BlendFn
blendFn"
.Pp
.nr nS 0
The
@@ -283,22 +285,22 @@
.Sh SYMBOLS
.nr nS 1
.Ft void
-.Fn AG_DrawPlus "AG_Widget *widget, AG_Rect r" "Uint8 c[4]" "AG_BlendFn
blendFn"
+.Fn AG_DrawPlus "void *obj" "AG_Rect r" "Uint8 c[4]" "AG_BlendFn blendFn"
.Pp
.Ft void
-.Fn AG_DrawMinus "AG_Widget *widget, AG_Rect r" "Uint8 c[4]" "AG_BlendFn
blendFn"
+.Fn AG_DrawMinus "void *obj" "AG_Rect r" "Uint8 c[4]" "AG_BlendFn blendFn"
.Pp
.Ft void
-.Fn AG_DrawArrowUp "AG_Widget *widget" "int x" "int y" "int h" "AG_Color c1"
"AG_Color c2"
+.Fn AG_DrawArrowUp "void *obj" "int x" "int y" "int h" "AG_Color c1" "AG_Color
c2"
.Pp
.Ft void
-.Fn AG_DrawArrowDown "AG_Widget *widget" "int x" "int y" "int h" "AG_Color c1"
"AG_Color c2"
+.Fn AG_DrawArrowDown "void *obj" "int x" "int y" "int h" "AG_Color c1"
"AG_Color c2"
.Pp
.Ft void
-.Fn AG_DrawArrowLeft "AG_Widget *widget" "int x" "int y" "int w" "AG_Color c1"
"AG_Color c2"
+.Fn AG_DrawArrowLeft "void *obj" "int x" "int y" "int w" "AG_Color c1"
"AG_Color c2"
.Pp
.Ft void
-.Fn AG_DrawArrowRight "AG_Widget *widget" "int x" "int y" "int w" "AG_Color
c1" "AG_Color c2"
+.Fn AG_DrawArrowRight "void *obj" "int x" "int y" "int w" "AG_Color c1"
"AG_Color c2"
.Pp
.nr nS 0
The
Index: math/M_Plotter.3
===================================================================
--- math/M_Plotter.3 (revision 9625)
+++ math/M_Plotter.3 (working copy)
@@ -190,7 +190,7 @@
.Fn M_PlotVectorv "M_Plot *pl" "Uint n" "const M_Vector **values"
.Pp
.Ft "void"
-.Fn M_PlotterUpdate "M_Plot *pl"
+.Fn M_PlotterUpdate "M_Plotter *ptr"
.Pp
.nr nS 0
.Fn M_PlotNew
--
pap
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html