Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_context_set_capstyle.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_context_set_capstyle.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_context_set_capstyle.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_context_set_capstyle.html on line 8
Set the thick line cap style
#include <gf/gf.h>
void gf_context_set_capstyle( gf_context_t context,
int cap_style );
- context
- The draw context to set the cap style for.
- cap_style
- The cap style for thick lines. Can be one of:
- GF_CONTEXT_CAPSTYLE_BUTT — line caps end without any extension (the default style)
- GF_CONTEXT_CAPSTYLE_ROUND — line caps are rounded with a semi-circle
- GF_CONTEXT_CAPSTYLE_SQUARE — line caps are square, but extend beyond the line end by half the width of the line
gf
This function replaces the line cap style for the specified draw context. The cap style determines how the caps at the end of polylines are rendered. This figure illustrates the cap styles:
Line Cap Styles
QNX Graphics Framework
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
Yes |
gf_context_set_linejoin()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/gf/dev_guide/api/gf_context_set_capstyle.html on line 121
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/gf/dev_guide/api/gf_context_set_capstyle.html on line 121