-
Notifications
You must be signed in to change notification settings - Fork 4
/
sdl_ttf_arginfo.h
73 lines (56 loc) · 2.31 KB
/
sdl_ttf_arginfo.h
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
/* This is a generated file, edit the .stub.php file instead.
* Stub hash: a227cb9e9a1c09d4ad3d395fa603dd775fb0820a */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_TTF_Init, 0, 0, IS_LONG, 0)
ZEND_END_ARG_INFO()
#define arginfo_TTF_WasInit arginfo_TTF_Init
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_TTF_Quit, 0, 0, IS_VOID, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_TTF_OpenFont, 0, 2, TTF_Font, 0)
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
ZEND_ARG_TYPE_INFO(0, size, IS_LONG, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_TTF_CloseFont, 0, 1, IS_LONG, 0)
ZEND_ARG_OBJ_INFO(0, font, TTF_Font, 0)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_TTF_RenderText_Solid, 0, 3, SDL_Surface, 0)
ZEND_ARG_OBJ_INFO(0, font, TTF_Font, 0)
ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0)
ZEND_ARG_OBJ_INFO(0, color, SDL_Color, 0)
ZEND_END_ARG_INFO()
#define arginfo_TTF_RenderText_Blended arginfo_TTF_RenderText_Solid
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_TTF_RenderText_Shaded, 0, 4, SDL_Surface, 0)
ZEND_ARG_OBJ_INFO(0, font, TTF_Font, 0)
ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0)
ZEND_ARG_OBJ_INFO(0, color, SDL_Color, 0)
ZEND_ARG_OBJ_INFO(0, backgroundColor, SDL_Color, 0)
ZEND_END_ARG_INFO()
ZEND_FUNCTION(TTF_Init);
ZEND_FUNCTION(TTF_WasInit);
ZEND_FUNCTION(TTF_Quit);
ZEND_FUNCTION(TTF_OpenFont);
ZEND_FUNCTION(TTF_CloseFont);
ZEND_FUNCTION(TTF_RenderText_Solid);
ZEND_FUNCTION(TTF_RenderText_Blended);
ZEND_FUNCTION(TTF_RenderText_Shaded);
static const zend_function_entry ext_functions[] = {
ZEND_FE(TTF_Init, arginfo_TTF_Init)
ZEND_FE(TTF_WasInit, arginfo_TTF_WasInit)
ZEND_FE(TTF_Quit, arginfo_TTF_Quit)
ZEND_FE(TTF_OpenFont, arginfo_TTF_OpenFont)
ZEND_FE(TTF_CloseFont, arginfo_TTF_CloseFont)
ZEND_FE(TTF_RenderText_Solid, arginfo_TTF_RenderText_Solid)
ZEND_FE(TTF_RenderText_Blended, arginfo_TTF_RenderText_Blended)
ZEND_FE(TTF_RenderText_Shaded, arginfo_TTF_RenderText_Shaded)
ZEND_FE_END
};
static const zend_function_entry class_TTF_Font_methods[] = {
ZEND_FE_END
};
static zend_class_entry *register_class_TTF_Font(void)
{
zend_class_entry ce, *class_entry;
INIT_CLASS_ENTRY(ce, "TTF_Font", class_TTF_Font_methods);
class_entry = zend_register_internal_class_ex(&ce, NULL);
class_entry->ce_flags |= ZEND_ACC_FINAL;
return class_entry;
}