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()