gltk 0.3
a C++ widget library built on GLUT
Protected Member Functions
gltk::glutWindow Class Reference

Abstraction of underlying system window. More...

#include <glutwindow.hh>

Inheritance diagram for gltk::glutWindow:
gltk::glArea gltk::Window

List of all members.

Protected Member Functions

virtual void on_display_func ()
 called to implement draw
virtual void on_reshape_func (int width, int height)
 called when size is given
virtual void on_mouse_func (int button, int state, int x, int y)
 called for mouse button
virtual void on_motion_func (int x, int y)
 called for grabbed movement
virtual void on_passive_func (int x, int y)
 called for non-grabbed movement
virtual void on_keyboard_func (unsigned char key, int x, int y)
 called for key press
virtual void on_special_func (int key, int x, int y)
 called for special keye
virtual void on_entry_func (int state)
 called when pointer enter/leave
void set_events (unsigned mask)
 set the events to handle
void add_events (unsigned mask)
 set the events to handle
void create (int parent_win_id, int x, int y, int width, int height)
 create the GLUT window
void create (std::string const &name, int width, int height)
 create the GLUT window
void destroy ()
 destroy the GLUT window
void destroy_all ()
 exit?
void set_current ()
 make it the current window
void move (int x, int y)
 move the window
void resize (int width, int height)
 change the size of mapped window
void redisplay ()
 post redisplay

Detailed Description

Abstraction of underlying system window.

This is the start of abstraction layer over a GLUT window or subwindow. It provides handles for all callbacks from GLUT.

 All Classes Namespaces Files Functions Variables Enumerations Enumerator