]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/xywindow.h
mime: fix mimetype and file type association
[xonotic/netradiant.git] / radiant / xywindow.h
index 3eefc11e015a4d0e15127f497e2630cda84ae4d0..ac059329518178de2d63c32843579c56352f6be8 100644 (file)
@@ -63,7 +63,7 @@ inline const char* ViewType_getTitle( VIEWTYPE viewtype ){
 
 class XYWnd
 {
-ui::Widget m_gl_widget;
+ui::GLArea m_gl_widget;
 guint m_sizeHandler;
 guint m_exposeHandler;
 
@@ -77,7 +77,7 @@ XYWnd();
 void queueDraw(){
        m_deferredDraw.draw();
 }
-ui::Widget GetWidget(){
+ui::GLArea GetWidget(){
        return m_gl_widget;
 }
 
@@ -124,6 +124,8 @@ void Zoom_End();
 bool m_zoom_started;
 guint m_zoom_focusOut;
 
+void Redraw();
+
 void SetActive( bool b ){
        m_bActive = b;
 };
@@ -150,8 +152,8 @@ guint m_chasemouse_handler;
 void ChaseMouse();
 bool chaseMouseMotion( int pointx, int pointy );
 
-void updateModelview();
-void updateProjection();
+void updateModelview(bool reconstruct = true);
+void updateProjection(bool reconstruct = true);
 Matrix4 m_projection;
 Matrix4 m_modelview;
 
@@ -224,7 +226,7 @@ int Height(){
 Signal0 onDestroyed;
 Signal3<const WindowVector&, ButtonIdentifier, ModifierFlags> onMouseDown;
 void mouseDown( const WindowVector& position, ButtonIdentifier button, ModifierFlags modifiers );
-typedef Member3<XYWnd, const WindowVector&, ButtonIdentifier, ModifierFlags, void, &XYWnd::mouseDown> MouseDownCaller;
+typedef Member<XYWnd, void(const WindowVector&, ButtonIdentifier, ModifierFlags), &XYWnd::mouseDown> MouseDownCaller;
 };
 
 inline void XYWnd_Update( XYWnd& xywnd ){