diff options
author | das <das> | 2006-11-03 03:06:21 (GMT) |
---|---|---|
committer | das <das> | 2006-11-03 03:06:21 (GMT) |
commit | 6a21e72df71f06d61c44e3de34afe26973732214 (patch) | |
tree | ddde20bc872b7fac3e8a946a67418e60dcc23428 /generic/ttk/ttkManager.h | |
parent | 576cbeb2f5ccec11ea4ebb71b788d4527ee1aae3 (diff) | |
download | tk-6a21e72df71f06d61c44e3de34afe26973732214.zip tk-6a21e72df71f06d61c44e3de34afe26973732214.tar.gz tk-6a21e72df71f06d61c44e3de34afe26973732214.tar.bz2 |
* generic/ttk/ttkBlink.c, generic/ttk/ttkButton.c:
* generic/ttk/ttkClamTheme.c, generic/ttk/ttkClassicTheme.c:
* generic/ttk/ttkDecls.h, generic/ttk/ttkDefaultTheme.c:
* generic/ttk/ttkElements.c, generic/ttk/ttkEntry.c:
* generic/ttk/ttkFrame.c, generic/ttk/ttkImage.c:
* generic/ttk/ttkInit.c, generic/ttk/ttkLabel.c:
* generic/ttk/ttkLayout.c, generic/ttk/ttkManager.h:
* generic/ttk/ttkNotebook.c, generic/ttk/ttkPanedwindow.c:
* generic/ttk/ttkProgress.c, generic/ttk/ttkScale.c:
* generic/ttk/ttkScroll.c, generic/ttk/ttkScrollbar.c:
* generic/ttk/ttkSeparator.c, generic/ttk/ttkSquare.c:
* generic/ttk/ttkStubInit.c, generic/ttk/ttkStubLib.c:
* generic/ttk/ttkTheme.c, generic/ttk/ttkTheme.h:
* generic/ttk/ttkThemeInt.h, generic/ttk/ttkTrack.c:
* generic/ttk/ttkTreeview.c, generic/ttk/ttkWidget.c:
* generic/ttk/ttkWidget.h, macosx/ttkMacOSXTheme.c:
* win/ttkWinMonitor.c, win/ttkWinTheme.c, win/ttkWinXPTheme.c: ensure
all global Ttk symbols have Ttk or ttk prefix; declare all externally
visible Ttk symbols not contained in stubs table as MODULE_SCOPE (or as
static when possible); so that 'make check{exports,stubs}' once again
complete without errors.
Diffstat (limited to 'generic/ttk/ttkManager.h')
-rw-r--r-- | generic/ttk/ttkManager.h | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/generic/ttk/ttkManager.h b/generic/ttk/ttkManager.h index d046cd7..0e22ce0 100644 --- a/generic/ttk/ttkManager.h +++ b/generic/ttk/ttkManager.h @@ -1,4 +1,4 @@ -/* $Id: ttkManager.h,v 1.1 2006/10/31 01:42:26 hobbs Exp $ +/* $Id: ttkManager.h,v 1.2 2006/11/03 03:06:22 das Exp $ * * Copyright (c) 2005, Joe English. Freely redistributable. * @@ -7,8 +7,8 @@ * TODO: opacify data structures. */ -#ifndef TTK_MANAGER_H -#define TTK_MANAGER_H 1 +#ifndef _TTKMANAGER +#define _TTKMANAGER typedef struct TtkManager_ Ttk_Manager; /* forward */ typedef struct TtkSlave_ Ttk_Slave; /* forward */ @@ -44,8 +44,8 @@ typedef struct { /* Manager hooks */ /* * Default implementations for Tk_GeomMgr hooks: */ -extern void Ttk_GeometryRequestProc(ClientData, Tk_Window slave); -extern void Ttk_LostSlaveProc(ClientData, Tk_Window slave); +MODULE_SCOPE void Ttk_GeometryRequestProc(ClientData, Tk_Window slave); +MODULE_SCOPE void Ttk_LostSlaveProc(ClientData, Tk_Window slave); struct TtkSlave_ { @@ -69,54 +69,54 @@ struct TtkManager_ /* * Public API: */ -extern Ttk_Manager *Ttk_CreateManager( +MODULE_SCOPE Ttk_Manager *Ttk_CreateManager( Ttk_ManagerSpec *, void *managerData, Tk_Window masterWindow); -extern void Ttk_DeleteManager(Ttk_Manager *); +MODULE_SCOPE void Ttk_DeleteManager(Ttk_Manager *); -extern int Ttk_AddSlave( +MODULE_SCOPE int Ttk_AddSlave( Tcl_Interp *, Ttk_Manager *, Tk_Window, int position, int objc, Tcl_Obj *CONST objv[]); -extern void Ttk_ForgetSlave(Ttk_Manager *, int slaveIndex); +MODULE_SCOPE void Ttk_ForgetSlave(Ttk_Manager *, int slaveIndex); -extern int Ttk_ConfigureSlave( +MODULE_SCOPE int Ttk_ConfigureSlave( Tcl_Interp *interp, Ttk_Manager *, Ttk_Slave *, int objc, Tcl_Obj *CONST objv[]); -extern void Ttk_ReorderSlave(Ttk_Manager *, int fromIndex, int toIndex); +MODULE_SCOPE void Ttk_ReorderSlave(Ttk_Manager *, int fromIndex, int toIndex); /* Rearrange slave positions */ -extern void Ttk_PlaceSlave( +MODULE_SCOPE void Ttk_PlaceSlave( Ttk_Manager *, int slaveIndex, int x, int y, int width, int height); /* Position and map the slave */ -extern void Ttk_UnmapSlave(Ttk_Manager *, int slaveIndex); +MODULE_SCOPE void Ttk_UnmapSlave(Ttk_Manager *, int slaveIndex); /* Unmap the slave */ -extern void Ttk_ManagerSizeChanged(Ttk_Manager *); -extern void Ttk_ManagerLayoutChanged(Ttk_Manager *); +MODULE_SCOPE void Ttk_ManagerSizeChanged(Ttk_Manager *); +MODULE_SCOPE void Ttk_ManagerLayoutChanged(Ttk_Manager *); /* Notify manager that size (resp. layout) needs to be recomputed */ /* Utilities: */ -extern int Ttk_SlaveIndex(Ttk_Manager *, Tk_Window); +MODULE_SCOPE int Ttk_SlaveIndex(Ttk_Manager *, Tk_Window); /* Returns: index in slave array of specified window, -1 if not found */ -extern Ttk_Slave *Ttk_GetSlaveFromObj( +MODULE_SCOPE Ttk_Slave *Ttk_GetSlaveFromObj( Tcl_Interp *, Ttk_Manager *, Tcl_Obj *, int *indexPtr); /* Accessor functions: */ -extern int Ttk_NumberSlaves(Ttk_Manager *); +MODULE_SCOPE int Ttk_NumberSlaves(Ttk_Manager *); /* Returns: number of managed slaves */ -extern void *Ttk_SlaveData(Ttk_Manager *, int slaveIndex); +MODULE_SCOPE void *Ttk_SlaveData(Ttk_Manager *, int slaveIndex); /* Returns: private data associated with slave */ -extern Tk_Window Ttk_SlaveWindow(Ttk_Manager *, int slaveIndex); +MODULE_SCOPE Tk_Window Ttk_SlaveWindow(Ttk_Manager *, int slaveIndex); /* Returns: slave window */ -extern int Ttk_Maintainable(Tcl_Interp *, Tk_Window slave, Tk_Window master); +MODULE_SCOPE int Ttk_Maintainable(Tcl_Interp *, Tk_Window slave, Tk_Window master); /* Returns: 1 if master can manage slave; 0 otherwise leaving error msg */ -#endif +#endif /* _TTKMANAGER */ |