summaryrefslogtreecommitdiff
path: root/legacy/edje/data/vim/snippets/edc.snippets
blob: bb93e42265fe4043034ddac71ac082974b0a93c8 (plain)
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
snippet col
	collections {
		${1}
	}

snippet images
	images {
		${1}
	}

snippet image
	image: "${1:.png}" COMP;

snippet group
	group { name: "${1}";
		${2}
		parts {
			${3}
		}
	}

snippet part
	part { name: "${1}";
		type: ${2:RECT};
		mouse_events: 0;
		description { state: "default" 0.0;
			visible: 1;
			color: 255 255 255 255;
			rel1 {
				to_x: "${2:bg}";
				to_y: "${3:bg}";
				relative: 0.0 0.0;
				offset: 0 0;
			}
			rel2 {
				to_x: "${4:bg}";
				to_y: "${5:bg}";
				relative: 1.0 1.0;
				offset: -1 -1;
			}
		}
	}

snippet bg
	part { name: "${1:bg}";
		type: RECT;
		mouse_events: 0;
		description { state: "default" 0.0;
			visible: 1;
			color: 0 0 0 0;
		}
	}

snippet event
	part { name: "${1:event}";
		type: RECT;
		mouse_events: 1;
		description { state: "default" 0.0;
			visible: 1;
			color: 0 0 0 0;
		}
	}

snippet IMAGE
	part { name: "${1:image}";
		type: IMAGE;
		mouse_events: 0;
		description { state: "default" 0.0;
			visible: 1;
			image {
				normal: "${2}";
				border: 0 0 0 0;
				middle: 1;
			}
		}
	}

snippet desc
	description { state: "${1}" ${2:0.0};
		inherit: "default" 0.0;
		${3}
	}

snippet programs
	programs {
		${1}
	}

snippet program
	program { name: "${1}";
		${2}
	}

snippet clicked
	program { name: "${1:mouse_clicked}";
		signal: "mouse,clicked,${2:1}";
		source: "${2:event}";
		action: SIGNAL_EMIT "${3}" "${4}";
	}