File: asgtkgradient.h

package info (click to toggle)
afterstep 2.2.12-19
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,168 kB
  • sloc: ansic: 201,695; sh: 5,894; xml: 3,721; makefile: 2,095; perl: 1,558; cpp: 811
file content (62 lines) | stat: -rw-r--r-- 1,828 bytes parent folder | download | duplicates (7)
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
52
53
54
55
56
57
58
59
60
61
62
#ifndef ASGTKGRADIENT_H_HEADER_INCLUDED
#define ASGTKGRADIENT_H_HEADER_INCLUDED


#define ASGTK_TYPE_GRADIENT			          (asgtk_gradient_get_type ())
#define ASGTK_GRADIENT(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), ASGTK_TYPE_GRADIENT, ASGtkGradient))
#define ASGTK_GRADIENT_CLASS(klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), ASGTK_TYPE_GRADIENT, ASGtkGradientClass))
#define ASGTK_IS_GRADIENT(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), ASGTK_TYPE_GRADIENT))
#define ASGTK_IS_GRADIENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ASGTK_TYPE_GRADIENT))
#define ASGTK_GRADIENT_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), ASGTK_TYPE_GRADIENT, ASGtkGradient))


struct ASImageListEntry;
struct ASImage;
struct _ASGtkImageView;
struct _ASGtkImageDir;
struct ASImageListEntry;
struct ASGradient;
struct ASGradientPoint;

typedef struct _ASGtkGradient
{
	GtkDialog       parent_instance;

	int type ;    
	ASBiDirList 			*points ; 
	struct ASGradientPoint  *current_point ; 

	struct _ASGtkImageView  *image_view ;
	GtkWidget 		*point_list;
	GtkListStore    *point_list_model;
	GtkWidget		*screen_width_check, *screen_height_check ;   
	GtkWidget 		*width_entry, *height_entry ;
	GtkWidget		*color_entry, *offset_entry ; 
	GtkWidget		*color_preview ;
	GtkWidget       *size_frame ; 

	GtkWidget 		*l2r_radio ;
	GtkWidget 		*tl2br_radio ;
	GtkWidget 		*t2b_radio ;
	GtkWidget 		*bl2tr_radio ;

	GtkWidget 		*apply_btn, *delete_btn ;

	int color_preview_width, color_preview_height ;

}ASGtkGradient;

typedef struct _ASGtkGradientClass
{
  	GtkDialogClass  parent_class;
	
}ASGtkGradientClass;


GType       asgtk_gradient_get_type  (void) G_GNUC_CONST;

GtkWidget *asgtk_gradient_new       ();
char *asgtk_gradient_get_xml( ASGtkGradient *ge, char **mini );


#endif  /*  ASGTKCOLORSEL_H_HEADER_INCLUDED  */