File: SWFMovieClip_setScalingGrid.3

package info (click to toggle)
ming 1%3A0.4.4-1.1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 27,252 kB
  • sloc: ansic: 55,741; sh: 10,021; cpp: 3,879; python: 2,954; yacc: 2,817; makefile: 2,232; perl: 1,532; php: 882; tcl: 13
file content (53 lines) | stat: -rw-r--r-- 1,097 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 "SWFMovieClip_setScalingGrid" 3 "20 March 2008" "c2man movieclip.c"
.SH "NAME"
SWFMovieClip_setScalingGrid \- set a 9 slice scaling grid to this sprite / movieclip / button
.SH "SYNOPSIS"
.ft B
#include <ming.h>
.br
.sp
void SWFMovieClip_setScalingGrid
.br
(
.br
	SWFMovieClip clip,
.br
	int x,
.br
	int y,
.br
	int w,
.br
	int h
.br
);
.ft R
.SH "PARAMETERS"
.TP
.B "SWFMovieClip clip"
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 scaled vertical and horizontal, slice 2 and 8 are only scaled horizontal.
Slice 4 and 6 only vertical. The 4 corner slices are not scaled (1, 3, 7, 9).