Line data Source code
1 : /* This is a generated file, edit the .stub.php file instead.
2 : * Stub hash: f0c0c796e440ddbb2db435f517d1758078466aa8 */
3 :
4 : ZEND_BEGIN_ARG_INFO_EX(arginfo_class_Pango_Rectangle___construct, 0, 0, 4)
5 : ZEND_ARG_TYPE_INFO(0, x, IS_LONG, 0)
6 : ZEND_ARG_TYPE_INFO(0, y, IS_LONG, 0)
7 : ZEND_ARG_TYPE_INFO(0, width, IS_LONG, 0)
8 : ZEND_ARG_TYPE_INFO(0, height, IS_LONG, 0)
9 : ZEND_END_ARG_INFO()
10 :
11 : ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_Pango_Rectangle_extentsToPixels, 0, 1, Pango\\Rectangle, 0)
12 : ZEND_ARG_OBJ_INFO(0, rectangle, Pango\\Rectangle, 0)
13 : ZEND_ARG_OBJ_INFO_WITH_DEFAULT_VALUE(0, roundingMode, Pango\\RoundingMode, 0, "Pango\\RoundingMode::Inclusive")
14 : ZEND_END_ARG_INFO()
15 :
16 : ZEND_METHOD(Pango_Rectangle, __construct);
17 : ZEND_METHOD(Pango_Rectangle, extentsToPixels);
18 :
19 : static const zend_function_entry class_Pango_Rectangle_methods[] = {
20 : ZEND_ME(Pango_Rectangle, __construct, arginfo_class_Pango_Rectangle___construct, ZEND_ACC_PUBLIC)
21 : ZEND_ME(Pango_Rectangle, extentsToPixels, arginfo_class_Pango_Rectangle_extentsToPixels, ZEND_ACC_PUBLIC|ZEND_ACC_STATIC)
22 : ZEND_FE_END
23 : };
24 :
25 194 : static zend_class_entry *register_class_Pango_Rectangle(void)
26 : {
27 : zend_class_entry ce, *class_entry;
28 :
29 194 : INIT_NS_CLASS_ENTRY(ce, "Pango", "Rectangle", class_Pango_Rectangle_methods);
30 : #if (PHP_VERSION_ID >= 80400)
31 194 : class_entry = zend_register_internal_class_with_flags(&ce, NULL, ZEND_ACC_FINAL|ZEND_ACC_READONLY_CLASS);
32 : #else
33 : class_entry = zend_register_internal_class_ex(&ce, NULL);
34 : #if (PHP_VERSION_ID >= 80200)
35 : class_entry->ce_flags |= ZEND_ACC_FINAL|ZEND_ACC_READONLY_CLASS;
36 : #elif (PHP_VERSION_ID >= 80100)
37 : class_entry->ce_flags |= ZEND_ACC_FINAL;
38 : #endif
39 : #endif
40 :
41 : zval property_x_default_value;
42 194 : ZVAL_UNDEF(&property_x_default_value);
43 194 : zend_string *property_x_name = zend_string_init("x", sizeof("x") - 1, 1);
44 : #if (PHP_VERSION_ID >= 80200)
45 194 : zend_declare_typed_property(class_entry, property_x_name, &property_x_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
46 : #elif (PHP_VERSION_ID >= 80100)
47 : zend_declare_typed_property(class_entry, property_x_name, &property_x_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
48 : #endif
49 : zend_string_release(property_x_name);
50 :
51 : zval property_y_default_value;
52 194 : ZVAL_UNDEF(&property_y_default_value);
53 194 : zend_string *property_y_name = zend_string_init("y", sizeof("y") - 1, 1);
54 : #if (PHP_VERSION_ID >= 80200)
55 194 : zend_declare_typed_property(class_entry, property_y_name, &property_y_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
56 : #elif (PHP_VERSION_ID >= 80100)
57 : zend_declare_typed_property(class_entry, property_y_name, &property_y_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
58 : #endif
59 : zend_string_release(property_y_name);
60 :
61 : zval property_width_default_value;
62 194 : ZVAL_UNDEF(&property_width_default_value);
63 194 : zend_string *property_width_name = zend_string_init("width", sizeof("width") - 1, 1);
64 : #if (PHP_VERSION_ID >= 80200)
65 194 : zend_declare_typed_property(class_entry, property_width_name, &property_width_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
66 : #elif (PHP_VERSION_ID >= 80100)
67 : zend_declare_typed_property(class_entry, property_width_name, &property_width_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
68 : #endif
69 : zend_string_release(property_width_name);
70 :
71 : zval property_height_default_value;
72 194 : ZVAL_UNDEF(&property_height_default_value);
73 194 : zend_string *property_height_name = zend_string_init("height", sizeof("height") - 1, 1);
74 : #if (PHP_VERSION_ID >= 80200)
75 194 : zend_declare_typed_property(class_entry, property_height_name, &property_height_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
76 : #elif (PHP_VERSION_ID >= 80100)
77 : zend_declare_typed_property(class_entry, property_height_name, &property_height_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
78 : #endif
79 : zend_string_release(property_height_name);
80 :
81 : zval property_ascent_default_value;
82 194 : ZVAL_UNDEF(&property_ascent_default_value);
83 194 : zend_string *property_ascent_name = zend_string_init("ascent", sizeof("ascent") - 1, 1);
84 : #if (PHP_VERSION_ID >= 80200)
85 194 : zend_declare_typed_property(class_entry, property_ascent_name, &property_ascent_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
86 : #elif (PHP_VERSION_ID >= 80100)
87 : zend_declare_typed_property(class_entry, property_ascent_name, &property_ascent_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
88 : #endif
89 : zend_string_release(property_ascent_name);
90 :
91 : zval property_descent_default_value;
92 194 : ZVAL_UNDEF(&property_descent_default_value);
93 194 : zend_string *property_descent_name = zend_string_init("descent", sizeof("descent") - 1, 1);
94 : #if (PHP_VERSION_ID >= 80200)
95 194 : zend_declare_typed_property(class_entry, property_descent_name, &property_descent_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
96 : #elif (PHP_VERSION_ID >= 80100)
97 : zend_declare_typed_property(class_entry, property_descent_name, &property_descent_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
98 : #endif
99 : zend_string_release(property_descent_name);
100 :
101 : zval property_leftBearing_default_value;
102 194 : ZVAL_UNDEF(&property_leftBearing_default_value);
103 194 : zend_string *property_leftBearing_name = zend_string_init("leftBearing", sizeof("leftBearing") - 1, 1);
104 : #if (PHP_VERSION_ID >= 80200)
105 194 : zend_declare_typed_property(class_entry, property_leftBearing_name, &property_leftBearing_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
106 : #elif (PHP_VERSION_ID >= 80100)
107 : zend_declare_typed_property(class_entry, property_leftBearing_name, &property_leftBearing_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
108 : #endif
109 : zend_string_release(property_leftBearing_name);
110 :
111 : zval property_rightBearing_default_value;
112 194 : ZVAL_UNDEF(&property_rightBearing_default_value);
113 194 : zend_string *property_rightBearing_name = zend_string_init("rightBearing", sizeof("rightBearing") - 1, 1);
114 : #if (PHP_VERSION_ID >= 80200)
115 194 : zend_declare_typed_property(class_entry, property_rightBearing_name, &property_rightBearing_default_value, ZEND_ACC_PUBLIC|ZEND_ACC_READONLY, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
116 : #elif (PHP_VERSION_ID >= 80100)
117 : zend_declare_typed_property(class_entry, property_rightBearing_name, &property_rightBearing_default_value, ZEND_ACC_PUBLIC, NULL, (zend_type) ZEND_TYPE_INIT_MASK(MAY_BE_LONG));
118 : #endif
119 : zend_string_release(property_rightBearing_name);
120 :
121 194 : return class_entry;
122 : }
123 :
124 194 : static zend_class_entry *register_class_Pango_RoundingMode(void)
125 : {
126 194 : zend_class_entry *class_entry = zend_register_internal_enum("Pango\\RoundingMode", IS_UNDEF, NULL);
127 :
128 194 : zend_enum_add_case_cstr(class_entry, "Inclusive", NULL);
129 :
130 194 : zend_enum_add_case_cstr(class_entry, "Nearest", NULL);
131 :
132 194 : return class_entry;
133 : }
|