@@ -71,6 +71,10 @@ ZEND_BEGIN_ARG_INFO_EX(format_color_arginfo, 0, 0, 1)
7171 ZEND_ARG_INFO (0 , color )
7272ZEND_END_ARG_INFO ()
7373
74+ ZEND_BEGIN_ARG_INFO_EX (format_size_arginfo , 0 , 0 , 1 )
75+ ZEND_ARG_INFO (0 , size )
76+ ZEND_END_ARG_INFO ()
77+
7478ZEND_BEGIN_ARG_INFO_EX (format_number_arginfo , 0 , 0 , 1 )
7579 ZEND_ARG_INFO (0 , format )
7680ZEND_END_ARG_INFO ()
@@ -181,9 +185,9 @@ PHP_METHOD(vtiful_format, align)
181185}
182186/* }}} */
183187
184- /** {{{ \Vtiful\Kernel\Format::color (int $color)
188+ /** {{{ \Vtiful\Kernel\Format::fontColor (int $color)
185189 */
186- PHP_METHOD (vtiful_format , color )
190+ PHP_METHOD (vtiful_format , fontColor )
187191{
188192 zend_long color ;
189193
@@ -243,6 +247,40 @@ PHP_METHOD(vtiful_format, background)
243247}
244248/* }}} */
245249
250+ /** {{{ \Vtiful\Kernel\Format::fontSize(double $size)
251+ */
252+ PHP_METHOD (vtiful_format , fontSize )
253+ {
254+ double size ;
255+
256+ ZEND_PARSE_PARAMETERS_START (1 , 1 )
257+ Z_PARAM_DOUBLE (size )
258+ ZEND_PARSE_PARAMETERS_END ();
259+
260+ ZVAL_COPY (return_value , getThis ());
261+
262+ format_object * obj = Z_FORMAT_P (getThis ());
263+
264+ if (obj -> ptr .format ) {
265+ format_set_font_size (obj -> ptr .format , size );
266+ }
267+ }
268+ /* }}} */
269+
270+ /** {{{ \Vtiful\Kernel\Format::strikeout()
271+ */
272+ PHP_METHOD (vtiful_format , strikeout )
273+ {
274+ ZVAL_COPY (return_value , getThis ());
275+
276+ format_object * obj = Z_FORMAT_P (getThis ());
277+
278+ if (obj -> ptr .format ) {
279+ format_set_font_strikeout (obj -> ptr .format );
280+ }
281+ }
282+ /* }}} */
283+
246284/** {{{ \Vtiful\Kernel\Format::wrap()
247285 */
248286PHP_METHOD (vtiful_format , wrap )
@@ -271,16 +309,18 @@ PHP_METHOD(vtiful_format, toResource)
271309/** {{{ format_methods
272310*/
273311zend_function_entry format_methods [] = {
274- PHP_ME (vtiful_format , __construct , format_construct_arginfo , ZEND_ACC_PUBLIC )
275- PHP_ME (vtiful_format , wrap , NULL , ZEND_ACC_PUBLIC )
276- PHP_ME (vtiful_format , bold , NULL , ZEND_ACC_PUBLIC )
277- PHP_ME (vtiful_format , italic , NULL , ZEND_ACC_PUBLIC )
278- PHP_ME (vtiful_format , align , format_align_arginfo , ZEND_ACC_PUBLIC )
279- PHP_ME (vtiful_format , color , format_color_arginfo , ZEND_ACC_PUBLIC )
280- PHP_ME (vtiful_format , number , format_number_arginfo , ZEND_ACC_PUBLIC )
281- PHP_ME (vtiful_format , underline , format_underline_arginfo , ZEND_ACC_PUBLIC )
282- PHP_ME (vtiful_format , toResource , NULL , ZEND_ACC_PUBLIC )
283- PHP_ME (vtiful_format , background , format_background_arginfo , ZEND_ACC_PUBLIC )
312+ PHP_ME (vtiful_format , __construct , format_construct_arginfo , ZEND_ACC_PUBLIC )
313+ PHP_ME (vtiful_format , wrap , NULL , ZEND_ACC_PUBLIC )
314+ PHP_ME (vtiful_format , bold , NULL , ZEND_ACC_PUBLIC )
315+ PHP_ME (vtiful_format , italic , NULL , ZEND_ACC_PUBLIC )
316+ PHP_ME (vtiful_format , align , format_align_arginfo , ZEND_ACC_PUBLIC )
317+ PHP_ME (vtiful_format , number , format_number_arginfo , ZEND_ACC_PUBLIC )
318+ PHP_ME (vtiful_format , fontColor , format_color_arginfo , ZEND_ACC_PUBLIC )
319+ PHP_ME (vtiful_format , fontSize , format_size_arginfo , ZEND_ACC_PUBLIC )
320+ PHP_ME (vtiful_format , strikeout , NULL , ZEND_ACC_PUBLIC )
321+ PHP_ME (vtiful_format , underline , format_underline_arginfo , ZEND_ACC_PUBLIC )
322+ PHP_ME (vtiful_format , toResource , NULL , ZEND_ACC_PUBLIC )
323+ PHP_ME (vtiful_format , background , format_background_arginfo , ZEND_ACC_PUBLIC )
284324 PHP_FE_END
285325};
286326/* }}} */
0 commit comments