gf_draw_span
![]() |
![]() |
![]() |
![]() |
gf_draw_span()
Draw a span
Synopsis:
#include <gf/gf.h>
int gf_draw_span (
gf_context_t context,
int x1,
int x2,
int y );
Arguments:
- context
- The graphics context to use.
- x1
- The left x value of the span.
- x2
- The right x value of the span.
- y
- The y value of the span.
Library:
gf
Description:
This function draws a span in the context's current foreground color. A span is a horizontal run of pixels with a fixed height of one pixel.
Returns:
- GF_ERR_OK
- Success.
- GF_ERR_PARM
- Invalid span; x1 and x2 are inverted
- GF_ERR_NOLOCK
- The hardware isn't locked; check to ensure gf_draw_begin() was called successfully.
Classification:
QNX Graphics Framework
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | Yes |
See also:
gf_context_set_linedash(), gf_context_set_linejoin(), gf_draw_poly_fill(), gf_draw_spanlist(), gf_point_t
“Drawing lines and polygons” in the Basic Drawing chapter.
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)
