Classes | |
class Preview | |
Functions | |
def DrawText (name, string, position, displayMode="Screen", angle=0.0, justification="Left", colour=(0.0, 0.0, 0.0), size=12) | |
Function Documentation
◆ DrawText()
def shipCreateShip.Preview.DrawText | ( | name, | |
string, | |||
position, | |||
displayMode = "Screen" , |
|||
angle = 0.0 , |
|||
justification = "Left" , |
|||
colour = (0.0, 0.0, 0.0) , |
|||
size = 12 |
|||
) |
Draw a text in the screen.
Keyword arguments:
name -- Name (label) of the object to generate.
string -- Text to draw (it is strongly recommended to use format u'').
position -- Point to draw the text.
angle -- Counter clockwise rotation of text.
justification -- Alignment of the text ("Left", "Right" or "Center").
colour -- Colour of the text.
size -- Font size (in points pt).
Returns:
A FreeCAD annotation object
Referenced by shipCreateShip.Preview.Preview.update().