1 /* Dia -- an diagram creation/manipulation program
2 * Copyright (C) 1998 Alexander Larsson
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 #ifndef DISP_CALLBACKS_H
19 #define DISP_CALLBACKS_H
23 #define CANVAS_EVENT_MASK \
24 GDK_EXPOSURE_MASK | GDK_POINTER_MOTION_MASK | \
25 GDK_POINTER_MOTION_HINT_MASK | GDK_BUTTON_PRESS_MASK | \
26 GDK_BUTTON_RELEASE_MASK | GDK_STRUCTURE_MASK | \
27 GDK_ENTER_NOTIFY_MASK | GDK_KEY_PRESS_MASK | \
30 gint
ddisplay_focus_in_event (GtkWidget
*widget
, GdkEventFocus
*event
,
32 gint
ddisplay_focus_out_event (GtkWidget
*widget
, GdkEventFocus
*event
,
34 void ddisplay_realize (GtkWidget
*widget
, gpointer data
);
35 void ddisplay_unrealize (GtkWidget
*widget
, gpointer data
);
36 void ddisplay_size_allocate (GtkWidget
*widget
, GtkAllocation
*allocation
,
39 gint
ddisplay_canvas_events (GtkWidget
*, GdkEvent
*, DDisplay
*ddisp
);
40 void ddisplay_popup_menu(DDisplay
*ddisp
, GdkEventButton
*event
);
41 gint
ddisplay_hsb_update (GtkAdjustment
*adjustment
, DDisplay
*ddisp
);
42 gint
ddisplay_vsb_update (GtkAdjustment
*adjustment
, DDisplay
*ddisp
);
43 gint
ddisplay_delete (GtkWidget
*widget
, GdkEvent
*event
, gpointer data
);
44 void ddisplay_destroy (GtkWidget
*widget
, gpointer data
);
46 DiaObject
*ddisplay_drop_object(DDisplay
*ddisp
, gint x
, gint y
, DiaObjectType
*otype
,
48 void ddisplay_im_context_commit(GtkIMContext
*context
, const gchar
*str
,
50 void ddisplay_im_context_preedit_changed(GtkIMContext
*context
,
53 #endif /* DISP_CALLBACKS_H */