Draw functions

If you want to go ahead and make use of these draw commands directly, you can use the following:

Stroke function Fill function Notes
NkStrokeLine() Draw a single line segment in the specified color.
NkStrokeCurve() Draw a single curve segment in the specified color.
NkStrokeRect()

NkFillRect()

NkFillRectMultiColor() 

Draw a rectangle (or square) outline, or solid rectangle in the specified color(s). To draw an outlined, filled rectangle, call NkFillRect() and then NkStrokeRect() using the same coordinates. NkFillRectMultiColor() is a quick way to draw gradients in a rectangle.
NkStrokeCircle() NkFillCircle() Draw a circle (or ellipse) outline or fill in the specified color.
NkStrokeArc() NkFillArc() Outline, or fill, an arc around a central point in the specified color.
NkStrokeTriangle() NkFillTriangle() Draw a triangle outline or a solid triangle in the specified color.
NkStrokePolyline() Draw a series of line segments in the specified color.
NkStrokePolygon() NkFillPolygon() Outline or fill a shape with a list of points defining its boundary.
NkDrawImage() Draw an image into a specified rectangle and background color.
NkDrawText() Draw a text string with the specified background and foreground colors.

 

Now that we've explored all of the widgets and drawing capabilities, we could jump right in to building a full application. However, Nuklear has one other cool feature that we should look at: the ability to change the interface design using skinning.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.17.176.72