OpenGlWidget

Nests an opengl capable window inside this window as a widget.

You may also just want to create an additional SimpleWindow with OpenGlOptions.yes yourself.

An OpenGL widget cannot have child widgets. It will throw if you try.

Constructors

this
this(Widget parent)

Members

Functions

addChild
void addChild(Widget , int )

OpenGL widgets cannot have child widgets. Do not call this.

paint
void paint(WidgetPainter painter)

Undocumented in source. Be warned that the author may not have intended to support it.

redrawOpenGlScene
void redrawOpenGlScene(void delegate() dg)

Undocumented in source. Be warned that the author may not have intended to support it.

registerMovement
void registerMovement()

When an opengl widget is laid out, it will adjust the glViewport for you automatically. Keep in mind that events like mouse coordinates are still relative to your size.

showing
void showing(bool s, bool recalc)

Undocumented in source. Be warned that the author may not have intended to support it.

Variables

win
SimpleWindow win;

Undocumented in source.

Inherited Members

From Widget

__anonymous
mixin LayoutInfo!()

Undocumented in source.

sendResizeEvent
void sendResizeEvent()

Undocumented in source. Be warned that the author may not have intended to support it.

contextMenu
Menu contextMenu(int x, int y)

Undocumented in source. Be warned that the author may not have intended to support it.

showContextMenu
bool showContextMenu(int x, int y, int screenX, int screenY)

Undocumented in source. Be warned that the author may not have intended to support it.

removeWidget
void removeWidget()
getChildByName
Widget getChildByName(string name)

Undocumented in source. Be warned that the author may not have intended to support it.

getByName
WidgetClass getByName(string name)
name
string name;

Undocumented in source.

defaultEventHandlers
EventHandler[string] defaultEventHandlers;
setupDefaultEventHandlers
void setupDefaultEventHandlers()
defaultEventHandler_click
void defaultEventHandler_click(Event event)
defaultEventHandler_keydown
void defaultEventHandler_keydown(Event event)
defaultEventHandler_keyup
void defaultEventHandler_keyup(Event event)
defaultEventHandler_mousedown
void defaultEventHandler_mousedown(Event event)
defaultEventHandler_mouseover
void defaultEventHandler_mouseover(Event event)
defaultEventHandler_mouseout
void defaultEventHandler_mouseout(Event event)
defaultEventHandler_mouseup
void defaultEventHandler_mouseup(Event event)
defaultEventHandler_mousemove
void defaultEventHandler_mousemove(Event event)
defaultEventHandler_mouseenter
void defaultEventHandler_mouseenter(Event event)
defaultEventHandler_mouseleave
void defaultEventHandler_mouseleave(Event event)
defaultEventHandler_char
void defaultEventHandler_char(Event event)
defaultEventHandler_triggered
void defaultEventHandler_triggered(Event event)
defaultEventHandler_change
void defaultEventHandler_change(Event event)
defaultEventHandler_focus
void defaultEventHandler_focus(Event event)
defaultEventHandler_blur
void defaultEventHandler_blur(Event event)

Default event handlers. These are called on the appropriate event unless Event.preventDefault is called on the event at some point through the bubbling process.

addDirectEventListener
EventListener addDirectEventListener(string event, void delegate() handler, bool useCapture)

Events use a Javascript-esque scheme.

addDirectEventListener
EventListener addDirectEventListener(string event, void delegate(Event) handler, bool useCapture)
addEventListener
EventListener addEventListener(string event, void delegate() handler, bool useCapture)
addEventListener
EventListener addEventListener(string event, void delegate(Event) handler, bool useCapture)
addEventListener
EventListener addEventListener(string event, EventHandler handler, bool useCapture)
removeEventListener
void removeEventListener(string event, EventHandler handler, bool useCapture)
removeEventListener
void removeEventListener(EventListener listener)
cursor
MouseCursor cursor()

