File: gtklink.h

package info (click to toggle)
cheops 0.61-15.1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,272 kB
  • ctags: 1,312
  • sloc: ansic: 12,731; sh: 155; makefile: 151
file content (51 lines) | stat: -rw-r--r-- 984 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
 * Cheops Network User Interface
 *
 * Copyright (C) 1999, Adtran, Inc.
 * 
 * Distributed under the terms of the GNU GPL
 *
 */


#ifndef __GTK_LINK_H
#define __GTK_LINK_H
#include <gdk/gdk.h>
#include <gtk/gtkmisc.h>

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */


#define GTK_LINK(obj)          GTK_CHECK_CAST (obj, gtk_link_get_type (), GtkLink)
#define GTK_LINK_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, gtk_link_get_type (), GtkLinkClass)
#define GTK_IS_LINK(obj)       GTK_CHECK_TYPE (obj, gtk_link_get_type ())

typedef struct _GtkLink        GtkLink;
typedef struct _GtkLinkClass   GtkLinkClass;

struct _GtkLink {
	GtkMisc misc;
	/* Coordinates we're connecting */
	int x1;
	int y1;
	int x2;
	int y2;
	int xos;
	int yos;
};

struct _GtkLinkClass {
	GtkMiscClass parent_class;
};

guint 		gtk_link_get_type (void);
GtkWidget*	gtk_link_new(void);
void		gtk_link_set_coords(GtkLink *, int, int, int, int);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif