openEmbroider  0.1
an open source embroidery software
OE_display Class Referenceabstract
Inheritance diagram for OE_display:
OE_commandDisplay OE_editDisplay

Public Member Functions

 OE_display ()
 
 OE_display (OE_document *document, OE_controller *controller)
 
virtual ~OE_display ()
 
bool setDocument (OE_document *document)
 draw the document on screen More...
 
bool setController (OE_controller *controller)
 
virtual void mouse_Pos (double x, double y)
 
virtual void mouse_Button (int button, int action, int mods)
 
virtual void scroll (double xoffset, double yoffset)
 
virtual void resize (int width, int height)
 
virtual void key (int key, int scancode, int action, int mods)
 
virtual bool draw ()=0
 
virtual void showAll ()
 move and zoom to see the entire document
 

Static Public Attributes

static float cx
 
static float cy = 0.0
 
static float zoom = 1.0
 
static int mouseX
 
static int mouseY
 
static int mouseXInit
 
static int mouseYInit = -1
 
static bool pan = false
 
static int width
 
static int height = 0
 

Protected Attributes

GLFWwindow * window
 
const GLFWvidmode * mode
 
OE_documentdocument = NULL
 
OE_controllercontroller = NULL
 

Constructor & Destructor Documentation

OE_display::OE_display ( )

Default constructor

OE_display::~OE_display ( )
virtual

Default destructor

Member Function Documentation

bool OE_display::setDocument ( OE_document document)

draw the document on screen

Returns
true if all is ok

The documentation for this class was generated from the following files: