TestWindow

This tests the GtkD widgets

class TestWindow : ApplicationWindow {
ComboBoxText simpleCombo;
ComboBoxText comboText;
NB nb;
FileChooserDialog fcd;
FontSelectionDialog f;
ColorSelectionDialog d;
Button fontButton;
}

Members

Functions

testNotebook
void testNotebook(Notebook notebook)

tests notebook param nodebook

windowDelete
int windowDelete(GdkEvent* event, Widget widget)

Executed when the user tries to close the window return true to refuse to close the window

Inherited Members

From ApplicationWindow

gtkApplicationWindow
GtkApplicationWindow* gtkApplicationWindow;

the main Gtk struct

getApplicationWindowStruct
GtkApplicationWindow* getApplicationWindowStruct(bool transferOwnership = false)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getHelpOverlay
ShortcutsWindow getHelpOverlay()

Gets the gtk.ShortcutsWindow that has been set up with a prior call to Application.windowSetHelpOverlay.

getId
uint getId()

Returns the unique ID of the window. If the window has not yet been added to a gtk.Application, returns 0.

getShowMenubar
bool getShowMenubar()

Returns whether the window will display a menubar for the app menu and menubar as needed.

setHelpOverlay
void setHelpOverlay(ShortcutsWindow helpOverlay)

Associates a shortcuts window with the application window, and sets up an action with the name win.show-help-overlay to present it.

setShowMenubar
void setShowMenubar(bool showMenubar)

Sets whether the window will display a menubar for the app menu and menubar as needed.

Meta