Window & OpenGL View
The library-owned CAD window (CadWndCreate), view/zoom control, dock widgets, and window-level state.
54 functions.
CadCWCreateCreates the command window inside a host panel.
CadCWDeleteDisable the command window (Vecad CadCWDelete): hide it and unlink it from every view so input stops routing there.
CadCWPutTextSets the text of the command window.
CadCWResizeResizes the command window to fill its host panel.
CadNavCreateNavigator overview panel embedded in the host (Vecad CadNav*).
CadNavGetParamReturns a navigator-panel parameter.
CadNavResizeResizes the navigator panel to its host area.
CadNavReturnFocusWhere the navigator returns keyboard focus to after the user drives it (so typing lands back in the host's CAD window, not the aerial view).
CadNavSetLinkLink the navigator to a CAD window — rebind to the active view + repaint.
CadPenSelectorCreatePen selector create.
CadPutWindowSets the value of the host window.
CadShowBlockDialogVecad CadShowBlockDialog — modal block manager (BlockListPanel in a QDialog, mirroring CadShowLayerDialog).
CadShowEmptyRectCadSnapGetIndMode lives in api_window.cpp (needs the view's snap engine).
CadShowLayerDialogShow layer dialog.
CadShowOptionsDialogVecad CadShowOptionsDialog — display / object-snap preferences.
CadShowPropDialogModal Properties window (CAD_CMD_ENTPROP / right-click "Properties…") — reuse the PropertiesPanel inside a QDialog, mirroring CadShowLayerDialog.
CadStatusBarCreateStatus bar create.
CadViewGetAngleHorReturns the angle hor of the view.
CadViewGetAngleVerReturns the angle vertex of the view.
CadViewGetPointReturns the point of the view.
CadViewGetPointXReturns the point x of the view.
CadViewGetPointYReturns the point y of the view.
CadViewGetPointZReturns the point z of the view.
CadViewPutAnglesSets the angles of the view.
CadViewPutPointSets the point of the view.
CadViewRectZooms the window to show the given world-space rectangle.
CadViewScaleSets the window's view scale.
CadWinCloseAsks whether the host-owned window may close (WM_CLOSE).
CadWinCreateBinds a host-owned window to the drawing — the second integration mode: the host keeps its window and message loop, forwards each message to CadWin*, and yucad renders offscreen OpenGL into the window's DC.
CadWinDestroyUnbinds the host-owned window (call from WM_DESTROY).
CadWinDrawRenders the drawing into the given device context and rectangle.
CadWinHScrollForwards WM_HSCROLL from the host-owned window.
CadWinKeyDownForwards WM_KEYDOWN from the host-owned window.
CadWinKeyUpForwards WM_KEYUP from the host-owned window.
CadWinKillFocusForwards WM_KILLFOCUS from the host-owned window.
CadWinLButtonDblClkForwards WM_LBUTTONDBLCLK from the host-owned window.
CadWinLButtonDownForwards WM_LBUTTONDOWN (starts a pan drag in viewer mode) from the host-owned window.
CadWinLButtonUpForwards WM_LBUTTONUP from the host-owned window.
CadWinMButtonDownForwards WM_MBUTTONDOWN (starts a pan drag) from the host-owned window.
CadWinMButtonUpForwards WM_MBUTTONUP from the host-owned window.
CadWinMouseLeaveForwards WM_MOUSELEAVE from the host-owned window.
CadWinMouseMoveForwards WM_MOUSEMOVE (drives panning) from the host-owned window.
CadWinMouseWheelForwards WM_MOUSEWHEEL (zooms about the cursor) from the host-owned window.
CadWinPaintRenders the drawing and blits it into the host-owned window (call from WM_PAINT).
CadWinRButtonDownForwards WM_RBUTTONDOWN from the host-owned window.
CadWinRButtonUpForwards WM_RBUTTONUP from the host-owned window.
CadWinSetFocusForwards WM_SETFOCUS from the host-owned window.
CadWinSizeForwards WM_SIZE — resizes the render surface to the new client size.
CadWinTimerForwards WM_TIMER from the host-owned window.
CadWinVScrollForwards WM_VSCROLL from the host-owned window.
CadWndCreateCreates the library-owned CAD child window inside the host window and returns its HWND — yucad paints and handles all input for it (viewport, grid, crosshair, commands).
CadWndRedrawForces a full repaint of the CAD window.
CadWndResizeNotifies the CAD window that its host area changed size.
CadWndSetFocusSets the focus of the CAD window.