gf_context_set_penwidth()

Set the pen width

Synopsis:

#include <gf/gf.h>

unsigned gf_context_set_penwidth( gf_context_t context,
                                  unsigned  w );

Arguments:

context
The draw context to set the pen width for.
w
The width of the line, in pixels. Set to 0 to reset the pen width to the default rendering of thin primitives.

Library:

gf

Description:

This function replaces the pixel width of lines for draw primitives such as lines and points.


Note:
  • Currently pen width applies only to polylines on hardware that has accelerated thick line support.
  • The maximum pen width is determined by the hardware. No drawing occurs if the pen width is set to a value that exceeds the maximum. See the Hardware Capabilities appendix for your hardware target's limitations.

Returns:

The previous pen width.

Classification:

QNX Graphics Framework

Safety:
Interrupt handler No
Signal handler No
Thread Yes

See also:

gf_draw_polyline()

Hardware Capabilities appendix