ShapesGL

A GL toggle button

Constructors

this
this(TestGL testGL)
Undocumented in source.

Members

Functions

activateItemCallback
void activateItemCallback(MenuItem menuItem)
Undocumented in source. Be warned that the author may not have intended to support it.
addIdle
void addIdle()
Undocumented in source. Be warned that the author may not have intended to support it.
createPopupMenu
Menu createPopupMenu()
Undocumented in source. Be warned that the author may not have intended to support it.
drawGL
bool drawGL(GdkEventExpose* event)
Undocumented in source. Be warned that the author may not have intended to support it.
exposeCallback
bool exposeCallback(GdkEventExpose* e, Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
idleCallback
bool idleCallback()
Undocumented in source. Be warned that the author may not have intended to support it.
initGL
bool initGL()

put any gl initializations here returns true to consume the event

mapCallback
void mapCallback(Widget drawable)
Undocumented in source. Be warned that the author may not have intended to support it.
motionNotifyCallback
bool motionNotifyCallback(GdkEventMotion* event, Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
mouseButtonPressCallback
bool mouseButtonPressCallback(GdkEventButton* event, Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
mouseButtonReleaseCallback
bool mouseButtonReleaseCallback(GdkEventButton* event, Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
noExposeCallback
bool noExposeCallback(Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
realizeCallback
void realizeCallback(Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
removeIdle
void removeIdle()
Undocumented in source. Be warned that the author may not have intended to support it.
resizeGL
bool resizeGL(GdkEventConfigure* e)
Undocumented in source. Be warned that the author may not have intended to support it.
toggleAnimation
void toggleAnimation()
Undocumented in source. Be warned that the author may not have intended to support it.
unmapCallback
void unmapCallback(Widget drawable)
Undocumented in source. Be warned that the author may not have intended to support it.
unrealizeCallback
bool unrealizeCallback(Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
visibilityCallback
bool visibilityCallback(GdkEventVisibility* e, Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin GLCapability

need to include the mixin to add GL capabilities to this widget

Static variables

begin_x
float begin_x;
Undocumented in source.
begin_y
float begin_y;
Undocumented in source.
dx
float dx;
Undocumented in source.
dy
float dy;
Undocumented in source.

Variables

animate
bool animate;
Undocumented in source.
height
GLfloat height;
Undocumented in source.
mainIdle
Idle mainIdle;
Undocumented in source.
menu
Menu menu;
Undocumented in source.
testGL
TestGL testGL;
Undocumented in source.
width
GLfloat width;
Undocumented in source.

Mixed In Members

From mixin GLCapability

width
GLfloat width;
Undocumented in source.
height
GLfloat height;
Undocumented in source.
getGLWidth
GLfloat getGLWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
getGLHeight
GLfloat getGLHeight()
Undocumented in source. Be warned that the author may not have intended to support it.
setGLCapability
bool setGLCapability(GLConfig glConfig, int renderType)

Sets the GL capabilities for the widget

setGLCapability
bool setGLCapability(Widget widget, GLConfig glConfig, GLContext shareList, bool direct, int renderType)

Set the GL capabilities for the widget

glDrawFrame
bool glDrawFrame()

The widget should use this method to redraw it self at any time

glDrawFrame
bool glDrawFrame(Widget widget)

The application should use this method to redraw the scene at any time

alreadyRealized
bool alreadyRealized;
Undocumented in source.
getAlreadyRealized
bool getAlreadyRealized()
Undocumented in source. Be warned that the author may not have intended to support it.
realizeFrame
void realizeFrame(Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
exposeFrame
bool exposeFrame(GdkEventExpose* event, Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
configureFrame
bool configureFrame(GdkEventConfigure* event, Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
mapFrame
void mapFrame(Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
unmapFrame
void unmapFrame(Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
visibilityFrame
bool visibilityFrame(GdkEventVisibility* event, Widget widget)
Undocumented in source. Be warned that the author may not have intended to support it.
onMap
bool onMap()
Undocumented in source. Be warned that the author may not have intended to support it.
onUnmap
bool onUnmap()
Undocumented in source. Be warned that the author may not have intended to support it.
onVisibility
bool onVisibility(GdkEventVisibility* event)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From DrawingArea

gtkDrawingArea
GtkDrawingArea* gtkDrawingArea;

the main Gtk struct

getDrawingAreaStruct
GtkDrawingArea* getDrawingAreaStruct()
Undocumented in source. Be warned that the author may not have intended to support it.
getStruct
void* getStruct()

the main Gtk struct as a void*

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
size
void size(int width, int height)

Warning gtk_drawing_area_size is deprecated and should not be used in newly-written code. Use gtk_widget_set_size_request() instead. Sets the size that the drawing area will request in response to a "size_request" signal. The drawing area may actually be allocated a size larger than this depending on how it is packed within the enclosing containers.

Meta