Undocumented in source. Be warned that the author may not have intended to support it.

discardXConnectionState
void discardXConnectionState()

Undocumented in source. Be warned that the author may not have intended to support it.

recreateXConnectionState
void recreateXConnectionState()

Undocumented in source. Be warned that the author may not have intended to support it.

globalCoordinates
Point globalCoordinates()
handleWmCommand
void handleWmCommand(ushort cmd, ushort id)

Undocumented in source. Be warned that the author may not have intended to support it.

handleWmNotify
int handleWmNotify(NMHDR* hdr, int code)

Undocumented in source. Be warned that the author may not have intended to support it.

statusTip
string statusTip;

Undocumented in source.

tabStop
bool tabStop;

Undocumented in source.

tabOrder
int tabOrder;

Undocumented in source.

nativeMapping
Widget[HWND] nativeMapping;

Undocumented in source.

hwnd
HWND hwnd;

Undocumented in source.

originalWindowProcedure
WNDPROC originalWindowProcedure;

Undocumented in source.

simpleWindowWrappingHwnd
SimpleWindow simpleWindowWrappingHwnd;

Undocumented in source.

hookedWndProc
int hookedWndProc(UINT iMessage, WPARAM wParam, LPARAM lParam)

Undocumented in source. Be warned that the author may not have intended to support it.

implicitlyCreated
bool implicitlyCreated;

Undocumented in source.

x
int x;

Undocumented in source.

y
int y;

Undocumented in source.

_width
int _width;

Undocumented in source.

_height
int _height;

Undocumented in source.

children
Widget[] children;

Undocumented in source.

parent
Widget parent;

Undocumented in source.

width
int width [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

height
int height [@property getter]

Undocumented in source. Be warned that the author may not have intended to support it.

width
int width [@property setter]

Undocumented in source. Be warned that the author may not have intended to support it.

height
int height [@property setter]

Undocumented in source. Be warned that the author may not have intended to support it.

registerMovement
void registerMovement()

Undocumented in source. Be warned that the author may not have intended to support it.

parentWindow
Window parentWindow;

Undocumented in source.

isFocused
bool isFocused()
showing
bool showing()

Undocumented in source. Be warned that the author may not have intended to support it.

hidden
bool hidden()

Undocumented in source. Be warned that the author may not have intended to support it.

showing
void showing(bool s, bool recalculate)

Undocumented in source. Be warned that the author may not have intended to support it.

show
void show()
hide
void hide()
focus
void focus()
attachedToWindow
void attachedToWindow(Window w)

Undocumented in source. Be warned that the author may not have intended to support it.

addedTo
void addedTo(Widget w)

Undocumented in source. Be warned that the author may not have intended to support it.

addChild
void addChild(Widget w, int position)

Undocumented in source. Be warned that the author may not have intended to support it.

getChildAtPosition
Widget getChildAtPosition(int x, int y)

Undocumented in source. Be warned that the author may not have intended to support it.

paint
void paint(WidgetPainter painter)
paint
void paint(ScreenPainter )

Undocumented in source. Be warned that the author may not have intended to support it.

erase
void erase(WidgetPainter painter)

I don't actually like the name of this this draws a background on it

backgroundColor
Color backgroundColor()
backgroundColor
void backgroundColor(Color c)
draw
WidgetPainter draw()
privatePaint
void privatePaint(WidgetPainter painter, int lox, int loy, bool force)

Undocumented in source. Be warned that the author may not have intended to support it.

useNativeDrawing
bool useNativeDrawing()

Undocumented in source. Be warned that the author may not have intended to support it.

RedrawEvent
class RedrawEvent

Undocumented in source.

re
auto re;

Undocumented in source.

redraw
void redraw(string file, size_t line)
actualRedraw
void actualRedraw()

Undocumented in source. Be warned that the author may not have intended to support it.

drawableWindow
SimpleWindow drawableWindow;

Undocumented in source.

Meta