|
| | OpenGLArea (Component &aParent) |
| |
| virtual | ~OpenGLArea () |
| |
| bool | write_gl2ps (const std::string &, const std::string &) |
| |
| | Component (const std::string &aType) |
| |
| | Component (const std::string &aType, Component &aParent) |
| |
| virtual | ~Component () |
| |
| std::string | name () const |
| |
| void | setName (const std::string &aName) |
| |
| const std::string & | type () const |
| |
| HWND | nativeWindow () |
| |
| Component * | parent () const |
| |
| virtual void | show () |
| |
| void | hide () |
| |
| virtual bool | size (unsigned int &aWidth, unsigned int &aHeight) |
| |
| virtual bool | position (int &aX, int &aY) |
| |
| Component * | findFather (const std::string &aType) |
| |
| bool | setBackground (double aR, double aG, double aB) |
| |
| void | addCallback (const std::string &aName, Callback aFunction, void *aTag) |
| |
| void | removeCallback (const std::string &aName, Callback aFunction, void *aTag) |
| |
| bool | executeCallbacks (const std::string &aName, CallbackData &aData) |
| |
| bool | hasCallbacks (const std::string &aName) const |
| |
Definition at line 626 of file WinTk.
◆ OpenGLArea() [1/2]
| tools::WinTk::OpenGLArea::OpenGLArea |
( |
Component & |
aParent | ) |
|
|
inline |
Definition at line 628 of file WinTk.
636 static char sOpenGLAreaClassName[] =
"WinTk::OpenGLArea";
637 static bool done =
false;
640 wc.style = CS_HREDRAW | CS_VREDRAW;
641 wc.lpfnWndProc = (WNDPROC)OpenGLArea::proc;
644 wc.hInstance = GetWindowInstance(
parent),
645 wc.hIcon = LoadIcon(NULL,IDI_APPLICATION);
646 wc.hCursor = LoadCursor(NULL,IDC_ARROW);
647 wc.hbrBackground = GetSysColorBrush(COLOR_BTNFACE);
648 wc.lpszMenuName = sOpenGLAreaClassName;
649 wc.lpszClassName = sOpenGLAreaClassName;
650 ::RegisterClass(&wc);
656 ::GetClientRect(
parent,&rect);
657 fWindow = ::CreateWindow(sOpenGLAreaClassName,
659 WS_CHILD | WS_VISIBLE,
661 rect.right-rect.left,
662 rect.bottom-rect.top,
664 GetWindowInstance(
parent),
667 ::SetWindowLongPtr(
fWindow,GWLP_USERDATA,LONG_PTR(
this));
671 if( fHDC && SetWindowPixelFormat(fHDC) ) {
672 fContext = ::wglCreateContext(fHDC);
◆ ~OpenGLArea()
| virtual tools::WinTk::OpenGLArea::~OpenGLArea |
( |
| ) |
|
|
inlinevirtual |
Definition at line 675 of file WinTk.
676 if(wglGetCurrentContext()!=NULL) wglMakeCurrent(NULL,NULL);
678 wglDeleteContext(fContext);
◆ OpenGLArea() [2/2]
| tools::WinTk::OpenGLArea::OpenGLArea |
( |
OpenGLArea & |
a_from | ) |
|
|
inlineprotected |
◆ operator=()
◆ write_gl2ps()
| bool tools::WinTk::OpenGLArea::write_gl2ps |
( |
const std::string & |
, |
|
|
const std::string & |
|
|
) |
| |
The documentation for this class was generated from the following file:
- /Users/barrand/private/dev/softinex/g4tools/g4tools/tools/Windows/WinTk