diff options
author | inmarket <andrewh@inmarket.com.au> | 2013-07-01 17:34:13 +1000 |
---|---|---|
committer | inmarket <andrewh@inmarket.com.au> | 2013-07-01 17:34:13 +1000 |
commit | 57d3632e36fe2ab55589207a84c29544b15bd2c3 (patch) | |
tree | e68070f37cf88b33fb5d717d9ef839c5e2e8dc88 /include/gwin/class_gwin.h | |
parent | a51ffd5b6891a9fb87ac3a903ae6b415fc32c726 (diff) | |
download | uGFX-57d3632e36fe2ab55589207a84c29544b15bd2c3.tar.gz uGFX-57d3632e36fe2ab55589207a84c29544b15bd2c3.tar.bz2 uGFX-57d3632e36fe2ab55589207a84c29544b15bd2c3.zip |
GWIN Init structures are const (read-only to GWIN)
Diffstat (limited to 'include/gwin/class_gwin.h')
-rw-r--r-- | include/gwin/class_gwin.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/gwin/class_gwin.h b/include/gwin/class_gwin.h index c3d2ee36..dbda3619 100644 --- a/include/gwin/class_gwin.h +++ b/include/gwin/class_gwin.h @@ -117,7 +117,7 @@ typedef struct gwinVMT { typedef struct gwmVMT { void (*Init) (void); // @< The window manager has just been set as the current window manager void (*DeInit) (void); // @< The window manager has just been removed as the current window manager - bool_t (*Add) (GHandle gh, GWindowInit *pInit); // @< A window has been added + bool_t (*Add) (GHandle gh, const GWindowInit *pInit); // @< A window has been added void (*Delete) (GHandle gh); // @< A window has been deleted void (*Visible) (GHandle gh); // @< A window has changed its visibility state void (*Redim) (GHandle gh, coord_t x, coord_t y, coord_t w, coord_t h); // @< A window wants to be moved or resized @@ -146,21 +146,19 @@ extern "C" { * * @notapi */ -GHandle _gwindowCreate(GWindowObject *pgw, GWindowInit *pInit, const gwinVMT *vmt, uint16_t flags); +GHandle _gwindowCreate(GWindowObject *pgw, const GWindowInit *pInit, const gwinVMT *vmt, uint16_t flags); #if GWIN_NEED_WIDGET || defined(__DOXYGEN__) /** * @brief Initialise (and allocate if necessary) the base Widget object * * @param[in] pgw The GWidgetObject structure. If NULL one is allocated from the heap - * @param[in] x, y The top left corner of the Widget relative to the screen - * @param[in] w, h The width and height of the Widget window - * @param[in] size The size of the Widget object to allocate + * @param[in] pInit The user initialization parameters * @param[in] vmt The virtual method table for the Widget object * * @notapi */ - GHandle _gwidgetCreate(GWidgetObject *pgw, GWidgetInit *pInit, const gwidgetVMT *vmt); + GHandle _gwidgetCreate(GWidgetObject *pgw, const GWidgetInit *pInit, const gwidgetVMT *vmt); /** * @brief Destroy the Widget object |