68e1ec7d00
* NEW: DateBox is a new control that can edit a date with a calendar popup. It aims at replacing the DatePicker, and the ValueBox with date type. * NEW: DateChooser layout is better with small sizes. * NEW: DateChooser raises a Cancel event when you hit the Escape key. [GB.GTK] * BUG: Better management of window grabs. * NEW: Window.ShowPupup() is a new method that shows a window as a popup. It takes an optional X,Y screen position as arguments. If not specified, the window is shown at the current cursor position. * BUG: Now all controls catch basic events. * BUG: Fix a crash when destroying controls. [GB.QT4] * NEW: Window.ShowPupup() is a new method that shows a window as a popup. It takes an optional X,Y screen position as arguments. If not specified, the window is shown at the current cursor position. * NEW: TrayIcon got a PopupMenu property, like the Control class. But it works only if the TrayIcon observer is a Window. The property has bot been implemented in gb.gtk yet. git-svn-id: svn://localhost/gambas/trunk@3088 867c0c6c-44f3-4631-809d-bfa615b0a4ec
66 lines
1.7 KiB
C
66 lines
1.7 KiB
C
/***************************************************************************
|
|
|
|
gb.gtk.h
|
|
|
|
(c) 2004-2006 - Daniel Campos Fernández <dcamposf@gmail.com>
|
|
|
|
This program is free software; you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation; either version 2, or (at your option)
|
|
any later version.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
|
|
|
***************************************************************************/
|
|
|
|
#ifndef GB_GTK_H
|
|
#define GB_GTK_H
|
|
|
|
#include "gambas.h"
|
|
#include <gdk/gdk.h>
|
|
|
|
#define GTK_INTERFACE_VERSION 1
|
|
|
|
typedef
|
|
struct
|
|
{
|
|
intptr_t version;
|
|
void (*Init)(int *, char **);
|
|
void *(*GetPicture)(GdkPixbuf *buf);
|
|
void *(*GetImage)(GdkPixbuf *buf);
|
|
struct {
|
|
void (*FooterProperty)(void *, void *);
|
|
void (*ColumnFooterTextProperty)(void *, void *);
|
|
void (*ColumnsGetMethod)(void *, void *);
|
|
}
|
|
GridView;
|
|
struct {
|
|
void* (*GetDrawable)(void *);
|
|
void* (*GetStyle)(void *);
|
|
int (*GetState)(void *);
|
|
int (*GetShadow)(void *);
|
|
void (*SetState)(void *,int);
|
|
void (*SetShadow)(void *,int);
|
|
} Draw;
|
|
void *_null;
|
|
}
|
|
GTK_INTERFACE;
|
|
|
|
typedef
|
|
struct {
|
|
GB_BASE ob;
|
|
void *widget;
|
|
GB_VARIANT_VALUE tag;
|
|
void *font;
|
|
char *popup;
|
|
}
|
|
GTK_CONTROL;
|
|
|
|
#endif
|