File: SWFButton_setScalingGrid.3

package info (click to toggle)
ming 1%3A0.4.3-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 27,236 kB
  • ctags: 11,055
  • sloc: ansic: 55,058; sh: 9,111; cpp: 3,752; yacc: 2,808; makefile: 2,155; python: 1,864; perl: 1,472; php: 678; tcl: 13
file content (53 lines) | stat: -rw-r--r-- 1,075 bytes parent folder | download | duplicates (2)
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
.\" WARNING! THIS FILE WAS GENERATED AUTOMATICALLY BY c2man!
.\" DO NOT EDIT! CHANGES MADE TO THIS FILE WILL BE LOST!
.TH "SWFButton_setScalingGrid" 3 "23 September 2008" "c2man button.c"
.SH "NAME"
SWFButton_setScalingGrid \- set a 9 slice scaling grid to this sprite / movieclip / button
.SH "SYNOPSIS"
.ft B
#include <ming.h>
.br
.sp
void SWFButton_setScalingGrid
.br
(
.br
	SWFButton b,
.br
	int x,
.br
	int y,
.br
	int w,
.br
	int h
.br
);
.ft R
.SH "PARAMETERS"
.TP
.B "SWFButton b"
Not Documented.
.TP
.B "int x"
Not Documented.
.TP
.B "int y"
Not Documented.
.TP
.B "int w"
Not Documented.
.TP
.B "int h"
Not Documented.
.SH "DESCRIPTION"
This function sets a 9 slice scaling grid to buttons / sprites / movieclips

1 2 3
4 5 6
7 8 9

x, y, w and h define a rectangle, which is the dimension of the center slice (5)
all other slices are determined out of the characters bounds and the defined rect.
While slice 5 is scalde vertical and horizontal, slice 2 and 8 are only scale horizontal.
Slice 4 and 6 only vertical. The 4 corner slices are not scaled (1, 3, 7, 9).