QCAD
Open Source 2D CAD
simple.js File Reference

Functions

void createDocument ()
 Creates an (off-screen) document. More...
 
void createDocumentInterface ()
 Creates an (off-screen) document with a document interface that can be used to import / export to / from files or graphics scenes and views. More...
 
void createOffScreenDocument ()
 
void disableInput ()
 Disables the main application window to prevent user input. More...
 
void enableInput ()
 Enables the main application window to allow user input. More...
 
void getDocument ()
 Returns the current RDocument or undefined. More...
 
void getDocumentInterface ()
 Returns the current RDocumentInterface or undefined. More...
 
void getGraphicsView ()
 Returns the current or last active RGraphicsView. More...
 
void getMainWindow ()
 Returns a pointer to the main application window (RMainWindowQt). More...
 
void isInputEnabled ()
 Returns true if user input is enabled. More...
 
void sleep (void d)
 Sleeps for the indicated time in milliseconds. More...
 
void update ()
 Keeps the user interface up to date during long operations. More...
 
void warning (void msg)
 Prints a warning to stdout. More...
 

Function Documentation

◆ createOffScreenDocument()

void createOffScreenDocument ( )