Update of /cvsroot/htoolkit/port/src/include
In directory sc8-pr-cvs1:/tmp/cvs-serv14568/src/include
Modified Files:
Types.h
Added Files:
ToolBar.h
Log Message:
Added implementation for ToolBar. The Windows version is still in very basic
state.
--- NEW FILE: ToolBar.h ---
#ifndef TOOLBAR_H
#define TOOLBAR_H
#include "Types.h"
WindowHandle osCreateToolBar(char *name, int place, int band_num, int band_position, int offset);
void osDestroyToolBar(GtkWidget *toolbar);
ToolHandle osInsertToolButton(WindowHandle toolbar, int pos);
ToolHandle osInsertToolCheckButton(WindowHandle toolbar, int pos);
ToolHandle osInsertToolLine(WindowHandle toolbar, int pos);
void osSetToolButtonBitmap(ToolHandle toolButton, BitmapHandle bitmap);
void osSetToolButtonEnabled(ToolHandle toolButton, BOOL bEnabled);
BOOL osGetToolButtonEnabled(ToolHandle toolButton);
void osSetToolButtonTip(ToolHandle toolButton, char *text);
char *osGetToolButtonTip(ToolHandle toolButton);
void osSetToolButtonText(ToolHandle toolButton, char *text);
char *osGetToolButtonText(ToolHandle toolButton);
void osDestroyToolItem(ToolHandle toolItem);
int osGetToolItemPos(ToolHandle toolItem);
#endif
Index: Types.h
===================================================================
RCS file: /cvsroot/htoolkit/port/src/include/Types.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** Types.h 4 Jul 2003 17:39:05 -0000 1.12
--- Types.h 8 Jul 2003 20:31:29 -0000 1.13
***************
*** 35,38 ****
--- 35,40 ----
typedef struct MenuHandle *MenuHandle;
+ typedef struct _ToolHandle *ToolHandle;
+
typedef struct
{
***************
*** 96,99 ****
--- 98,103 ----
typedef GtkWidget *MenuHandle;
typedef GtkWidget *MenuItemHandle;
+
+ typedef GtkWidget *ToolHandle;
typedef struct
|