5 #ifndef __uicrosslines__ 6 #define __uicrosslines__ 8 #include "../../lib/vstguifwd.h" 10 #if VSTGUI_LIVE_EDITING 12 #include "../../lib/crect.h" 13 #include "../../lib/ccolor.h" 14 #include "../../lib/cview.h" 15 #include "../../lib/iviewlistener.h" 21 class UICrossLines :
public CView,
public IViewListenerAdapter
29 UICrossLines (CViewContainer* editView, int32_t style,
const CColor& background = kWhiteCColor,
const CColor& foreground = kBlackCColor);
30 ~UICrossLines ()
override;
32 int32_t getStyle ()
const {
return style; }
34 void update (UISelection* selection);
35 void update (
const CPoint& point);
36 void invalid ()
override;
37 void draw (CDrawContext* pContext)
override;
39 void drawLines (CDrawContext* pContext,
const CRect& size,
const CRect& selectionSize);
40 void viewSizeChanged (CView* view,
const CRect& oldSize)
override;
42 CViewContainer* editView;
52 #endif // VSTGUI_LIVE_EDITING 54 #endif // __uicrosslines__ Definition: customcontrols.cpp:8