# Visualization Library A lightweight C++ OpenGL middleware for 2D/3D graphics | [Home] [Tutorials] [All Classes] [Grouped Classes]

# vlWX::vlWXGLCanvas Class Reference

The vlWXGLCanvas class implements a vl::OpenGLContext using the wxWidgets library. More...

`#include <vlWXGLCanvas.hpp>`

Inheritance diagram for vlWX::vlWXGLCanvas:

List of all members.

## Public Member Functions
| vlWXGLCanvas (wxWindow *parent, const wxGLContext *shared, wxWindowID id=wxID_ANY, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, int *attribList=0, const wxString &name=wxT("vlWXGLCanvas"), const wxPalette &palette=wxNullPalette)
| ~vlWXGLCanvas ()
void | OnPaint (wxPaintEvent &ev)
void | OnSize (wxSizeEvent &ev)
void | OnEraseBackground (wxEraseEvent &ev)
void | OnKeyDown (wxKeyEvent &ev)
void | OnKeyUp (wxKeyEvent &ev)
void | OnMouseMotion (wxMouseEvent &ev)
void | OnMouseDown (wxMouseEvent &ev)
void | OnMouseUp (wxMouseEvent &ev)
void | OnMouseWheel (wxMouseEvent &ev)
void | OnMouseEnter (wxMouseEvent &ev)
void | OnIdle (wxIdleEvent &ev)
void | OnDropFiles (wxDropFilesEvent &ev)
bool | setFullscreen (bool fullscreen)
void | quitApplication ()
| Asks to the windowing system that is managing the OpenGLContext to quit the application.
void | makeCurrent ()
void | swapBuffers ()
void | getFocus ()
void | setMousePosition (int x, int y)
void | update ()
void | setWindowTitle (const vl::String &text)
void | show ()
void | hide ()
void | setPosition (int x, int y)
void | setSize (int w, int h)
vl::ivec2 | position () const
void | setMouseVisible (bool visible)

## Detailed Description

The vlWXGLCanvas class implements a vl::OpenGLContext using the wxWidgets library.

## Constructor & Destructor Documentation

vlWXGLCanvas::vlWXGLCanvas | ( | wxWindow * | parent,
|  | const wxGLContext * | shared,
|  | wxWindowID | id = `wxID_ANY`,
|  | const wxPoint & | pos = `wxDefaultPosition`,
|  | const wxSize & | size = `wxDefaultSize`,
|  | long | style = `0`,
|  | int * | attribList = `0`,
|  | const wxString & | name = `wxT("vlWXGLCanvas")`,
|  | const wxPalette & | palette = `wxNullPalette` |
| ) |  |  |

vlWX::vlWXGLCanvas::~vlWXGLCanvas | ( |  | ) | `[inline]`

## Member Function Documentation

void vlWXGLCanvas::OnPaint | ( | wxPaintEvent & | ev | ) |

void vlWXGLCanvas::OnSize | ( | wxSizeEvent & | ev | ) |

void vlWXGLCanvas::OnEraseBackground | ( | wxEraseEvent & | ev | ) |

void vlWXGLCanvas::OnKeyDown | ( | wxKeyEvent & | ev | ) |

void vlWXGLCanvas::OnKeyUp | ( | wxKeyEvent & | ev | ) |

void vlWXGLCanvas::OnMouseMotion | ( | wxMouseEvent & | ev | ) |

void vlWXGLCanvas::OnMouseDown | ( | wxMouseEvent & | ev | ) |

void vlWXGLCanvas::OnMouseUp | ( | wxMouseEvent & | ev | ) |

void vlWXGLCanvas::OnMouseWheel | ( | wxMouseEvent & | ev | ) |

void vlWX::vlWXGLCanvas::OnMouseEnter | ( | wxMouseEvent & | ev | ) |

void vlWXGLCanvas::OnIdle | ( | wxIdleEvent & | ev | ) |

void vlWXGLCanvas::OnDropFiles | ( | wxDropFilesEvent & | ev | ) |

bool vlWXGLCanvas::setFullscreen | ( | bool | fullscreen | ) | `[virtual]`

Reimplemented from vl::OpenGLContext.

void vlWXGLCanvas::quitApplication | ( |  | ) | `[virtual]`

Asks to the windowing system that is managing the OpenGLContext to quit the application.

Reimplemented from vl::OpenGLContext.

void vlWXGLCanvas::makeCurrent | ( |  | ) | `[virtual]`

Reimplemented from vl::OpenGLContext.

void vlWXGLCanvas::swapBuffers | ( |  | ) | `[virtual]`

Reimplemented from vl::OpenGLContext.

void vlWXGLCanvas::getFocus | ( |  | ) | `[virtual]`

Reimplemented from vl::OpenGLContext.

void vlWXGLCanvas::setMousePosition | ( | int | x,
|  | int | y |
| ) |  |  | `[virtual]`

Reimplemented from vl::OpenGLContext.

void vlWXGLCanvas::update | ( |  | ) | `[virtual]`

Reimplemented from vl::OpenGLContext.

void vlWXGLCanvas::setWindowTitle | ( | const vl::String & | text | ) | `[virtual]`

Reimplemented from vl::OpenGLContext.

void vlWXGLCanvas::show | ( |  | ) | `[virtual]`

Reimplemented from vl::OpenGLContext.

void vlWXGLCanvas::hide | ( |  | ) | `[virtual]`

Reimplemented from vl::OpenGLContext.

void vlWXGLCanvas::setPosition | ( | int | x,
|  | int | y |
| ) |  |  | `[virtual]`

Reimplemented from vl::OpenGLContext.

void vlWXGLCanvas::setSize | ( | int | w,
|  | int | h |
| ) |  |  | `[virtual]`

Reimplemented from vl::OpenGLContext.

ivec2 vlWXGLCanvas::position | ( |  | ) | const`[virtual]`

Reimplemented from vl::OpenGLContext.

void vlWXGLCanvas::setMouseVisible | ( | bool | visible | ) | `[virtual]`

Reimplemented from vl::OpenGLContext.

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

- E:/VisualizationLibrary/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlWX/vlWXGLCanvas.hpp
- E:/VisualizationLibrary/BuildSystem/VL_DISTRO/Visualization_Library_SDK/src/vlWX/vlWXGLCanvas.cpp

Visualization Library v2009.08 Reference Documentation
Copyright 2005-2009 Michele Bosi. All rights reserved.
Updated on Sun Nov 8 14:29:21 2009.
Permission is granted to use this page to write and publish articles regarding Visualization Library.