Node Drawing Funcs

class lwsdk.LWNodeDrawFuncs(*args)

Bases: object

Proxy of C++ PCore::LWNodeDrawFuncs class

 blitNode(NodeID node)

Blit the node into the editor area. The node will be the only node drawn on the area, and all the other nodes will remain below this node.

 drawBox(NodeID node, int c, int x, int y, int w, int h)

Draw a solid rectangle. The color c is specified as one of the palette colors defined in lwpanel.h.

 drawLine(NodeID node, int c, int x, int y, int x2, int y2)

Draw a line connecting the endpoints. The color c is specified as one of the palette colors defined in lwpanel.h.

 drawPixel(NodeID node, int c, int x, int y)

Draw a pixel. The coordinates are relative to the upper-left corner of the node preview area. The color c is specified as one of the palette colors defined in lwpanel.h.

 drawRGBBox(NodeID node, int r, int g, int b, int x, int y, int w, int h)

Draw a solid rectangle with the given color.

 drawRGBPixel(NodeID node, int r, int g, int b, int x, int y)

Draw a pixel. The coordinates are relative to the upper-left corner of the node preview area. The color is specified as levels of red, green and blue between 0 and 255.

 drawText(NodeID node, char string, int c, int x, int y)

Render a line of text. The color c is specified as one of the palette colors defined in lwpanel.h.

 textHeight(NodeID node, char string) → int

The pixel height of the string in the font used by panels.

 textWidth(NodeID node, char string) → int

The pixel width of the string in the font used by panels.

Previous topic

Layout Monitor

Next topic

Node Input Funcs

This Page