diff --git a/all.html b/all.html
deleted file mode 100644
index 60a0826a..00000000
--- a/all.html
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.all
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.all
-
-This module is just to simplify import of most useful DLANGUI modules.
-
-Synopsis:
-// helloworld
- import dlangui.all ;
-// required in one of modules
- mixin APP_ENTRY_POINT;
-
-/// entry point for dlangui based application
- extern (C) int UIAppMain(string[] args) {
- // resource directory search paths
- string[] resourceDirs = [
- appendPath(exePath, "../../../res/" ), // for Visual D and DUB builds
- appendPath(exePath, "../../../../res/" ), // for Mono-D builds
- appendPath(exePath, "res/" ) // when res dir is located at the same directory as executable
- ];
-
- // setup resource directories - will use only existing directories
- Platform.instance.resourceDirs = resourceDirs;
- // select translation file - for english language
- Platform.instance.uiLanguage = "en" ;
- // load theme from file "theme_default.xml"
- Platform.instance.uiTheme = "theme_default" ;
-
- // create window
- Window window = Platform.instance.createWindow("My Window" , null );
- // create some widget to show in window
- window.mainWidget = (new Button()).text("Hello world"d );
- // show window
- window.show();
- // run message loop
- return Platform.instance.enterMessageLoop();
-}
-
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
-
-
-
-
-
-
-
-
diff --git a/api.html b/api.html
deleted file mode 100644
index c5b3a650..00000000
--- a/api.html
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - api
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- api
-
-
-
-
-By Modules
-
- dlangui.core
-
- dlangui.graphics
-
- dlangui.widgets
-
- dlangui.dialogs
-
- dlangui.platforms.common
-
- dlangui
-
-
-
-
-
-
-
-
-
-
diff --git a/collections.html b/collections.html
deleted file mode 100644
index 25dda8f4..00000000
--- a/collections.html
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.core.collections
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.core.collections
-
-This module implements array based collection.
-
-Synopsis:
-import dlangui.core.collections ;
-
-// add
- Collection!Widget widgets;
-widgets ~= new Widget("id1" );
-widgets ~= new Widget("id2" );
-Widget w3 = new Widget("id3" );
-widgets ~= w3;
-
-// remove by index
- widgets.remove(1);
-
-// foreach
- foreach (w; widgets)
- writeln("widget: " , w.id);
-
-// remove by value
- widgets -= w3;
-writeln(widgets[0].id);
-
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- struct Collection (T, bool ownItems = false);
-
-array based collection of items
-
-retains item order when during add/remove operations
-
- @property bool empty ();
-
-returns true if there are no items in collection
-
-
- @property size_t length ();
-
-returns number of items in collection
-
-
- @property size_t size ();
-
-returns currently allocated capacity (may be more than length)
-
-
- @property void size (size_t newSize );
-
-change capacity (e.g. to reserve big space to avoid multiple reallocations)
-
-
- @property void length (size_t newSize );
-
-returns number of items in collection
-
-
- ref T opIndex (size_t index );
-
-access item by index
-
-
- void add (T item , size_t index = size_t.max);
-
-insert new item in specified position
-
-
- void addAll (ref Collection!(T, ownItems) v );
-
-add all items from other collection
-
-
- ref Collection opOpAssign (string op)(T item );
-
-support for appending (~=, +=) and removing by value (-=)
-
-
- size_t indexOf (T item );
-
-returns index of first occurence of item , size_t.max if not found
-
-
- T remove (size_t index );
-
-remove single item, returning removed item
-
-
- bool removeValue (T value );
-
-remove single item by value - if present in collection, returning true if item was found and removed
-
-
- int opApply (int delegate(ref T param) op );
-
-support of foreach with reference
-
-
- void clear ();
-
-remove all items
-
-
- @property T popFront ();
-
-remove first item
-
-
- void pushFront (T item );
-
-insert item at beginning of collection
-
-
- @property T popBack ();
-
-remove last item
-
-
- void pushBack (T item );
-
-insert item at end of collection
-
-
- @property T front ();
-
-peek first item
-
-
- @property T back ();
-
-peek last item
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/combobox.html b/combobox.html
deleted file mode 100644
index cc4651cd..00000000
--- a/combobox.html
+++ /dev/null
@@ -1,90 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.widgets.combobox
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.widgets.combobox
-
-This module contains Combo Box widgets implementation.
-
-Synopsis:
-import dlangui.widgets.combobox ;
-
-// creation of simple strings list
- ComboBox box = new ComboBox("combo1" , ["value 1"d , "value 2"d , "value 3"d ]);
-
-// select first item
- box.selectedItemIndex = 0;
-
-// get selected item text
- println(box.text);
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- class ComboBoxBase : dlangui.widgets.layouts.HorizontalLayout , dlangui.widgets.widget.OnClickHandler ;
-
-Abstract ComboBox.
-
- Signal!OnItemSelectedHandler onItemClickListener ;
-
-Handle item click.
-
-
- @property int selectedItemIndex ();
-
-Selected item index.
-
-
-
-
- class ComboBox : dlangui.widgets.combobox.ComboBoxBase ;
-
-ComboBox with list of strings.
-
-
-
-
-
-
-
-
-
-
-
diff --git a/controls.html b/controls.html
deleted file mode 100644
index fdc87da9..00000000
--- a/controls.html
+++ /dev/null
@@ -1,257 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.widgets.controls
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.widgets.controls
-
-This module contains simple controls widgets implementation.
-
-TextWidget
-
-
-ImageWidget
-
-
-Button
-
-
-ImageButton
-
-
-ScrollBar
-
-
-
-
-Synopsis:
-import dlangui.widgets.controls ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- class VSpacer : dlangui.widgets.widget.Widget ;
-
-vertical spacer to fill empty space in vertical layouts
-
-
- class HSpacer : dlangui.widgets.widget.Widget ;
-
-horizontal spacer to fill empty space in horizontal layouts
-
-
- class TextWidget : dlangui.widgets.widget.Widget ;
-
-static text widget
-
- @property dstring text ();
-
-get widget text
-
-
- @property Widget text (dstring s );
-
-set text to show
-
-
- @property Widget text (UIString s );
-
-set text to show
-
-
- @property Widget textResource (string s );
-
-set text resource ID to show
-
-
-
-
- class ImageWidget : dlangui.widgets.widget.Widget ;
-
-static image widget
-
- @property string drawableId ();
-
-get drawable image id
-
-
- @property ImageWidget drawableId (string id );
-
-set drawable image id
-
-
- @property ref DrawableRef drawable ();
-
-get drawable
-
-
- @property ImageWidget drawable (DrawableRef img );
-
-set custom drawable (not one from resources)
-
-
- @property ImageWidget drawable (string drawableId );
-
-set custom drawable (not one from resources)
-
-
-
-
- class ImageButton : dlangui.widgets.controls.ImageWidget ;
-
-button with image only
-
-
- class ImageTextButton : dlangui.widgets.layouts.HorizontalLayout ;
-
-button with image and text
-
-
- class CheckBox : dlangui.widgets.controls.ImageTextButton ;
-
-checkbox
-
-
- class RadioButton : dlangui.widgets.controls.ImageTextButton ;
-
-radio button
-
-
- class Button : dlangui.widgets.widget.Widget ;
-
-Text only button
-
-
- interface OnScrollHandler ;
-
-scroll event handler interface
-
- abstract bool onScrollEvent (AbstractSlider source , ScrollEvent event );
-
-handle scroll event
-
-
-
-
- class AbstractSlider : dlangui.widgets.widget.WidgetGroup ;
-
-base class for widgets like scrollbars and sliders
-
- Signal!OnScrollHandler onScrollEventListener ;
-
-scroll event listeners
-
-
- const @property int position ();
-
-returns slider position
-
-
- @property AbstractSlider position (int newPosition );
-
-sets new slider position
-
-
- const @property int minValue ();
-
-returns slider range min value
-
-
- const @property int maxValue ();
-
-returns slider range max value
-
-
- const @property int pageSize ();
-
-page size (visible area size)
-
-
- @property AbstractSlider pageSize (int size );
-
-set page size (visible area size )
-
-
- AbstractSlider setRange (int min , int max );
-
-set new range (min and max values for slider)
-
-
-
-
- class ScrollBar : dlangui.widgets.controls.AbstractSlider , dlangui.widgets.widget.OnClickHandler ;
-
-scroll bar - either vertical or horizontal
-
- @property Orientation orientation ();
-
-returns scrollbar orientation (Vertical, Horizontal)
-
-
- @property ScrollBar orientation (Orientation value );
-
-sets scrollbar orientation
-
-
- protected void updateState ();
-
-hide controls when scroll is not possible
-
-
- bool onMouseEvent (MouseEvent event );
-
-handle mouse wheel events
-
-
- void onDraw (DrawBuf buf );
-
-Draw widget at its position to buffer
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/dialog.html b/dialog.html
deleted file mode 100644
index 71c828b2..00000000
--- a/dialog.html
+++ /dev/null
@@ -1,95 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.dialogs.dialog
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.dialogs.dialog
-
-This module contains common Dialog implementation.
-
-Synopsis:
-import dlangui.platforms.common.platform;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- enum DialogFlag : uint;
-
-dialog flag bits
-
-Modal
-dialog is modal
-
-
-Resizable
-dialog can be resized
-
-
-
-
- class Dialog : dlangui.widgets.layouts.VerticalLayout ;
-
-base for all dialogs
-
- Widget createButtonsPanel (const Action[] actions , int defaultActionIndex , int splitBeforeIndex );
-
-create panel with buttons based on list of actions
-
-
- void init ();
-
-override to implement creation of dialog controls
-
-
- void show ();
-
-shows dialog
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/drawbuf.html b/drawbuf.html
deleted file mode 100644
index 348d1957..00000000
--- a/drawbuf.html
+++ /dev/null
@@ -1,261 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.graphics.drawbuf
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.graphics.drawbuf
-
-This module contains drawing buffer implementation.
-
-Synopsis:
-import dlangui.graphics.drawbuf ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- uint blendARGB (uint dst , uint src , uint alpha );
-
-blend two RGB pixels using alpha
-
-
- uint blendAlpha (uint a1 , uint a2 );
-
-blend two alpha values 0..255 (255 is fully transparent, 0 is opaque)
-
-
- ubyte blendGray (ubyte dst , ubyte src , uint alpha );
-
-blend two RGB pixels using alpha
-
-
- pure nothrow bool isFullyTransparentColor (uint color );
-
-returns true if color is #FFxxxxxx (color alpha is 255)
-
-
- struct NinePatch ;
-
-9-patch image scaling information (see Android documentation).
-
-
- Rect frame ;
-
-frame (non-scalable) part size for left, top, right, bottom edges.
-
-
- Rect padding ;
-
-padding (distance to content area) for left, top, right, bottom edges.
-
-
-
-
- abstract class DrawBuf : dlangui.core.types.RefCountedObject ;
-
-drawing buffer - image container which allows to perform some drawing operations
-
- @property uint alpha ();
-
-get current alpha setting (to be applied to all drawing operations)
-
-
- @property void alpha (uint alpha );
-
-set new alpha setting (to be applied to all drawing operations)
-
-
- void addAlpha (uint alpha );
-
-apply additional transparency to current drawbuf alpha value
-
-
- uint applyAlpha (uint argb );
-
-applies current drawbuf alpha to argb color value
-
-
- const @property const(NinePatch)* ninePatch ();
-
-get nine patch information pointer, null if this is not a nine patch image buffer
-
-
- @property void ninePatch (NinePatch* ninePatch );
-
-set nine patch information pointer, null if this is not a nine patch image buffer
-
-
- @property bool hasNinePatch ();
-
-check whether there is nine-patch information available for drawing buffer
-
-
- bool detectNinePatch ();
-
-override to detect nine patch using image 1-pixel border; returns true if 9-patch markup is found in image.
-
-
- @property int width ();
-
-returns current width
-
-
- @property int height ();
-
-returns current height
-
-
- void resetClipping ();
-
-init clip rectangle to full buffer size
-
-
- @property ref Rect clipRect ();
-
-returns clipping rectangle, when clipRect .isEmpty == true -- means no clipping.
-
-
- @property void clipRect (ref const Rect rect );
-
-returns clipping rectangle, or (0,0,dx,dy) when no clipping.
-
-sets new clipping rectangle, when clipRect .isEmpty == true -- means no clipping.
-
-
- @property void intersectClipRect (ref const Rect rect );
-
-sets new clipping rectangle, intersect with previous one.
-
-
- @property bool isClippedOut (ref const Rect rect );
-
-returns true if rectangle is completely clipped out and cannot be drawn.
-
-
- bool applyClipping (ref Rect rc );
-
-apply clipRect and buffer bounds clipping to rectangle
-
-
- bool applyClipping (ref Rect rc , ref Rect rc2 );
-
-apply clipRect and buffer bounds clipping to rectangle; if clippinup applied to first rectangle, reduce second rectangle bounds proportionally.
-
-
- void beforeDrawing ();
-
-reserved for hardware-accelerated drawing - begins drawing batch
-
-
- void afterDrawing ();
-
-reserved for hardware-accelerated drawing - ends drawing batch
-
-
- @property int bpp ();
-
-returns buffer bits per pixel
-
-
- abstract void resize (int width , int height );
-
-resize buffer
-
-
- abstract void fill (uint color );
-
-fill the whole buffer with solid color (no clipping applied)
-
-
- abstract void fillRect (Rect rc , uint color );
-
-fill rectangle with solid color (clipping is applied)
-
-
- abstract void drawGlyph (int x , int y , Glyph* glyph , uint color );
-
-draw 8bit alpha image - usually font glyph using specified color (clipping is applied)
-
-
- abstract void drawFragment (int x , int y , DrawBuf src , Rect srcrect );
-
-draw source buffer rectangle contents to destination buffer
-
-
- abstract void drawRescaled (Rect dstrect , DrawBuf src , Rect srcrect );
-
-draw source buffer rectangle contents to destination buffer rectangle applying rescaling
-
-
- void drawImage (int x , int y , DrawBuf src );
-
-draw unscaled image at specified coordinates
-
-
- void drawFrame (Rect rc , uint frameColor , Rect frameSideWidths , uint innerAreaColor = 4294967295u);
-
-draws rectangle frame of specified color and widths (per side), and optinally fills inner area
-
-
- DrawBuf transformColors (ref ColorTransform transform );
-
-create drawbuf with copy of current buffer with changed colors (returns this if not supported)
-
-
-
-
- struct ClipRectSaver ;
-
-RAII setting/restoring of clip rectangle
-
- this(DrawBuf buf , ref Rect newClipRect , uint newAlpha = 0);
-
-apply (intersect) new clip rectangle and alpha to draw buf ; restore
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/editors.html b/editors.html
deleted file mode 100644
index 99930ed4..00000000
--- a/editors.html
+++ /dev/null
@@ -1,790 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.widgets.editors
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.widgets.editors
-
-This module contains implementation of editors .
-
-EditLine - single line editor.
-
-
-EditBox - multiline editor
-
-
-
-
-Synopsis:
-import dlangui.widgets.editors ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- enum EditorActions : int;
-
-Editor action codes
-
-Left
-move cursor one char left
-
-
-SelectLeft
-move cursor one char left with selection
-
-
-Right
-move cursor one char right
-
-
-SelectRight
-move cursor one char right with selection
-
-
-Up
-move cursor one line up
-
-
-SelectUp
-move cursor one line up with selection
-
-
-Down
-move cursor one line down
-
-
-SelectDown
-move cursor one line down with selection
-
-
-WordLeft
-move cursor one word left
-
-
-SelectWordLeft
-move cursor one word left with selection
-
-
-WordRight
-move cursor one word right
-
-
-SelectWordRight
-move cursor one word right with selection
-
-
-PageUp
-move cursor one page up
-
-
-SelectPageUp
-move cursor one page up with selection
-
-
-PageDown
-move cursor one page down
-
-
-SelectPageDown
-move cursor one page down with selection
-
-
-PageBegin
-move cursor to the beginning of page
-
-
-SelectPageBegin
-move cursor to the beginning of page with selection
-
-
-PageEnd
-move cursor to the end of page
-
-
-SelectPageEnd
-move cursor to the end of page with selection
-
-
-LineBegin
-move cursor to the beginning of line
-
-
-SelectLineBegin
-move cursor to the beginning of line with selection
-
-
-LineEnd
-move cursor to the end of line
-
-
-SelectLineEnd
-move cursor to the end of line with selection
-
-
-DocumentBegin
-move cursor to the beginning of document
-
-
-SelectDocumentBegin
-move cursor to the beginning of document with selection
-
-
-DocumentEnd
-move cursor to the end of document
-
-
-SelectDocumentEnd
-move cursor to the end of document with selection
-
-
-DelPrevChar
-delete char before cursor (backspace)
-
-
-DelNextChar
-delete char after cursor (del key)
-
-
-DelPrevWord
-delete word before cursor (ctrl + backspace)
-
-
-DelNextWord
-delete char after cursor (ctrl + del key)
-
-
-InsertNewLine
-insert new line (Enter)
-
-
-PrependNewLine
-insert new line after current position (Ctrl+Enter)
-
-
-ToggleReplaceMode
-Turn On/Off replace mode
-
-
-Copy
-Copy selection to clipboard
-
-
-Cut
-Cut selection to clipboard
-
-
-Paste
-Paste selection from clipboard
-
-
-Undo
-Undo last change
-
-
-Redo
-Redo last undoed change
-
-
-Tab
-Tab (e.g., Tab key to insert tab character or indent text)
-
-
-BackTab
-Tab (unindent text, or remove whitespace before cursor, usually Shift+Tab)
-
-
-SelectAll
-Select whole content (usually, Ctrl+A)
-
-
-ScrollLineUp
-Scroll one line up (not changing cursor)
-
-
-ScrollLineDown
-Scroll one line down (not changing cursor)
-
-
-ScrollPageUp
-Scroll one page up (not changing cursor)
-
-
-ScrollPageDown
-Scroll one page down (not changing cursor)
-
-
-ScrollLeft
-Scroll window left
-
-
-ScrollRight
-Scroll window right
-
-
-ZoomIn
-Zoom in editor font
-
-
-ZoomOut
-Zoom out editor font
-
-
-
-
- dstring[] splitDString (dstring source , dchar delimiter = EOL);
-
-split dstring by delimiters
-
-
- dstring concatDStrings (dstring[] lines , dstring delimiter = SYSTEM_DEFAULT_EOL);
-
-concat strings from array using delimiter
-
-
- dstring replaceEolsWithSpaces (dstring source );
-
-replace end of lines with spaces
-
-
- struct TextPosition ;
-
-text content position
-
- int line ;
-
-line number, zero based
-
-
- int pos ;
-
-character position in line (0 == before first character)
-
-
- const int opCmp (ref const TextPosition v );
-
-compares two positions
-
-
-
-
- struct TextRange ;
-
-text content range
-
- const @property bool empty ();
-
-returns true if range is empty
-
-
- const @property bool singleLine ();
-
-returns true if start and end located at the same line
-
-
- const @property int lines ();
-
-returns count of lines in range
-
-
-
-
- enum EditAction : int;
-
-action performed with editable contents
-
-Replace
-insert content into specified position (range.start)
-
-delete content in range
-
-
-replace range content with new content
-
-
-
-
- class EditOperation ;
-
-edit operation details for EditableContent
-
- @property EditAction action ();
-
-action performed
-
-
- @property ref TextRange range ();
-
-source range to replace with new content
-
-
- @property ref TextRange newRange ();
-
-new range after operation applied
-
-
- protected dstring[] _content ;
-
-new content for range (if required for this action)
-
-
- protected dstring[] _oldContent ;
-
-old content for range
-
-
- bool merge (EditOperation op );
-
-try to merge two operations (simple entering of characters in the same line), return true if succeded
-
-
-
-
- class UndoBuffer ;
-
-Undo/Redo buffer
-
- @property bool hasUndo ();
-
-returns true if buffer contains any undo items
-
-
- @property bool hasRedo ();
-
-returns true if buffer contains any redo items
-
-
- void saveForUndo (EditOperation op );
-
-adds undo operation
-
-
- EditOperation undo ();
-
-returns operation to be undone (put it to redo), null if no undo ops available
-
-
- EditOperation redo ();
-
-returns operation to be redone (put it to undo), null if no undo ops available
-
-
- void clear ();
-
-clears both undo and redo buffers
-
-
-
-
- interface EditableContentListener ;
-
-Editable Content change listener
-
-
- class EditableContent ;
-
-editable plain text (singleline/multiline)
-
- Signal!EditableContentListener contentChangeListeners ;
-
-listeners for edit operations
-
-
- @property bool multiline ();
-
-returns true if miltyline content is supported
-
-
- @property dstring text ();
-
-returns all lines concatenated delimited by '\n'
-
-
- @property EditableContent text (dstring newContent );
-
-replace whole text with another content
-
-
- @property int length ();
-
-returns line text
-
-
- dstring line (int index );
-
-returns line text by index , "" if index is out of bounds
-
-
- TextPosition lineEnd (int lineIndex );
-
-returns text position for end of line lineIndex
-
-
- TextPosition firstNonSpace (int lineIndex );
-
-returns position before first non-space character of line, returns 0 position if no non-space chars
-
-
- TextPosition lastNonSpace (int lineIndex );
-
-returns position after last non-space character of line, returns 0 position if no non-space chars on line
-
-
- int lineLength (int lineIndex );
-
-returns text position for end of line lineIndex
-
-
- int maxLineLength ();
-
-returns maximum length of line
-
-
- dstring[] rangeText (TextRange range );
-
-return text for specified range
-
-
- void correctPosition (ref TextPosition position );
-
-when position is out of content bounds, fix it to nearest valid position
-
-
- void correctRange (ref TextRange range );
-
-when range positions is out of content bounds, fix it to nearest valid position
-
-
- protected void removeLines (int start , int removedCount );
-
-removes removedCount lines starting from start
-
-
- protected void insertLines (int start , int count );
-
-inserts count empty lines at specified position
-
-
- protected void replaceRange (TextRange before , TextRange after , dstring[] newContent );
-
-inserts or removes lines, removes text in range
-
-
- TextPosition moveByWord (TextPosition p , int direction , bool camelCasePartsAsWords );
-
-change text position to nearest word bound (direction < 0 - back, > 0 - forward)
-
-
- bool performOperation (EditOperation op , Object source );
-
-edit content
-
-
- @property bool hasUndo ();
-
-return true if there is at least one operation in undo buffer
-
-
- @property bool hasRedo ();
-
-return true if there is at least one operation in redo buffer
-
-
- bool undo ();
-
-undoes last change
-
-
- bool redo ();
-
-redoes last undone change
-
-
- void clearUndo ();
-
-clear undo/redp history
-
-
-
-
- abstract class EditWidgetBase : dlangui.widgets.scroll.ScrollWidgetBase , dlangui.widgets.editors.EditableContentListener , dlangui.widgets.menu.MenuItemActionHandler ;
-
-base for all editor widgets
-
- bool onMenuItemAction (const Action action );
-
-
-
- bool canShowPopupMenu (int x , int y );
-
-returns true if widget can show popup (e.g. by mouse right click at point x ,y )
-
-
- bool isActionEnabled (const Action action );
-
-override to change popup menu items state
-
-
- void showPopupMenu (int x , int y );
-
-shows popup at (x ,y )
-
-
- uint getCursorType (int x , int y );
-
-returns mouse cursor type for widget
-
-
- @property bool wantTabs ();
-
-when true , Tab / Shift+Tab presses are processed internally in widget (e.g. insert tab character) instead of focus change navigation.
-
-
- @property EditWidgetBase wantTabs (bool wantTabs );
-
-sets tab size (in number of spaces)
-
-
- @property bool readOnly ();
-
-readonly flag (when true , user cannot change content of editor)
-
-
- @property EditWidgetBase readOnly (bool readOnly );
-
-sets readonly flag
-
-
- @property bool replaceMode ();
-
-replace mode flag (when true , entered character replaces character under cursor)
-
-
- @property EditWidgetBase replaceMode (bool replaceMode );
-
-sets replace mode flag
-
-
- @property bool useSpacesForTabs ();
-
-when true , spaces will be inserted instead of tabs
-
-
- @property EditWidgetBase useSpacesForTabs (bool useSpacesForTabs );
-
-set new Tab key behavior flag: when true , spaces will be inserted instead of tabs
-
-
- @property int tabSize ();
-
-returns tab size (in number of spaces)
-
-
- @property EditWidgetBase tabSize (int newTabSize );
-
-sets tab size (in number of spaces)
-
-
- @property EditableContent content ();
-
-editor content object
-
-
- protected bool _ownContent ;
-
-when ownContent is false , content should not be destroyed in editor destructor
-
-
- @property EditWidgetBase content (EditableContent content );
-
-set content object
-
-
- @property dstring text ();
-
-get widget text
-
-
- @property Widget text (dstring s );
-
-set text
-
-
- @property Widget text (UIString s );
-
-set text
-
-
- protected Rect caretRect ();
-
-returns cursor rectangle
-
-
- protected void drawCaret (DrawBuf buf );
-
-draws caret
-
-
- protected void correctCaretPos ();
-
-when cursor position or selection is out of content bounds, fix it to nearest valid position
-
-
- protected dstring spacesForTab (int currentPos );
-
-generate string of spaces, to reach next tab position
-
-
- protected bool wholeLinesSelected ();
-
-returns true if one or more lines selected fully
-
-
- protected dstring indentLine (dstring src , bool back );
-
-change line indent
-
-
- protected void indentRange (bool back );
-
-indent / unindent range
-
-
- protected Action findKeyAction (uint keyCode , uint flags );
-
-map key to action
-
-
- bool onKeyEvent (KeyEvent event );
-
-handle keys
-
-
- bool onMouseEvent (MouseEvent event );
-
-process mouse event ; return true if event is processed by widget.
-
-
-
-
- class EditLine : dlangui.widgets.editors.EditWidgetBase ;
-
-single line editor
-
- void measure (int parentWidth , int parentHeight );
-
-measure
-
-
- bool onKeyEvent (KeyEvent event );
-
-handle keys
-
-
- bool onMouseEvent (MouseEvent event );
-
-process mouse event ; return true if event is processed by widget.
-
-
- void layout (Rect rc );
-
-Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout ).
-
-
- protected void drawLineBackground (DrawBuf buf , Rect lineRect , Rect visibleRect );
-
-override to custom highlight of line background
-
-
- void onDraw (DrawBuf buf );
-
-draw content
-
-
-
-
- class EditBox : dlangui.widgets.editors.EditWidgetBase ;
-
-single line editor
-
- protected void updateHScrollBar ();
-
-update horizontal scrollbar widget position
-
-
- protected void updateVScrollBar ();
-
-update verticat scrollbar widget position
-
-
- bool onHScroll (ScrollEvent event );
-
-process horizontal scrollbar event
-
-
- bool onVScroll (ScrollEvent event );
-
-process vertical scrollbar event
-
-
- Point fullContentSize ();
-
-calculate full content size in pixels
-
-
- void measure (int parentWidth , int parentHeight );
-
-measure
-
-
- protected void drawLineBackground (DrawBuf buf , int lineIndex , Rect lineRect , Rect visibleRect );
-
-override to custom highlight of line background
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/events.html b/events.html
deleted file mode 100644
index f95400de..00000000
--- a/events.html
+++ /dev/null
@@ -1,485 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.core.events
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.core.events
-
-This module contains dlangui event types declarations.
-
-Synopsis:
-import dlangui.core.events ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- struct Accelerator ;
-
-keyboard accelerator (key + modifiers)
-
- @property dstring label ();
-
-returns accelerator text description
-
-
-
-
- class Action ;
-
-UI action
-
- @property string stringParam ();
-
-additional string parameter
-
-
- @property long longParam ();
-
-additional long parameter
-
-
- @property Object objectParam ();
-
-additional custom (Object) parameter
-
-
- this(Action a );
-
-deep copy constructor
-
-
- @property Action clone ();
-
-deep copy
-
-
- this(int id );
-
-create action only with ID
-
-
- this(int id , uint keyCode , uint keyFlags = 0);
-
-action with accelerator, w/o label
-
-
- this(int id , dstring label , string iconResourceId = null, uint keyCode = 0, uint keyFlags = 0);
-
-action with label , icon, and accelerator
-
-
- @property Accelerator[] accelerators ();
-
-returs array of accelerators
-
-
- @property dstring acceleratorText ();
-
-returns text description for first accelerator of action; null if no accelerators
-
-
- bool checkAccelerator (uint keyCode , uint keyFlags );
-
-returns true if accelerator matches provided key code and flags
-
-
-
-
- enum MouseAction : ubyte;
-
-mouse action
-
-Cancel
-button down handling is cancelled
-
-
-ButtonDown
-button is down
-
-
-ButtonUp
-button is up
-
-
-Move
-mouse pointer is moving
-
-
-FocusIn
-pointer is back inside widget while button is down after FocusOut
-
-
-FocusOut
-pointer moved outside of widget while button was down (if handler returns true , Move events will be sent even while pointer is outside widget)
-
-
-Wheel
-scroll wheel movement
-
-
-Leave
-pointer left widget which has before processed Move message, while button was not down
-
-
-
-
- enum MouseFlag : ushort;
-
-mouse flag bits
-
-LButton
-Left mouse button is down
-
-
-MButton
-Middle mouse button is down
-
-
-RButton
-Right mouse button is down
-
-
-XButton1
-X1 mouse button is down
-
-
-XButton2
-X2 mouse button is down
-
-
-Control
-Ctrl key is down
-
-
-Shift
-Shift key is down
-
-
-Alt
-Alt key is down
-
-
-
-
- enum MouseButton : ubyte;
-
-mouse button
-
-None
-no button
-
-
-Left
-left mouse button
-
-
-Right
-right mouse button
-
-
-Middle
-right mouse button
-
-
-XButton1
-additional mouse button 1
-
-
-XButton2
-additional mouse button 2
-
-
-
-
- struct ButtonDetails ;
-
-mouse button state details
-
- long _downTs ;
-
-Clock.currStdTime() for down event of this button (0 if button is up).
-
-
- long _upTs ;
-
-Clock.currStdTime() for up event of this button (0 if button is still down).
-
-
- short _downX ;
-
-x coordinates of down event
-
-
- short _downY ;
-
-y coordinates of down event
-
-
- ushort _downFlags ;
-
-mouse button flags when down event occured
-
-
- void down (short x , short y , ushort flags );
-
-update for button down
-
-
- void up (short x , short y , ushort flags );
-
-update for button up
-
-
- @property int downDuration ();
-
-returns button down state duration in hnsecs (1/10000 of second).
-
-
-
-
- class MouseEvent ;
-
-mouse event
-
- @property MouseButton button ();
-
-button which caused ButtonUp or ButtonDown action
-
-
- @property MouseAction action ();
-
-action
-
-
- @property ushort flags ();
-
-flags (buttons and keys state)
-
-
- @property short wheelDelta ();
-
-delta for Wheel event
-
-
- @property short x ();
-
-x coordinate of mouse pointer (relative to window client area)
-
-
- @property short y ();
-
-y coordinate of mouse pointer (relative to window client area)
-
-
- @property Widget trackingWidget ();
-
-get event tracking widget to override
-
-
- void track (Widget w );
-
-override mouse tracking widget
-
-
-
-
- enum KeyAction : uint;
-
-KeyEvent action
-
-KeyDown
-key is pressed
-
-
-KeyUp
-key is released
-
-
-Text
-text is entered
-
-
-Repeat
-repeated key down
-
-
-
-
- enum KeyFlag : uint;
-
-KeyEvent flags
-
-Control
-Ctrl key is down
-
-
-Shift
-Shift key is down
-
-
-Alt
-Alt key is down
-
-
-RControl
-Right Ctrl key is down
-
-
-RShift
-Right Shift key is down
-
-
-RAlt
-Right Alt key is down
-
-
-LControl
-Left Ctrl key is down
-
-
-LShift
-Left Shift key is down
-
-
-LAlt
-Left Alt key is down
-
-
-
-
- enum KeyCode : uint;
-
-Key code constants
-
-
- class KeyEvent ;
-
-keyboard event
-
- @property KeyAction action ();
-
-key action (KeyDown, KeyUp, Text, Repeat)
-
-
- @property uint keyCode ();
-
-key code
-
-
- @property uint flags ();
-
-flags (shift, ctrl, alt...)
-
-
- @property dstring text ();
-
-entered text , for Text action
-
-
- this(KeyAction action , uint keyCode , uint flags , dstring text = null);
-
-create key event
-
-
-
-
- enum ScrollAction : ubyte;
-
-scroll bar / slider action
-
-PageUp
-space above indicator pressed
-
-
-PageDown
-space below indicator pressed
-
-
-LineUp
-up/left button pressed
-
-
-LineDown
-down/right button pressed
-
-
-SliderPressed
-slider pressed
-
-
-SliderMoved
-dragging in progress
-
-
-SliderReleased
-dragging finished
-
-
-
-
- class ScrollEvent ;
-
-slider/scrollbar event
-
- @property void position (int newPosition );
-
-change position in event handler to update slider position
-
-
- int defaultUpdatePosition ();
-
-default update position for actions like PageUp/PageDown, LineUp/LineDown
-
-
-
-
- string keyName (uint keyCode );
-
-converts key code to key name
-
-
-
-
-
-
-
-
-
-
-
diff --git a/filedlg.html b/filedlg.html
deleted file mode 100644
index 1e0deef4..00000000
--- a/filedlg.html
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.dialogs.filedlg
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.dialogs.filedlg
-
-This module contains FileDialog implementation.
-
-Can show dialog for open / save.
-
-
-
-
-Synopsis:
-import dlangui.dialogs.filedlg ;
-
-UIString caption = "Open File"d ;
-auto dlg = new FileDialog(caption, window, FileDialogFlag.Open);
-dlg.show();
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- enum FileDialogFlag : uint;
-
-flags for file dialog options
-
-FileMustExist
-file must exist (use this for open dialog)
-
-
-ConfirmOverwrite
-ask before saving to existing
-
-
-Open
-flags for Open dialog
-
-
-Save
-flags for Save dialog
-
-
-
-
- class FileDialog : dlangui.dialogs.dialog.Dialog ;
-
-file open / save dialog
-
- void init ();
-
-override to implement creation of dialog controls
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/fonts.html b/fonts.html
deleted file mode 100644
index f12e1d2b..00000000
--- a/fonts.html
+++ /dev/null
@@ -1,371 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.graphics.fonts
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.graphics.fonts
-
-This module contains base fonts access interface and common implementation.
-
-Font - base class for fonts .
-
-
-FontManager - base class for font managers - provides access to available fonts .
-
-
-
-
-Actual implementation is:
-
-
-dlangui.graphics.ftfonts - FreeType based font manager.
-
-
-dlangui.platforms.windows.w32fonts - Win32 API based font manager.
-
-
-
-
-To enable OpenGL support, build with version(USE_OPENGL);
-
-
-See Also:
-dlangui.graphics.drawbuf, DrawBuf, drawbuf, drawbuf.html
-
-
-
-
-
-
-Synopsis:
-import dlangui.graphics.fonts ;
-
-// find suitable font of size 25, normal, preferrable Arial, or, if not available, any SansSerif font
- FontRef font = FontManager.instance.getFont(25, FontWeight.Normal, false , FontFamily.SansSerif, "Arial" );
-
-dstring sampleText = "Sample text to draw"d ;
-// measure text string width and height (one line)
- Point sz = font.textSize(sampleText);
-// draw red text at center of DrawBuf buf
- font.drawText(buf, buf.width / 2 - sz.x/2, buf.height / 2 - sz.y / 2, sampleText, 0xFF0000);
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- enum FontFamily : ubyte;
-
-font families enum
-
-Unspecified
-Unknown / not set / does not matter
-
-
-SansSerif
-Sans Serif font, e.g. Arial
-
-
-Serif
-Serif font, e.g. Times New Roman
-
-
-Fantasy
-Fantasy font
-
-
-Cursive
-Cursive font
-
-
-MonoSpace
-Monospace font (fixed pitch font), e.g. Courier New
-
-
-
-
- enum FontWeight : int;
-
-font weight constants (0..1000)
-
-Normal
-normal font weight
-
-
-Bold
-bold font
-
-
-
-
- immutable int MAX_WIDTH_UNSPECIFIED ;
-
-constant for measureText maxWidth paramenter - to tell that all characters of text string should be measured.
-
-
- abstract class Font : dlangui.core.types.RefCountedObject ;
-
-Instance of font with specific size, weight, face, etc.
-
-Allows to measure text string and draw it on DrawBuf
-
-
- Use FontManager.instance.getFont() to retrieve font instance.
-
- abstract @property int size ();
-
-returns font size (as requested from font engine)
-
-
- abstract @property int height ();
-
-returns actual font height including interline space
-
-
- abstract @property int weight ();
-
-returns font weight
-
-
- abstract @property int baseline ();
-
-returns baseline offset
-
-
- abstract @property bool italic ();
-
-returns true if font is italic
-
-
- abstract @property string face ();
-
-returns font face name
-
-
- abstract @property FontFamily family ();
-
-returns font family
-
-
- abstract @property bool isNull ();
-
-returns true if font object is not yet initialized / loaded
-
-
- @property bool isFixed ();
-
-returns true if font has fixed pitch (all characters have equal width)
-
-
- @property int spaceWidth ();
-
-returns true if font is fixed
-
-
- int charWidth (dchar ch );
-
-returns character width
-
-
- int measureText (const dchar[] text , ref int[] widths , int maxWidth = MAX_WIDTH_UNSPECIFIED, int tabSize = 4, int tabOffset = 0, uint textFlags = 0);
-
-Measure text string, return accumulated widths [] (distance to end of n-th character), returns number of measured chars.
-
-Supports Tab character processing and processing of menu item labels like '&File'.
-
-
-Params:
-dchar[] text
-text string to measure
-int[] widths
-output buffer to put measured widths (widths [i] will be set to cumulative widths text [0..i])
-int maxWidth
-maximum width to measure - measure is stopping if max width is reached (pass MAX_WIDTH_UNSPECIFIED to measure all characters)
-int tabSize
-tabulation size, in number of spaces
-int tabOffset
-when string is drawn not from left position, use to move tab stops left/right
-uint textFlags
-TextFlag bit set - to control underline, hotkey label processing, etc...
-
-Returns:
-number of characters measured (may be less than text .length if maxWidth is reached)
-
-
- Point textSize (const dchar[] text , int maxWidth = MAX_WIDTH_UNSPECIFIED, int tabSize = 4, int tabOffset = 0, uint textFlags = 0);
-
-Measure text string as single line, returns width and height
-
-Params:
-dchar[] text
-text string to measure
-int maxWidth
-maximum width - measure is stopping if max width is reached
-int tabSize
-tabulation size, in number of spaces
-int tabOffset
-when string is drawn not from left position, use to move tab stops left/right
-uint textFlags
-TextFlag bit set - to control underline, hotkey label processing, etc...
-
-
-
- void drawText (DrawBuf buf , int x , int y , const dchar[] text , uint color , int tabSize = 4, int tabOffset = 0, uint textFlags = 0);
-
-Draw text string to buffer.
-
-Params:
-DrawBuf buf
-graphics buffer to draw text to
-int x
-x coordinate to draw first character at
-int y
-y coordinate to draw first character at
-dchar[] text
-text string to draw
-uint color
-color for drawing of glyphs
-int tabSize
-tabulation size, in number of spaces
-int tabOffset
-when string is drawn not from left position, use to move tab stops left/right
-uint textFlags
-set of TextFlag bit fields
-
-
-
- abstract Glyph* getCharGlyph (dchar ch , bool withImage = true);
-
-get character glyph information
-
-
- abstract void checkpoint ();
-
-clear usage flags for all entries
-
-
- abstract void cleanup ();
-
-removes entries not used after last call of checkpoint() or cleanup ()
-
-
-
-
- struct FontList ;
-
-font instance collection - utility class, for font manager implementations
-
-
- abstract class FontManager ;
-
-Access points to fonts.
-
- static @property void instance (FontManager manager );
-
-sets new font manager singleton instance
-
-
- static @property FontManager instance ();
-
-returns font manager singleton instance
-
-
- abstract ref FontRef getFont (int size , int weight , bool italic , FontFamily family , string face );
-
-get font instance best matched specified parameters
-
-
- abstract void checkpoint ();
-
-clear usage flags for all entries -- for cleanup of unused fonts
-
-
- abstract void cleanup ();
-
-removes entries not used after last call of checkpoint() or cleanup ()
-
-
-
-
- struct GlyphCache ;
-
-Glyph image cache
-
-Recently used glyphs are marked with glyph.lastUsage = 1
-
-
- checkpoint() call clears usage marks
-
-
- cleanup() removes all items not accessed since last checkpoint()
-
- Glyph* find (dchar ch );
-
-try to find glyph for character in cache, returns null if not found
-
-
- Glyph* put (dchar ch , Glyph* glyph );
-
-put character glyph to cache
-
-
- void cleanup ();
-
-removes entries not used after last call of checkpoint() or cleanup ()
-
-
- void checkpoint ();
-
-clear usage flags for all entries
-
-
- void clear ();
-
-removes all entries (when built with USE_OPENGL version, notify OpenGL cache about removed glyphs)
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/ftfonts.html b/ftfonts.html
deleted file mode 100644
index 4aa660ac..00000000
--- a/ftfonts.html
+++ /dev/null
@@ -1,116 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.graphics.ftfonts
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.graphics.ftfonts
-
-This file contains FontManager implementation based on FreeType library.
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- class FreeTypeFont : dlangui.graphics.fonts.Font ;
-
-Font implementation based on Win32 API system fonts.
-
- this(FontFileItem item , int size );
-
-need to call create() after construction to initialize font
-
-
- void clear ();
-
-cleanup resources
-
-
- bool findGlyph (dchar code , dchar def_char , ref FT_UInt index , ref FreeTypeFontFile file );
-
-find glyph index for character
-
-
- bool create ();
-
-load font files
-
-
- void checkpoint ();
-
-clear usage flags for all entries
-
-
- void cleanup ();
-
-removes entries not used after last call of checkpoint() or cleanup ()
-
-
-
-
- class FreeTypeFontManager : dlangui.graphics.fonts.FontManager ;
-
-FreeType based font manager.
-
- ref FontRef getFont (int size , int weight , bool italic , FontFamily family , string face );
-
-get font instance with specified parameters
-
-
- void checkpoint ();
-
-clear usage flags for all entries
-
-
- void cleanup ();
-
-removes entries not used after last call of checkpoint() or cleanup ()
-
-
- bool registerFont (string filename , FontFamily family = FontFamily.SansSerif, string face = null, bool italic = false, int weight = 0);
-
-register freetype font by filename - optinally font properties can be passed if known (e.g. from libfontconfig).
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/gldrawbuf.html b/gldrawbuf.html
deleted file mode 100644
index f7c44349..00000000
--- a/gldrawbuf.html
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.graphics.gldrawbuf
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.graphics.gldrawbuf
-
-This module contains opengl based drawing buffer implementation.
-
-To enable OpenGL support, build with version(USE_OPENGL);
-
-
-Synopsis:
-import dlangui.graphics.gldrawbuf ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
-
-
-
-
-
-
-
-
diff --git a/glsupport.html b/glsupport.html
deleted file mode 100644
index 228875a3..00000000
--- a/glsupport.html
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.graphics.glsupport
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.graphics.glsupport
-
-This module contains OpenGL access layer.
-
-To enable OpenGL support, build with version(USE_OPENGL);
-
-
-Synopsis:
-import dlangui.graphics.glsupport ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
-
-
-
-
-
-
-
-
diff --git a/i18n.html b/i18n.html
deleted file mode 100644
index b8f9f335..00000000
--- a/i18n.html
+++ /dev/null
@@ -1,265 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.core.i18n
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.core.i18n
-
-This module contains internationalization support implementation.
-
-Translation files contain of simple key=value pair lines.
-
-
-STRING_RESOURCE_ID=Translation text.
-
-
-Supports fallback to another translation file (e.g. default language).
-
-
-
-
-
-
-Synopsis:
-import dlangui.core.i18n ;
-
-// use global i18n object to get translation for string ID
- dstring translated = i18n .get("STR_FILE_OPEN" );
-
-// UIString type can hold either string resource id or dstring raw value.
- UIString text;
-
-// assign resource id as string
- text = "ID_FILE_EXIT" ;
-// or assign raw value as dstring
- text = "some text"d ;
-
-// i18n.get() will automatically be invoked when getting UIString value (e.g. using alias this).
- dstring translated = text;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- struct UIString ;
-
-container for UI string - either raw value or string resource ID
-
- this(string id );
-
-create string with i18n resource id
-
-
- this(dstring value );
-
-create string with raw value
-
-
- const @property dstring value ();
-
-get value (either raw or translated by id)
-
-
- @property void value (dstring newValue );
-
-set raw value
-
-
- ref UIString opAssign (dstring rawValue );
-
-assign raw value
-
-
- ref UIString opAssign (string ID );
-
-assign ID
-
-
-
-
- struct UIStringCollection ;
-
-UIString item collection.
-
- @property int length ();
-
-returns number of items
-
-
- UIString[] opIndex ();
-
-slice
-
-
- UIString[] opSlice ();
-
-slice
-
-
- UIString[] opSlice (size_t start , size_t end );
-
-slice
-
-
- UIString opIndex (size_t index );
-
-read item by index
-
-
- UIString opIndexAssign (UIString value , size_t index );
-
-modify item by index
-
-
- dstring get (size_t index );
-
-return unicode string for item by index
-
-
- void opAssign (ref UIStringCollection items );
-
-Assign UIStringCollection
-
-
- void addAll (ref UIStringCollection items );
-
-Append UIStringCollection
-
-
- void opAssign (string[] items );
-
-Assign array of string resource IDs
-
-
- void addAll (string[] items );
-
-Append array of string resource IDs
-
-
- void opAssign (dstring[] items );
-
-Assign array of unicode strings
-
-
- void addAll (dstring[] items );
-
-Append array of unicode strings
-
-
- void clear ();
-
-remove all items
-
-
- void add (string item , int index = -1);
-
-Insert resource id item into specified position
-
-
- void add (dstring item , int index = -1);
-
-Insert unicode string item into specified position
-
-
- void add (UIString item , int index = -1);
-
-Insert UIString item into specified position
-
-
- void remove (int index );
-
-Remove item with specified index
-
-
- int indexOf (dstring str );
-
-Return index of first item with specified text or -1 if not found.
-
-
- int indexOf (string strId );
-
-Return index of first item with specified string resource id or -1 if not found.
-
-
- int indexOf (UIString str );
-
-Return index of first item with specified string or -1 if not found.
-
-
-
-
- class UIStringTranslator ;
-
-UI Strings internationalization translator.
-
- shared void findTranslationsDir (string[] dirs ...);
-
-looks for i18n directory inside one of passed dirs , and uses first found as directory to read i18n files from
-
-
- shared string[] convertResourcePaths (string filename );
-
-convert resource path - append resource dir if necessary
-
-
- shared bool load (string mainFilename , string fallbackFilename = null);
-
-load translation file(s)
-
-
- shared dstring get (string id );
-
-translate string ID to string (returns "UNTRANSLATED: id " for missing values)
-
-
-
-
- UIStringTranslator i18n ;
-
-Global translator object.
-
-
-
-
-
-
-
-
-
-
-
diff --git a/images.html b/images.html
deleted file mode 100644
index 78994101..00000000
--- a/images.html
+++ /dev/null
@@ -1,76 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.graphics.images
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.graphics.images
-
-This module contains image loading functions.
-
-Currently uses FreeImage.
-
-
-Usage of libpng is not feasible under linux due to conflicts of library and binding versions.
-
-
-Synopsis:
-import dlangui.graphics.images ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- ColorDrawBuf loadImage (string filename );
-
-load and decode image from file to ColorDrawBuf, returns null if loading or decoding is failed
-
-
- ColorDrawBuf loadImage (InputStream stream );
-
-load and decode image from stream to ColorDrawBuf, returns null if loading or decoding is failed
-
-
-
-
-
-
-
-
-
-
-
diff --git a/images/body-bg.png b/images/body-bg.png
deleted file mode 100644
index d0618fe7..00000000
Binary files a/images/body-bg.png and /dev/null differ
diff --git a/images/highlight-bg.jpg b/images/highlight-bg.jpg
deleted file mode 100644
index 4c4a78ef..00000000
Binary files a/images/highlight-bg.jpg and /dev/null differ
diff --git a/images/hr.png b/images/hr.png
deleted file mode 100644
index 6c723a56..00000000
Binary files a/images/hr.png and /dev/null differ
diff --git a/images/octocat-icon.png b/images/octocat-icon.png
deleted file mode 100644
index f0ba137d..00000000
Binary files a/images/octocat-icon.png and /dev/null differ
diff --git a/images/tar-gz-icon.png b/images/tar-gz-icon.png
deleted file mode 100644
index d50f34f6..00000000
Binary files a/images/tar-gz-icon.png and /dev/null differ
diff --git a/images/zip-icon.png b/images/zip-icon.png
deleted file mode 100644
index 162c425b..00000000
Binary files a/images/zip-icon.png and /dev/null differ
diff --git a/index.html b/index.html
deleted file mode 100644
index 337c9ce4..00000000
--- a/index.html
+++ /dev/null
@@ -1,308 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - index
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- index
-
-
-
-
- Dlang UI
-
-GUI for D programming language, written in D.
-
- Alpha stage of development.
-
-
-Crossplatform (Win32 and Linux are supported in current version); can use SDL2 as a backend.
-Mostly inspired by Android UI API (layouts, styles, two phase layout, ...)
-Supports highly customizable UI themes and styles
-Supports internationalization
-Hardware acceleration using OpenGL (when built with version USE_OPENGL)
-Fallback to Win32 API / XCB when OpenGL is not available
-Actually it's a port (with major refactoring) of GUI library for cross platform OpenGL based implementation of Cool Reader app project from C++.
-Almost ready for 2D games development
-Goal: provide set of widgets suitable for building of IDE.
-Non thread safe
-
-
- Widgets
-
-
-Widget - base class for all widgets and widget containers, similar to Android's View
- Currently implemented widgets:
-
-
-TextWidget - simple static text (TODO: implement multiline formatting)
-ImageWidget - static image
-Button - simple button with text label
-ImageButton - image only button
-TextImageButton - button with icon and label
-CheckBox - check button with label
-RadioButton - radio button with label
-EditLine - single line edit
-EditBox - multiline editor
-VSpacer - vertical spacer - just an empty widget with layoutHeight == FILL_PARENT, to fill vertical space in layouts
-HSpacer - horizontal spacer - just an empty widget with layoutWidth == FILL_PARENT, to fill horizontal space in layouts
-ScrollBar - scroll bar
-TabControl - tabs widget, allows to select one of tabs
-TabHost - container for pages controlled by TabControl
-TabWidget - combination of TabControl and TabHost
-GridWidgetBase - abstract Grid widget
-StringGrid - grid view with strings content
-TreeWidget - tree view
-ComboBox - combo box with text items
-
-
- Layouts
-
-Similar to layouts in Android
-
-
-LinearLayout - layout children horizontally or vertically depending on orientation
-VerticalLayout - just a LinearLayout with vertical orientation
-HorizontalLayout - just a LinearLayout with vertical orientation
-FrameLayout - all children occupy the same place; usually onle one of them is visible
-TableLayout - children are aligned into rows and columns of table
-
- List Views
-
-Lists are implemented similar to Android UI API.
-
-
-ListWidget - layout dynamic items horizontally or vertically (one in row/column) with automatic scrollbar; can reuse widgets for similar items
-ListAdapter - interface to provide data and widgets for ListWidget
-WidgetListAdapter - simple implementation of ListAdapter interface - just a list of widgets (one per list item) to show
- TODOs:
-
-
-Multicolumn lists
-Tree view
-
- Resources
-
-Resources like fonts and images use reference counting. For proper resource freeing, always destroy widgets implicitly.
-
-
-FontManager: provides access to fonts
-Images: .png or .jpg images; if filename ends with .9.png, it's autodetected as nine-patch image (see Android drawables description)
-StateDrawables: .xml file can describe list of other drawables to choose based on widget's State (.xml files from android themes can be used directly)
-imageCache allows to cache unpacked images
-drawableCache provides access by resource id (string, usually filename w/o extension) to drawables located in specified list of resource directories.
-
- Styles and Themes
-
-Styles and themes are a bit similar to ones in Android API.
-
-
-Theme is a container for styles. Can be load from XML theme resource file.
-Styles are accessible in theme by string ID.
-Styles can be nested to form hiararchy - when some attribute is missing in style, value from base style will be used.
-State substyles are supported: allow to change widget appearance dynamically based on its state.
-Widgets use style attributes directly from assigned style. When some attribute is being changed in widget, it creates its own copy of base style,
-which allows to modify some of attributes, while getting base style attributes if they are not changed in widget. This trick can minimize memory usage for widget attributes when
-standard values are used.
-
- Win32 builds
-
-
-Under windows, uses SDL2 or Win32 API as backend.
-Optionally, may use OpenGL acceleration via DerelictGL3/WGL.
-Uses Win32 API for font rendering.
-Optinally can use FreeType for font rendering.
- Build and run using DUB:
-
- git clone https://github.com/buggins/dlangui.git
- cd dlangui
- dub run dlangui:example1
-
-
-To develop using Visual-D, download sources for dlabgui and dependencies into some directory:
-
- git clone https://github.com/buggins/dlangui.git
- git clone https://github.com/DerelictOrg/DerelictUtil.git
- git clone https://github.com/DerelictOrg/DerelictGL3.git
- git clone https://github.com/DerelictOrg/DerelictFI.git
- git clone https://github.com/DerelictOrg/DerelictFT.git
- git clone https://github.com/DerelictOrg/DerelictSDL2.git
-
-
-Then open .sln using Visual D.
-
-
- Linux builds
-
-
-Uses SDL2 or XCB as a backend (SDL2 is recommended, since has better support now).
-Uses shared memory images for faster drawing.
-Uses FreeType for font rendering.
-TODO: Use FontConfig to get font list.
-OpenGL is now working under SDL2 only.
-Entering of unicode characters is now working under SDL2 only.
- For linux build with SDL2 backend, following libraries are required:
-
- libsdl2
-
-
-To build dlangui apps with XCB backend, development packages for following libraries required for XCB backend build:
-
- xcb, xcb-util, xcb-shm, xcb-image, xcb-keysyms, X11-xcb, X11
-
-
-E.g. in Ubuntu, you can use following command to enable SDL2 backend builds:
-
- sudo apt-get install libsdl2-dev
-
-
-or (for XCB backend)
-
- sudo apt-get install libxcb-image0-dev libxcb-shm0-dev libxcb-keysyms1-dev libfreeimage-dev
-
-
-
-In runtime, .so for following libraries are being loaded (binary packages required):
-
- freetype, opengl, freeimage
-
-
-Build and run on Linux using DUB:
-
- dub run dlangui:example1
-
-
-Development using Mono-D:
-
-
-open solution dlangui/dlanguimonod.sln
-build and run project example1
- You need fresh version of MonoDevelop to use Mono-D. It can be installed from PPA repository.
-
- sudo add-apt-repository ppa:ermshiperete/monodevelop
- sudo apt-get update
- sudo apt-get install monodevelop-current
-
-
-
- Other platforms
-
-
-Other platforms support may be added easy
-
- Third party components used
-
-
-DerelictGL3 - for OpenGL support
-DerelictFT + FreeType library support under linux and optionally under Windows.
-DerelictFI + FreeImage library support for decoding of images
-DerelictSDL2 + SDL2 for cross platform support
-WindowsAPI bindings from http://www.dsource.org/projects/bindings/wiki/WindowsApi (patched)
-XCB and X11 bindings (patched) when SDL2 is not used; TODO: provide links
-
- Hello World
-
-Sample code:
-
-// main.d
- import dlangui.all;
-mixin DLANGUI_ENTRY_POINT;
-
-/// entry point for dlangui based application
- extern (C) int UIAppMain(string[] args) {
- // resource directory search paths
- string[] resourceDirs = [
- appendPath(exePath, "../res/" ), // for Visual D and DUB builds
- appendPath(exePath, "../../res/" ) // for Mono-D builds
- ];
-
- // setup resource directories - will use only existing directories
- Platform.instance.resourceDirs = resourceDirs;
- // select translation file - for english language
- Platform.instance.uiLanguage = "en" ;
- // load theme from file "theme_default.xml"
- Platform.instance.uiTheme = "theme_default" ;
-
- // create window
- Window window = Platform.instance.createWindow("My Window" , null );
- // create some widget to show in window
- window.mainWidget = (new Button()).text("Hello world"d ).textColor(0xFF0000); // red text
- // show window
- window.show();
- // run message loop
- return Platform.instance.enterMessageLoop();
-}
-
-
-Sample dub.json:
-{
- "name" : "myproject" ,
- "description" : "sample DLangUI project" ,
- "homepage" : "https://github.com/buggins/dlangui" ,
- "license" : "Boost" ,
- "authors" : ["Vadim Lopatin" ],
-
- "targetName" : "example" ,
- "targetPath" : "bin" ,
- "targetType" : "executable" ,
-
- "sourcePaths" : ["src" ],
-
- "sourceFiles" : [
- "src/app.d"
- ],
-
- "copyFiles-windows" : [
- "lib/FreeImage.dll"
- ],
-
- "copyFiles" : [
- "res"
- ],
-
- "dependencies" : {
- "dlangui:dlanguilib" : "~master"
- }
-}
-
-
-There is sample project which is using DLangUI.
-
-https://github.com/buggins/dlangide
-
-
-
-
-
-
-
-
diff --git a/javascripts/main.js b/javascripts/main.js
deleted file mode 100644
index d8135d37..00000000
--- a/javascripts/main.js
+++ /dev/null
@@ -1 +0,0 @@
-console.log('This would be the main JS file.');
diff --git a/layouts.html b/layouts.html
deleted file mode 100644
index fb8a40da..00000000
--- a/layouts.html
+++ /dev/null
@@ -1,185 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.widgets.layouts
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.widgets.layouts
-
-This module contains common layouts implementations.
-
-Layouts are similar to the same in Android.
-
-
-LinearLayout - either VerticalLayout or HorizontalLayout.
-VerticalLayout - just LinearLayout with orientation=Orientation.Vertical
-HorizontalLayout - just LinearLayout with orientation=Orientation.Vertical
-FrameLayout - children occupy the same place, usually one one is visible at a time
-TableLayout - children aligned into rows and columns
-
-
-
-
-Synopsis:
-import dlangui.widgets.layouts ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- struct LayoutItem ;
-
-helper for layouts
-
- void set (Widget widget , Orientation orientation );
-
-sets item for widget
-
-
- void measure (int parentWidth , int parentHeight );
-
-set item and measure it
-
-
-
-
- class LayoutItems ;
-
-helper class for layouts
-
- Point measure (int parentWidth , int parentHeight );
-
-fill widget layout list with Visible or Invisible items, measure them
-
-
- void setWidgets (ref WidgetList widgets );
-
-fill widget layout list with Visible or Invisible items, measure them
-
-
-
-
- class ResizerWidget : dlangui.widgets.widget.Widget ;
-
-Resizer control.
- Put it between other items in LinearLayout to allow resizing its siblings.
- While dragging, it will resize previous and next children in layout.
-
- uint getCursorType (int x , int y );
-
-returns mouse cursor type for widget
-
-
- void measure (int parentWidth , int parentHeight );
-
-Measure widget according to desired width and height constraints. (Step 1 of two phase layout).
-
-
-
- void layout (Rect rc );
-
-Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout ).
-
-
- bool onMouseEvent (MouseEvent event );
-
-process mouse event ; return true if event is processed by widget.
-
-
-
-
- class FrameLayout : dlangui.widgets.widget.WidgetGroup ;
-
-place all children into same place (usually, only one child should be visible at a time)
-
- void measure (int parentWidth , int parentHeight );
-
-Measure widget according to desired width and height constraints. (Step 1 of two phase layout).
-
-
- void layout (Rect rc );
-
-Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout ).
-
-
- void onDraw (DrawBuf buf );
-
-Draw widget at its position to buffer
-
-
- bool showChild (string ID , Visibility otherChildrenVisibility = Visibility.Invisible, bool updateFocus = false);
-
-make one of children (with specified ID ) visible, for the rest, set visibility to otherChildrenVisibility
-
-
-
-
- class TableLayout : dlangui.widgets.widget.WidgetGroup ;
-
-layout children as table with rows and columns
-
- @property int colCount ();
-
-number of columns
-
-
- void measure (int parentWidth , int parentHeight );
-
-Measure widget according to desired width and height constraints. (Step 1 of two phase layout).
-
-
- void layout (Rect rc );
-
-Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout ).
-
-
- void onDraw (DrawBuf buf );
-
-Draw widget at its position to buffer
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/linestream.html b/linestream.html
deleted file mode 100644
index da1a8bbb..00000000
--- a/linestream.html
+++ /dev/null
@@ -1,94 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.core.linestream
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.core.linestream
-
-This module contains text file reader implementation.
-
-Support utf8, utf16, utf32 be and le encodings, and line endings - according to D language source file specification.
-
-
-Low resource consuming. Doesn't flood with GC allocations. Dup line if you want to store it somewhere.
-
-
-Tracks line number.
-
-
-
-
-Synopsis:
-import dlangui.core.linestream ;
-
-import std.stdio;
-import std.conv;
-import std.utf;
-string fname = "somefile.d" ;
-writeln("opening file" );
-std.stream.File f = new std.stream.File(fname);
-scope (exit) { f.close(); }
-try {
- LineStream lines = LineStream.create(f, fname);
- for (;;) {
- dchar [] s = lines.readLine();
- if (s is null )
- break ;
- writeln("line " ~ to!string(lines.line()) ~ ":" ~ toUTF8(s));
- }
- if (lines.errorCode != 0) {
- writeln("Error " , lines.errorCode, " " , lines.errorMessage, " -- at line " , lines.errorLine, " position " , lines.errorPos);
- } else {
- writeln("EOF reached" );
- }
-} catch (Exception e) {
- writeln("Exception " ~ e.toString);
-}
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
-
-
-
-
-
-
-
-
diff --git a/lists.html b/lists.html
deleted file mode 100644
index 5a4e7ef2..00000000
--- a/lists.html
+++ /dev/null
@@ -1,387 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.widgets.lists
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.widgets.lists
-
-This module contains list widgets implementation.
-
-Similar to lists implementation in Android UI API.
-
-
-Synopsis:
-import dlangui.widgets.lists ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- interface ListAdapter ;
-
-list widget adapter provides items for list widgets
-
- abstract @property int itemCount ();
-
-returns number of widgets in list
-
-
- abstract Widget itemWidget (int index );
-
-return list item widget by item index
-
-
- abstract uint itemState (int index );
-
-return list item's state flags
-
-
- abstract uint setItemState (int index , uint flags );
-
-set one or more list item's state flags , returns updated state
-
-
- abstract uint resetItemState (int index , uint flags );
-
-reset one or more list item's state flags , returns updated state
-
-
-
-
- class WidgetListAdapter : dlangui.widgets.lists.ListAdapter ;
-
-List adapter for simple list of widget instances
-
- @property ref WidgetList widgets ();
-
-list of widgets to display
-
-
- @property int itemCount ();
-
-returns number of widgets in list
-
-
- Widget itemWidget (int index );
-
-return list item widget by item index
-
-
- uint itemState (int index );
-
-return list item's state flags
-
-
- uint setItemState (int index , uint flags );
-
-set one or more list item's state flags , returns updated state
-
-
- uint resetItemState (int index , uint flags );
-
-reset one or more list item's state flags , returns updated state
-
-
-
-
- class StringListAdapter : dlangui.widgets.lists.ListAdapter ;
-
-List adapter providing strings only.
-
- this();
-
-create empty string list adapter.
-
-
- this(string[] items );
-
-Init with array of string resource IDs.
-
-
- this(dstring[] items );
-
-Init with array of unicode strings.
-
-
- @property ref UIStringCollection items ();
-
-Access to items collection.
-
-
- @property int itemCount ();
-
-returns number of widgets in list
-
-
- Widget itemWidget (int index );
-
-return list item widget by item index
-
-
- uint itemState (int index );
-
-return list item's state flags
-
-
- uint setItemState (int index , uint flags );
-
-set one or more list item's state flags , returns updated state
-
-
- uint resetItemState (int index , uint flags );
-
-reset one or more list item's state flags , returns updated state
-
-
-
-
- interface OnItemSelectedHandler ;
-
-interface - slot for onItemSelectedListener
-
-
- interface OnItemClickHandler ;
-
-interface - slot for onItemClickListener
-
-
- class ListWidget : dlangui.widgets.widget.WidgetGroup , dlangui.widgets.controls.OnScrollHandler ;
-
-List widget - shows content as hori
-
- Signal!OnItemSelectedHandler onItemSelectedListener ;
-
-Handle selection change.
-
-
- Signal!OnItemSelectedHandler onItemClickListener ;
-
-Handle item click.
-
-
- @property Orientation orientation ();
-
-returns linear layout orientation (Vertical, Horizontal)
-
-
- @property ListWidget orientation (Orientation value );
-
-sets linear layout orientation
-
-
- protected int _firstVisibleItem ;
-
-first visible item index
-
-
- protected int _scrollPosition ;
-
-scroll position - offset of scroll area
-
-
- protected int _maxScrollPosition ;
-
-maximum scroll position
-
-
- protected Rect _clientRc ;
-
-client area rectangle (counting padding, margins, and scrollbar)
-
-
- protected int _totalSize ;
-
-total height of all items for Vertical orientation, or width for Horizontal
-
-
- protected int _hoverItemIndex ;
-
-item with Hover state, -1 if no such item
-
-
- protected int _selectedItemIndex ;
-
-item with Selected state, -1 if no such item
-
-
- protected bool _selectOnHover ;
-
-when true , mouse hover selects underlying item
-
-
- @property bool selectOnHover ();
-
-when true , mouse hover selects underlying item
-
-
- @property ListWidget selectOnHover (bool select );
-
-when true , mouse hover selects underlying item
-
-
- protected bool _clickOnButtonDown ;
-
-if true , generate itemClicked on mouse down instead mouse up event
-
-
- Rect itemRectNoScroll (int index );
-
-returns rectangle for item (not scrolled, first item starts at 0,0)
-
-
- Rect itemRect (int index );
-
-returns rectangle for item (scrolled)
-
-
- int itemByPosition (int pos );
-
-returns item index by 0-based offset from top/left of list content
-
-
- protected bool _ownAdapter ;
-
-when true , need to destroy adapter on list destroy
-
-
- @property ListAdapter adapter ();
-
-get adapter
-
-
- @property ListWidget adapter (ListAdapter adapter );
-
-set adapter
-
-
- @property ListWidget ownAdapter (ListAdapter adapter );
-
-set adapter , which will be owned by list (destroy will be called for adapter on widget destroy)
-
-
- @property int itemCount ();
-
-returns number of widgets in list
-
-
- Widget itemWidget (int index );
-
-return list item widget by item index
-
-
- bool itemEnabled (int index );
-
-returns true if item with corresponding index is enabled
-
-
- protected void selectionChanged (int index , int previouslySelectedItem = -1);
-
-override to handle change of selection
-
-
- protected void itemClicked (int index );
-
-override to handle mouse up on item
-
-
- protected void handleFocusChange (bool focused );
-
-override to handle focus changes
-
-
- void makeSelectionVisible ();
-
-ensure selected item is visible (scroll if necessary)
-
-
- void makeItemVisible (int itemIndex );
-
-ensure item is visible
-
-
- bool moveSelection (int direction , bool wrapAround = true);
-
-move selection
-
-
- @property int selectedItemIndex ();
-
-Selected item index.
-
-
- bool onScrollEvent (AbstractSlider source , ScrollEvent event );
-
-handle scroll event
-
-
- void measure (int parentWidth , int parentHeight );
-
-Measure widget according to desired width and height constraints. (Step 1 of two phase layout).
-
-
- void layout (Rect rc );
-
-Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout ).
-
-
- void onDraw (DrawBuf buf );
-
-Draw widget at its position to buffer
-
-
- bool onKeyEvent (KeyEvent event );
-
-list navigation using keys
-
-
- bool onMouseEvent (MouseEvent event );
-
-process mouse event ; return true if event is processed by widget.
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/logger.html b/logger.html
deleted file mode 100644
index d7053b17..00000000
--- a/logger.html
+++ /dev/null
@@ -1,68 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.core.logger
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.core.logger
-
-This module contains logger implementation.
-
-Synopsis:
-import dlangui.core.logger ;
-
-// use stderror for logging
- setStderrLogger();
-// set log level
- setLogLevel(LogLeve.Debug);
-// log debug message
- Log.d("mouse clicked at " , x, "," , y);
-// log error message
- Log.d("exception while reading file" , e);
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
-
-
-
-
-
-
-
-
diff --git a/menu.html b/menu.html
deleted file mode 100644
index 48dcb46b..00000000
--- a/menu.html
+++ /dev/null
@@ -1,335 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.widgets.menu
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.widgets.menu
-
-This module contains menu widgets implementation.
-
-MenuItem - menu item properties container - to hold hierarchy of menu .
-MainMenu - main menu widget
-PopupMenu - popup menu widget
-
-
-Synopsis:
-import dlangui.widgets.popup;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- enum MenuItemType : int;
-
-menu item type
-
-Normal
-normal menu item
-
-
-Check
-menu item - checkbox
-
-
-Radio
-menu item - radio button
-
-
-Separator
-menu separator (horizontal line)
-
-
-Submenu
-submenu - contains child items
-
-
-
-
- interface MenuItemClickHandler ;
-
-interface to handle menu item click
-
-
- interface MenuItemActionHandler ;
-
-interface to handle menu item action
-
-
- class MenuItem ;
-
-menu item properties
-
- Signal!MenuItemClickHandler onMenuItemClick ;
-
-handle menu item click (parameter is MenuItem)
-
-
- Signal!MenuItemActionHandler onMenuItemAction ;
-
-handle menu item click action (parameter is Action)
-
-
- @property int id ();
-
-item action id , 0 if no action
-
-
- @property int subitemCount ();
-
-returns count of submenu items
-
-
- @property int subitemIndex (MenuItem item );
-
-returns subitem index for item , -1 if item is not direct subitem of this
-
-
- MenuItem subitem (int index );
-
-returns submenu item by index
-
-
- @property MenuItem type (MenuItemType type );
-
-set new MenuItemType
-
-
- @property bool checked ();
-
-get check for checkbox or radio button item
-
-
- protected void checkRadioButton (int index );
-
-check radio button with specified index , uncheck other radio buttons in group (group consists of sequence of radio button items; other item type - end of group)
-
-
- @property MenuItem checked (bool flg );
-
-set check for checkbox or radio button item
-
-
- dchar getHotkey ();
-
-get hotkey character from label (e.g. 'F' for item labeled "&File"), 0 if no hotkey
-
-
- int findSubitemByHotkey (dchar ch );
-
-find subitem by hotkey character, returns subitem index, -1 if not found
-
-
- MenuItem add (MenuItem subitem );
-
-adds submenu item
-
-
- MenuItem add (Action subitemAction );
-
-adds submenu item from action
-
-
- @property dstring acceleratorText ();
-
-returns text description for first accelerator of action; null if no accelerators
-
-
- @property bool isSubmenu ();
-
-returns true if item is submenu (contains subitems)
-
-
- @property UIString label ();
-
-returns item label
-
-
- const @property const(Action) action ();
-
-returns item action
-
-
- @property MenuItem action (Action a );
-
-sets item action
-
-
- @property bool enabled ();
-
-menu item Enabled flag
-
-
- @property MenuItem enabled (bool enabled );
-
-menu item Enabled flag
-
-
- Signal!(void, MenuItem) onMenuItem ;
-
-handle menu item click
-
-
- Signal!(bool, MenuItem) onBeforeOpeningSubmenu ;
-
-prepare for opening of submenu, return true if opening is allowed
-
-
-
-
- class MenuItemWidget : dlangui.widgets.widget.WidgetGroup ;
-
-widget to draw menu item
-
- void measure (int parentWidth , int parentHeight );
-
-Measure widget according to desired width and height constraints. (Step 1 of two phase layout).
-
-
- void layout (Rect rc );
-
-Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout ).
-
-
- void onDraw (DrawBuf buf );
-
-Draw widget at its position to buffer
-
-
-
-
- class MenuWidgetBase : dlangui.widgets.lists.ListWidget ;
-
-base class for menus
-
- Signal!MenuItemClickHandler onMenuItemClickListener ;
-
-menu item click listener
-
-
- Signal!MenuItemActionHandler onMenuItemActionListener ;
-
-menu item action listener
-
-
- void measure (int parentWidth , int parentHeight );
-
-Measure widget according to desired width and height constraints. (Step 1 of two phase layout).
-
-
- protected void selectionChanged (int index , int previouslySelectedItem = -1);
-
-override to handle change of selection
-
-
- protected void itemClicked (int index );
-
-override to handle mouse up on item
-
-
- @property PopupWidget thisPopup ();
-
-returns popup this menu is located in
-
-
- bool onKeyEvent (KeyEvent event );
-
-list navigation using keys
-
-
-
-
- class MainMenu : dlangui.widgets.menu.MenuWidgetBase ;
-
-main menu (horizontal)
-
- @property bool wantsKeyTracking ();
-
-override and return true to track key events even when not focused
-
-
- @property uint textFlags ();
-
-get text flags (bit set of TextFlag enum values)
-
-
- @property bool activated ();
-
-return true if main menu is activated (focused or has open submenu)
-
-
- void activate ();
-
-bring focus to main menu, if not yet activated
-
-
- void deactivate (bool force = false);
-
-close and remove focus, if activated
-
-
- bool toggle ();
-
-activate or deactivate main menu, return true if it has been activated
-
-
- protected void handleFocusChange (bool focused );
-
-override to handle focus changes
-
-
- bool onKeyEvent (KeyEvent event );
-
-list navigation using keys
-
-
-
-
- class PopupMenu : dlangui.widgets.menu.MenuWidgetBase ;
-
-popup menu widget (vertical layout of items)
-
-
-
-
-
-
-
-
-
-
-
diff --git a/platform.html b/platform.html
deleted file mode 100644
index 95c4299f..00000000
--- a/platform.html
+++ /dev/null
@@ -1,290 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.platforms.common.platform
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.platforms.common.platform
-
-This module contains common Plaform definitions.
-
-Platform is abstraction layer for application.
-
-
-
-
-Synopsis:
-import dlangui.platforms.common.platform ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- enum WindowFlag : uint;
-
-window creation flags
-
-Resizable
-window can be resized
-
-
-Fullscreen
-window should be shown in fullscreen mode
-
-
-Modal
-modal window - grabs input focus
-
-
-
-
- abstract class Window ;
-
-Window abstraction layer. Widgets can be shown only inside window.
-
-
- abstract @property dstring windowCaption ();
-
-returns window caption
-
-
- abstract @property void windowCaption (dstring caption );
-
-sets window caption
-
-
- abstract @property void windowIcon (DrawBufRef icon );
-
-sets window icon
-
-
- void requestLayout ();
-
-requests layout for main widget and popups
-
-
- PopupWidget showPopup (Widget content , Widget anchor = null, uint alignment = PopupAlign.Center, int x = 0, int y = 0);
-
-show new popup
-
-
- bool removePopup (PopupWidget popup );
-
-remove popup
-
-
- bool isChild (Widget w );
-
-returns true if widget is child of either main widget or one of popups
-
-
- void scheduleAnimation ();
-
-after drawing, call to schedule redraw if animation is active
-
-
- @property Widget focusedWidget ();
-
-returns current focused widget
-
-
- Widget setFocus (Widget newFocus );
-
-change focus to widget
-
-
- bool dispatchKeyEvent (KeyEvent event );
-
-dispatch keyboard event
-
-
- protected Widget[] _mouseTrackingWidgets ;
-
-widget which tracks Move events
-
-
- protected Widget _mouseCaptureWidget ;
-
-widget which tracks all events after processed ButtonDown
-
-
- protected bool _mouseCaptureFocusedOutTrackMovements ;
-
-does current capture widget want to receive move events even if pointer left it
-
-
- bool isMouseCaptured ();
-
-returns true if mouse is currently captured
-
-
- bool dispatchMouseEvent (MouseEvent event );
-
-dispatch mouse event to window content widgets
-
-
- protected void checkUpdateNeeded (Widget root , ref bool needDraw , ref bool needLayout , ref bool animationActive );
-
-checks content widgets for necessary redraw and/or layout
-
-
- protected void setCursorType (uint cursorType );
-
-sets cursor type for window
-
-
- bool checkUpdateNeeded (ref bool needDraw , ref bool needLayout , ref bool animationActive );
-
-checks content widgets for necessary redraw and/or layout
-
-
- void update (bool force = false);
-
-requests update for window (unless force is true , update will be performed only if layout, redraw or animation is required).
-
-
- abstract void invalidate ();
-
-request window redraw
-
-
- abstract void close ();
-
-close window
-
-
-
-
- abstract class Platform ;
-
-Platform abstraction layer.
-
-Represents application.
-
- abstract Window createWindow (dstring windowCaption , Window parent , uint flags = WindowFlag.Resizable);
-
-create window
-
-Args:
-windowCaption = window caption text
- parent = parent Window, or null if no parent
- flags = WindowFlag bit set, combination of Resizable, Modal, Fullscreen
-
-
- Window w/o Resizable nor Fullscreen will be created with size based on measurement of its content widget
-
-
- abstract void closeWindow (Window w );
-
-close window
-
-Closes window earlier created with createWindow()
-
-
- abstract int enterMessageLoop ();
-
-Starts application message loop.
-
-When returned from this method, application is shutting down.
-
-
- abstract dstring getClipboardText (bool mouseBuffer = false);
-
-retrieves text from clipboard (when mouseBuffer == true , use mouse selection clipboard - under linux)
-
-
- abstract void setClipboardText (dstring text , bool mouseBuffer = false);
-
-sets text to clipboard (when mouseBuffer == true , use mouse selection clipboard - under linux)
-
-
- abstract void requestLayout ();
-
-calls request layout for all windows
-
-
- @property string uiLanguage ();
-
-returns currently selected UI language code
-
-
- @property Platform uiLanguage (string langCode );
-
-set UI language (e.g. "en", "fr", "ru") - will relayout content of all windows if language has been changed
-
-
- @property Platform uiTheme (string themeResourceId );
-
-sets application UI theme - will relayout content of all windows if theme has been changed
-
-
- @property string[] resourceDirs ();
-
-returns list of resource directories
-
-
- @property Platform resourceDirs (string[] dirs );
-
-set list of directories to load resources from
-
-
-
-
- @property Platform platform ();
-
-get current platform object instance
-
-
- template APP_ENTRY_POINT ()
-put "mixin APP_ENTRY_POINT ;" to main module of your dlangui based app
-
- int WinMain (void* hInstance , void* hPrevInstance , char* lpCmdLine , int nCmdShow );
-
-workaround for link issue when WinMain is located in library
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/popup.html b/popup.html
deleted file mode 100644
index 4f631670..00000000
--- a/popup.html
+++ /dev/null
@@ -1,173 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.widgets.popup
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.widgets.popup
-
-This module contains popup widgets implementation.
-
-Popups appear above other widgets inside window.
-
-
-Useful for popup menus, notification popups, etc.
-
-
-Synopsis:
-import dlangui.widgets.popup ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- enum PopupAlign : uint;
-
-popup alignment option flags
-
-Center
-center popup around anchor widget center
-
-
-Below
-place popup below anchor widget close to lower bound
-
-
-Right
-place popup below anchor widget close to right bound (when no space enough, align near left bound)
-
-
-Point
-align to specified point
-
-
-FitAnchorSize
-if popup content size is less than anchor's size, increase it to anchor size
-
-
-
-
- enum PopupFlags : uint;
-
-popup behavior flags - for PopupWidget.flags property
-
-CloseOnClickOutside
-close popup when mouse button clicked outside of its bounds
-
-
-
-
- interface OnPopupCloseHandler ;
-
-interface - slot for onPopupCloseListener
-
-
- class PopupWidget : dlangui.widgets.layouts.LinearLayout ;
-
-popup widget container
-
- Signal!OnPopupCloseHandler onPopupCloseListener ;
-
-popup close signal
-
-
- @property uint flags ();
-
-popup close listener (called right before closing)
-
-set popup close listener (to call right before closing)
-
-
-returns popup behavior flags (combination of PopupFlags)
-
-
- @property PopupWidget flags (uint flags );
-
-set popup behavior flags (combination of PopupFlags)
-
-
- @property ref PopupAnchor anchor ();
-
-access to popup anchor
-
-
- bool modal ();
-
-returns true if popup is modal
-
-
- PopupWidget modal (bool modal );
-
-set modality flag
-
-
- void measure (int parentWidth , int parentHeight );
-
-Measure widget according to desired width and height constraints. (Step 1 of two phase layout).
-
-
- void close ();
-
-close and destroy popup
-
-
- void onClose ();
-
-just call on close listener
-
-
- void layout (Rect rc );
-
-Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout ).
-
-
- bool onMouseEventOutside (MouseEvent event );
-
-called for mouse activity outside shown popup bounds
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/resources.html b/resources.html
deleted file mode 100644
index 56d5287e..00000000
--- a/resources.html
+++ /dev/null
@@ -1,165 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.graphics.resources
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.graphics.resources
-
-This module contains resource management and drawables implementation.
-
-imageCache is RAM cache of decoded images (as DrawBuf).
-
-
-drawableCache is cache of Drawables.
-
-
-Supports nine-patch PNG images in .9.png files (like in Android).
-
-
-Supports state drawables using XML files similar to ones in Android.
-
-
-Synopsis:
-import dlangui.graphics.resources ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- class FrameDrawable : dlangui.graphics.resources.Drawable ;
-
-solid borders (may be of different width) and, optionally, solid inner area
-
-
- static uint decodeHexColor (string s );
-
-decode color string #AARRGGBB, e.g. #5599AA
-
-
- static uint decodeDimension (string s );
-
-decode size string, e.g. 1px or 2 or 3pt
-
-
- static Drawable createColorDrawable (string s );
-
-decode solid color / gradient / frame drawable from string like #AARRGGBB, e.g. #5599AA
-
-SolidFillDrawable:
-#AARRGGBB - e.g. #8090A0 or #80ffffff
-
-
-FrameDrawable:
-#frameColor,frameWidth[,#middleColor]
-
-
-or #frameColor,leftBorderWidth,topBorderWidth,rightBorderWidth,bottomBorderWidth[,#middleColor]
-
-
-e.g. #000000,2,#C0FFFFFF - black frame of width 2 with 75% transparent white middle
-
-
-e.g. #0000FF,2,3,4,5,#FFFFFF - blue frame with left,top,right,bottom borders of width 2,3,4,5 and white inner area
-
-
- void extractStateFlags (ref string[string] attr , ref uint stateMask , ref uint stateValue );
-
-converts XML attribute name to State (see http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList)
-
-
- class StateDrawable : dlangui.graphics.resources.Drawable ;
-
-Drawable which is drawn depending on state (see http://developer.android.com/guide/topics/resources/drawable-resource.html#StateList)
-
- bool parseList4 (T)(string value , ref T[4] items );
-
-parse 4 comma delimited integers
-
-
- bool load (string filename );
-
-load from XML file
-
-
-
-
- class ImageCache ;
-
-decoded raster images cache (png, jpeg) -- access by filenames
-
- ref DrawBufRef get (string filename );
-
-get and cache image
-
-
- ref DrawBufRef get (string filename , ref ColorTransform transform );
-
-get and cache color transformed image
-
-
-
-
- @property ImageCache imageCache ();
-
-image cache singleton
-
-
- @property void imageCache (ImageCache cache );
-
-image cache singleton
-
-
- @property DrawableCache drawableCache ();
-
-drawable cache singleton
-
-
- @property void drawableCache (DrawableCache cache );
-
-drawable cache singleton
-
-
-
-
-
-
-
-
-
-
-
diff --git a/screenshots.html b/screenshots.html
deleted file mode 100644
index a3539052..00000000
--- a/screenshots.html
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - screenshots
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- screenshots
-
-
-
-
-
- Buttons demo
-
-
- Editors demo
-
-
- Table layout
-
-
- Various widgets, vertical and horizontal layouts
-
-
- Animation, i18n, theme with bigger fonts and dark main menu
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/screenshots/screenshot1.png b/screenshots/screenshot1.png
deleted file mode 100644
index 223fdb09..00000000
Binary files a/screenshots/screenshot1.png and /dev/null differ
diff --git a/screenshots/screenshot2.png b/screenshots/screenshot2.png
deleted file mode 100644
index da800c1f..00000000
Binary files a/screenshots/screenshot2.png and /dev/null differ
diff --git a/screenshots/screenshot3.png b/screenshots/screenshot3.png
deleted file mode 100644
index 7000130e..00000000
Binary files a/screenshots/screenshot3.png and /dev/null differ
diff --git a/screenshots/screenshot4.png b/screenshots/screenshot4.png
deleted file mode 100644
index 067dbe80..00000000
Binary files a/screenshots/screenshot4.png and /dev/null differ
diff --git a/screenshots/screenshot5.png b/screenshots/screenshot5.png
deleted file mode 100644
index 1fd4e9b3..00000000
Binary files a/screenshots/screenshot5.png and /dev/null differ
diff --git a/scroll.html b/scroll.html
deleted file mode 100644
index 5d117000..00000000
--- a/scroll.html
+++ /dev/null
@@ -1,91 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.widgets.scroll
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.widgets.scroll
-
-
- enum ScrollBarMode : int;
-
-Scroll bar visibility mode.
-
-Invisible
-always invisible
-
-
-Visible
-always visible
-
-
-Auto
-automatically show/hide scrollbar depending on content size
-
-
-
-
- class ScrollWidget : dlangui.widgets.scroll.ScrollWidgetBase ;
-
-Widget which can show content of widget group with optional scrolling.
-
- Point fullContentSize ();
-
-calculate full content size in pixels
-
-
- protected void updateScrollBars ();
-
-update scrollbar positions
-
-
- bool onHScroll (ScrollEvent event );
-
-process horizontal scrollbar event
-
-
- bool onVScroll (ScrollEvent event );
-
-process vertical scrollbar event
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/sdlapp.html b/sdlapp.html
deleted file mode 100644
index 77bc3992..00000000
--- a/sdlapp.html
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.platforms.sdl.sdlapp
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.platforms.sdl.sdlapp
-
-This module contains implementation of SDL2 based backend for dlang library.
-
-Synopsis:
-import dlangui.platforms.sdl.sdlapp ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
-
-
-
-
-
-
-
-
diff --git a/signals.html b/signals.html
deleted file mode 100644
index 8951a3e9..00000000
--- a/signals.html
+++ /dev/null
@@ -1,268 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.core.signals
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.core.signals
-
-This module contains definition of signals / listeners.
-
-Similar to std.signals .
-
-
-Unlike std.signals , supports any types of delegates, and as well interfaces with single method.
-
-
-Unlike std.signals , can support return types for slots.
-
-
-Caution:
-unlike std.signals , does not disconnect signal from slots belonging to destroyed objects.
-
-
-Listener here stand for holder of single delegate (slot).
-Signal is the same but supports multiple slots.
-
-
-Can be declared either using list of result value and argument types, or by interface name with single method.
-
-
-
-
-Synopsis:
-import dlangui.core.signals ;
-
-interface SomeInterface {
- bool someMethod(string s, int n);
-}
-class Foo : SomeInterface {
- override bool someMethod(string s, int n) {
- writeln("someMethod called " , s, ", " , n);
- return n > 10; // can return value
- }
-}
-
-// Listener! can hold arbitrary number of connected slots
-
-// declare using list of return value and parameter types
- Listener!(bool , string, n) signal1;
-
-Foo f = new Foo();
-// when signal is defined as type list, you can use delegate
- signal1 = bool delegate (string s, int n) { writeln("inside delegate - " , s, n); return false ; }
-// or method reference
- signal1 = &f.someMethod;
-
-// declare using interface with single method
- Listener!SomeInterface signal2;
-// you still can use any delegate
- signal2 = bool delegate (string s, int n) { writeln("inside delegate - " , s, n); return false ; }
-// but for class method which overrides interface method, you can use simple syntax
- signal2 = f; // it will automatically take &f.someMethod
-
-
-// call listener(s) either by opcall or explicit emit
- signal1("text" , 1);
-signal1.emit("text" , 2);
-signal2.emit("text" , 3);
-
-// check if any slit is connected
- if (signal1.assigned)
- writeln("has listeners" );
-
-// Signal! can hold arbitrary number of connected slots
-
-// declare using list of return value and parameter types
- Signal!(bool , string, n) signal3;
-
-// add listeners via connect call
- signal3.connect(bool delegate (string, int ) { return false ; });
-// or via ~= operator
- signal3 ~= bool delegate (string, int ) { return false ; };
-
-// declare using interface with single method
- Signal!SomeInterface signal4;
-
-// you can connect several slots to signal
- signal4 ~= f;
-signal4 ~= bool delegate (string, int ) { return true ; }
-
-// calling of listeners of Signal! is similar to Listener!
- // using opCall
- bool res = signal4("blah" , 5);
-// call listeners using emit
- bool res = signal4.emit("blah" , 5);
-
-// you can disconnect individual slots
- // using disconnect()
- signal4.disconnect(f);
-// or -= operator
- signal4 -= f;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- struct Listener (T1) if (is(T1 == interface) && __traits(allMembers, T1).length == 1);
-
-Single listener; parameter is interface with single method
-
- final bool assigned ();
-
-returns true if listener is assigned
-
-
- final void opAssign (slot_t listenerDelegate );
-
-assign delegate
-
-
- final void opAssign (T1 listenerObject );
-
-assign object implementing interface
-
-
-
-
- struct Listener (RETURN_T, T1...);
-
-Single listener; implicitly specified return and parameter types
-
- final bool assigned ();
-
-returns true if listener is assigned
-
-
-
-
- struct Signal (T1) if (is(T1 == interface) && __traits(allMembers, T1).length == 1);
-
-Multiple listeners; implicitly specified return and parameter types
-
- final bool assigned ();
-
-returns true if listener is assigned
-
-
- final void opAssign (slot_t listener );
-
-replace all previously assigned listeners with new one (if null passed, remove all listeners)
-
-
- final void opAssign (T1 listener );
-
-replace all previously assigned listeners with new one (if null passed, remove all listeners)
-
-
- final return_t opCall (params_t params );
-
-call all listeners; for signals having non-void return type, stop iterating when first return value is nonzero
-
-
- final return_t emit (params_t params );
-
-call all listeners; for signals having non-void return type, stop iterating when first return value is nonzero
-
-
- final void connect (slot_t listener );
-
-add listener
-
-
- final void disconnect (slot_t listener );
-
-remove listener
-
-
- final void connect (T1 listener );
-
-add listener - as interface member
-
-
- final void disconnect (T1 listener );
-
-add listener - as interface member
-
-
-
-
- struct Signal (RETURN_T, T1...);
-
-Multiple listeners; implicitly specified return and parameter types
-
- final bool assigned ();
-
-returns true if listener is assigned
-
-
- final void opAssign (slot_t listener );
-
-replace all previously assigned listeners with new one (if null passed, remove all listeners)
-
-
- final RETURN_T opCall (T1 params );
-
-call all listeners; for signals having non-void return type, stop iterating when first return value is nonzero
-
-
- final RETURN_T emit (T1 params );
-
-call all listeners; for signals having non-void return type, stop iterating when first return value is nonzero
-
-
- final void connect (slot_t listener );
-
-add listener
-
-
- final void disconnect (slot_t listener );
-
-remove listener
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/stdaction.html b/stdaction.html
deleted file mode 100644
index f7edacfb..00000000
--- a/stdaction.html
+++ /dev/null
@@ -1,65 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.core.stdaction
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.core.stdaction
-
-Definition of standard actions commonly used in dialogs and controls.
-
-Synopsis:
-import dlangui.core.stdaction ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- enum StandardAction : int;
-
-standard (commonly used) action codes
-
-
-
-
-
-
-
-
-
-
-
diff --git a/styles.html b/styles.html
deleted file mode 100644
index de754222..00000000
--- a/styles.html
+++ /dev/null
@@ -1,508 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.widgets.styles
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.widgets.styles
-
-This module contains declaration of themes and styles implementation.
-
-Style - style container
-Theme - parent for all styles
-
-
-
-
-Synopsis:
-import dlangui.widgets.styles ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- immutable uint COLOR_TRANSPARENT ;
-
-transparent color constant
-
-
- immutable ushort FONT_SIZE_UNSPECIFIED ;
-
-unspecified font size constant - to take parent style property value
-
-
- immutable ushort FONT_WEIGHT_UNSPECIFIED ;
-
-unspecified font weight constant - to take parent style property value
-
-
- immutable ubyte FONT_STYLE_UNSPECIFIED ;
-
-unspecified font style constant - to take parent style property value
-
-
- immutable ubyte FONT_STYLE_NORMAL ;
-
-normal font style constant
-
-
- immutable ubyte FONT_STYLE_ITALIC ;
-
-italic font style constant
-
-
- immutable int SIZE_UNSPECIFIED ;
-
-use as widget.layout() param to avoid applying of parent size
-
-
- immutable uint TEXT_FLAGS_UNSPECIFIED ;
-
-use text flags from parent style
-
-
- immutable uint TEXT_FLAGS_USE_PARENT ;
-
-use text flags from parent widget
-
-
- immutable int FILL_PARENT ;
-
-layout option, to occupy all available place
-
-
- immutable int WRAP_CONTENT ;
-
-layout option, for size based on content
-
-
- immutable int WEIGHT_UNSPECIFIED ;
-
-to take layout weight from parent
-
-
- enum Align : ubyte;
-
-Align option bit constants
-
-Unspecified
-alignment is not specified
-
-
-Left
-horizontally align to the left of box
-
-
-Right
-horizontally align to the right of box
-
-
-HCenter
-horizontally align to the center of box
-
-
-Top
-vertically align to the top of box
-
-
-Bottom
-vertically align to the bottom of box
-
-
-VCenter
-vertically align to the center of box
-
-
-Center
-align to the center of box (VCenter | HCenter)
-
-
-TopLeft
-align to the top left corner of box (Left | Top)
-
-
-
-
- enum TextFlag : uint;
-
-text drawing flag bits
-
-HotKeys
-text contains hot key prefixed with & char (e.g. "&File")
-
-
-UnderlineHotKeys
-underline hot key when drawing
-
-
-UnderlineHotKeysWhenAltPressed
-underline hot key when drawing
-
-
-Underline
-underline text when drawing
-
-
-
-
- class DrawableAttribute ;
-
-custom drawable attribute container for styles
-
-
- class Style ;
-
-style properties
-
- const @property const(Style) parentStyle ();
-
-access to parent style for this style
-
-
- @property Style parentStyle ();
-
-access to parent style for this style
-
-
- ref DrawableRef customDrawable (string id );
-
-get custom drawable attribute
-
-
- const string customDrawableId (string id );
-
-get custom drawable attribute
-
-
- Style setCustomDrawable (string id , string resourceId );
-
-sets custom drawable attribute for style
-
-
- const @property FontFamily fontFamily ();
-
-font size
-
-
- const @property string fontFace ();
-
-font size
-
-
- const @property bool fontItalic ();
-
-font style - italic
-
-
- const @property ushort fontWeight ();
-
-font weight
-
-
- const @property ushort fontSize ();
-
-font size
-
-
- const @property ref const(Rect) padding ();
-
-padding
-
-
- const @property ref const(Rect) margins ();
-
-margins
-
-
- const @property uint alpha ();
-
-alpha (0=opaque .. 255=transparent)
-
-
- const @property uint textColor ();
-
-text color
-
-
- const @property uint textFlags ();
-
-text flags
-
-
- const @property uint backgroundColor ();
-
-background color
-
-
- const @property string backgroundImageId ();
-
-font size
-
-
- const @property uint minWidth ();
-
-minimal width constraint, 0 if limit is not set
-
-
- const @property uint maxWidth ();
-
-max width constraint, returns SIZE_UNSPECIFIED if limit is not set
-
-
- const @property uint minHeight ();
-
-minimal height constraint, 0 if limit is not set
-
-
- const @property uint maxHeight ();
-
-max height constraint, SIZE_UNSPECIFIED if limit is not set
-
-
- @property Style minWidth (int value );
-
-set min width constraint
-
-
- @property Style maxWidth (int value );
-
-set max width constraint
-
-
- @property Style minHeight (int value );
-
-set min height constraint
-
-
- @property Style maxHeight (int value );
-
-set max height constraint
-
-
- const @property uint layoutWidth ();
-
-layout width parameter
-
-
- const @property uint layoutHeight ();
-
-layout height parameter
-
-
- const @property uint layoutWeight ();
-
-layout weight parameter
-
-
- @property Style layoutHeight (int value );
-
-set layout height
-
-
- @property Style layoutWidth (int value );
-
-set layout width
-
-
- @property Style layoutWeight (int value );
-
-set layout weight
-
-
- const @property ubyte alignment ();
-
-get full alignment (both vertical and horizontal)
-
-
- const @property ubyte valign ();
-
-vertical alignment: Top / VCenter / Bottom
-
-
- const @property ubyte halign ();
-
-horizontal alignment: Left / HCenter / Right
-
-
- @property Style alignment (ubyte value );
-
-set alignment
-
-
- Style createSubstyle (string id );
-
-create named substyle of this style
-
-
- Style createState (uint stateMask = 0, uint stateValue = 0);
-
-create state substyle for this style
-
-
- const const(Style) forState (uint state );
-
-find substyle based on widget state (e.g. focused, pressed, ...)
-
-
-
-
- class Theme : dlangui.widgets.styles.Style ;
-
-Theme - root for style hierarhy.
-
- Style modifyStyle (string id );
-
-create wrapper style which will have currentTheme.get(id ) as parent instead of fixed parent - to modify some base style properties in widget
-
-
- const @property string backgroundImageId ();
-
-font size
-
-
- const @property uint minWidth ();
-
-minimal width constraint, 0 if limit is not set
-
-
- const @property uint maxWidth ();
-
-max width constraint, returns SIZE_UNSPECIFIED if limit is not set
-
-
- const @property uint minHeight ();
-
-minimal height constraint, 0 if limit is not set
-
-
- const @property uint maxHeight ();
-
-max height constraint, SIZE_UNSPECIFIED if limit is not set
-
-
- Style createSubstyle (string id );
-
-create new named style or get existing
-
-
- @property Style get (string id );
-
-find style by id , returns theme if not style with specified ID is not found
-
-
- const const(Style) forState (uint state );
-
-find substyle based on widget state (e.g. focused, pressed, ...)
-
-
-
-
- @property Theme currentTheme ();
-
-current theme accessor
-
-
- @property void currentTheme (Theme theme );
-
-set new current theme
-
-
- Rect decodeRect (string s );
-
-decode comma delimited dimension list or single value - and put to Rect
-
-
- ubyte decodeAlignment (string s );
-
-parses string like "Left|VCenter" to bit set of Align flags
-
-
- uint decodeTextFlags (string s );
-
-parses string like "HotKeys|UnderlineHotKeysWhenAltPressed" to bit set of TextFlag flags
-
-
- FontFamily decodeFontFamily (string s );
-
-decode FontFamily item name to value
-
-
- int decodeLayoutDimension (string s );
-
-decode layout dimension (FILL_PARENT, WRAP_CONTENT, or just size)
-
-
- bool loadStyleAttributes (Style style , Element elem , bool allowStates );
-
-load style attributes from XML element
-
-
- bool loadTheme (Theme theme , Element doc , int level = 0);
-
-load theme from XML document
-
-Sample:
-<?xml version ="1.0" encoding="utf-8" ?>
-<theme id="theme_custom" parent="theme_default" >
- <style id="BUTTON"
- backgroundImageId="btn_default_small"
- >
- </style>
-</theme >
-
-
-
-
- bool loadTheme (Theme theme , string resourceId , int level = 0);
-
-load theme from file
-
-
- Theme loadTheme (string resourceId );
-
-load theme from XML file (null if failed)
-
-
-
-
-
-
-
-
-
-
-
diff --git a/stylesheets/print.css b/stylesheets/print.css
deleted file mode 100644
index 541695bf..00000000
--- a/stylesheets/print.css
+++ /dev/null
@@ -1,226 +0,0 @@
-html, body, div, span, applet, object, iframe,
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
-del, dfn, em, img, ins, kbd, q, s, samp,
-small, strike, strong, sub, sup, tt, var,
-b, u, i, center,
-dl, dt, dd, ol, ul, li,
-fieldset, form, label, legend,
-table, caption, tbody, tfoot, thead, tr, th, td,
-article, aside, canvas, details, embed,
-figure, figcaption, footer, header, hgroup,
-menu, nav, output, ruby, section, summary,
-time, mark, audio, video {
- margin: 0;
- padding: 0;
- border: 0;
- font-size: 100%;
- font: inherit;
- vertical-align: baseline;
-}
-/* HTML5 display-role reset for older browsers */
-article, aside, details, figcaption, figure,
-footer, header, hgroup, menu, nav, section {
- display: block;
-}
-body {
- line-height: 1;
-}
-ol, ul {
- list-style: none;
-}
-blockquote, q {
- quotes: none;
-}
-blockquote:before, blockquote:after,
-q:before, q:after {
- content: '';
- content: none;
-}
-table {
- border-collapse: collapse;
- border-spacing: 0;
-}
-body {
- font-size: 13px;
- line-height: 1.5;
- font-family: 'Helvetica Neue', Helvetica, Arial, serif;
- color: #000;
-}
-
-a {
- color: #d5000d;
- font-weight: bold;
-}
-
-header {
- padding-top: 35px;
- padding-bottom: 10px;
-}
-
-header h1 {
- font-weight: bold;
- letter-spacing: -1px;
- font-size: 48px;
- color: #303030;
- line-height: 1.2;
-}
-
-header h2 {
- letter-spacing: -1px;
- font-size: 24px;
- color: #aaa;
- font-weight: normal;
- line-height: 1.3;
-}
-#downloads {
- display: none;
-}
-#main_content {
- padding-top: 20px;
-}
-
-code, pre {
- font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal;
- color: #222;
- margin-bottom: 30px;
- font-size: 12px;
-}
-
-code {
- padding: 0 3px;
-}
-
-pre {
- border: solid 1px #ddd;
- padding: 20px;
- overflow: auto;
-}
-pre code {
- padding: 0;
-}
-
-ul, ol, dl {
- margin-bottom: 20px;
-}
-
-
-/* COMMON STYLES */
-
-table {
- width: 100%;
- border: 1px solid #ebebeb;
-}
-
-th {
- font-weight: 500;
-}
-
-td {
- border: 1px solid #ebebeb;
- text-align: center;
- font-weight: 300;
-}
-
-form {
- background: #f2f2f2;
- padding: 20px;
-
-}
-
-
-/* GENERAL ELEMENT TYPE STYLES */
-
-h1 {
- font-size: 2.8em;
-}
-
-h2 {
- font-size: 22px;
- font-weight: bold;
- color: #303030;
- margin-bottom: 8px;
-}
-
-h3 {
- color: #d5000d;
- font-size: 18px;
- font-weight: bold;
- margin-bottom: 8px;
-}
-
-h4 {
- font-size: 16px;
- color: #303030;
- font-weight: bold;
-}
-
-h5 {
- font-size: 1em;
- color: #303030;
-}
-
-h6 {
- font-size: .8em;
- color: #303030;
-}
-
-p {
- font-weight: 300;
- margin-bottom: 20px;
-}
-
-a {
- text-decoration: none;
-}
-
-p a {
- font-weight: 400;
-}
-
-blockquote {
- font-size: 1.6em;
- border-left: 10px solid #e9e9e9;
- margin-bottom: 20px;
- padding: 0 0 0 30px;
-}
-
-ul li {
- list-style: disc inside;
- padding-left: 20px;
-}
-
-ol li {
- list-style: decimal inside;
- padding-left: 3px;
-}
-
-dl dd {
- font-style: italic;
- font-weight: 100;
-}
-
-footer {
- margin-top: 40px;
- padding-top: 20px;
- padding-bottom: 30px;
- font-size: 13px;
- color: #aaa;
-}
-
-footer a {
- color: #666;
-}
-
-/* MISC */
-.clearfix:after {
- clear: both;
- content: '.';
- display: block;
- visibility: hidden;
- height: 0;
-}
-
-.clearfix {display: inline-block;}
-* html .clearfix {height: 1%;}
-.clearfix {display: block;}
\ No newline at end of file
diff --git a/stylesheets/pygment_trac.css b/stylesheets/pygment_trac.css
deleted file mode 100644
index c6a6452d..00000000
--- a/stylesheets/pygment_trac.css
+++ /dev/null
@@ -1,69 +0,0 @@
-.highlight { background: #ffffff; }
-.highlight .c { color: #999988; font-style: italic } /* Comment */
-.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
-.highlight .k { font-weight: bold } /* Keyword */
-.highlight .o { font-weight: bold } /* Operator */
-.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
-.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
-.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
-.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
-.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
-.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
-.highlight .ge { font-style: italic } /* Generic.Emph */
-.highlight .gr { color: #aa0000 } /* Generic.Error */
-.highlight .gh { color: #999999 } /* Generic.Heading */
-.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
-.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
-.highlight .go { color: #888888 } /* Generic.Output */
-.highlight .gp { color: #555555 } /* Generic.Prompt */
-.highlight .gs { font-weight: bold } /* Generic.Strong */
-.highlight .gu { color: #800080; font-weight: bold; } /* Generic.Subheading */
-.highlight .gt { color: #aa0000 } /* Generic.Traceback */
-.highlight .kc { font-weight: bold } /* Keyword.Constant */
-.highlight .kd { font-weight: bold } /* Keyword.Declaration */
-.highlight .kn { font-weight: bold } /* Keyword.Namespace */
-.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
-.highlight .kr { font-weight: bold } /* Keyword.Reserved */
-.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
-.highlight .m { color: #009999 } /* Literal.Number */
-.highlight .s { color: #d14 } /* Literal.String */
-.highlight .na { color: #008080 } /* Name.Attribute */
-.highlight .nb { color: #0086B3 } /* Name.Builtin */
-.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
-.highlight .no { color: #008080 } /* Name.Constant */
-.highlight .ni { color: #800080 } /* Name.Entity */
-.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
-.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
-.highlight .nn { color: #555555 } /* Name.Namespace */
-.highlight .nt { color: #000080 } /* Name.Tag */
-.highlight .nv { color: #008080 } /* Name.Variable */
-.highlight .ow { font-weight: bold } /* Operator.Word */
-.highlight .w { color: #bbbbbb } /* Text.Whitespace */
-.highlight .mf { color: #009999 } /* Literal.Number.Float */
-.highlight .mh { color: #009999 } /* Literal.Number.Hex */
-.highlight .mi { color: #009999 } /* Literal.Number.Integer */
-.highlight .mo { color: #009999 } /* Literal.Number.Oct */
-.highlight .sb { color: #d14 } /* Literal.String.Backtick */
-.highlight .sc { color: #d14 } /* Literal.String.Char */
-.highlight .sd { color: #d14 } /* Literal.String.Doc */
-.highlight .s2 { color: #d14 } /* Literal.String.Double */
-.highlight .se { color: #d14 } /* Literal.String.Escape */
-.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
-.highlight .si { color: #d14 } /* Literal.String.Interpol */
-.highlight .sx { color: #d14 } /* Literal.String.Other */
-.highlight .sr { color: #009926 } /* Literal.String.Regex */
-.highlight .s1 { color: #d14 } /* Literal.String.Single */
-.highlight .ss { color: #990073 } /* Literal.String.Symbol */
-.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
-.highlight .vc { color: #008080 } /* Name.Variable.Class */
-.highlight .vg { color: #008080 } /* Name.Variable.Global */
-.highlight .vi { color: #008080 } /* Name.Variable.Instance */
-.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */
-
-.type-csharp .highlight .k { color: #0000FF }
-.type-csharp .highlight .kt { color: #0000FF }
-.type-csharp .highlight .nf { color: #000000; font-weight: normal }
-.type-csharp .highlight .nc { color: #2B91AF }
-.type-csharp .highlight .nn { color: #000000 }
-.type-csharp .highlight .s { color: #A31515 }
-.type-csharp .highlight .sc { color: #A31515 }
diff --git a/stylesheets/stylesheet.css b/stylesheets/stylesheet.css
deleted file mode 100644
index 546e6ad2..00000000
--- a/stylesheets/stylesheet.css
+++ /dev/null
@@ -1,1226 +0,0 @@
-/* http://meyerweb.com/eric/tools/css/reset/
- v2.0 | 20110126
- License: none (public domain)
-*/
-html, body, div, span, applet, object, iframe,
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
-del, dfn, em, img, ins, kbd, q, s, samp,
-small, strike, strong, sub, sup, tt, var,
-b, u, i, center,
-dt, ol, ul, li,
-fieldset, form, label, legend,
-table, caption, tbody, tfoot, thead, tr, th, td,
-article, aside, canvas, details, embed,
-figure, figcaption, footer, header, hgroup,
-menu, nav, output, ruby, section, summary,
-time, mark, audio, video {
- margin: 0;
- padding: 0;
- border: 0;
- font-size: 100%;
- font: inherit;
- vertical-align: baseline;
-}
-/* HTML5 display-role reset for older browsers */
-article, aside, details, figcaption, figure,
-footer, header, hgroup, menu, nav, section {
- display: block;
-}
-body {
- line-height: 1;
-}
-ol, ul {
- list-style: none;
-}
-blockquote, q {
- quotes: none;
-}
-blockquote:before, blockquote:after,
-q:before, q:after {
- content: '';
- content: none;
-}
-table {
- border-collapse: collapse;
- border-spacing: 0;
-}
-
-/* LAYOUT STYLES */
-body {
- font-size: 1em;
- line-height: 1.5;
- background: #e7e7e7 url(../images/body-bg.png) 0 0 repeat;
- font-family: 'Helvetica Neue', Helvetica, Arial, serif;
- text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
- color: #6d6d6d;
-}
-
-
-#container {
- background: transparent url(../images/highlight-bg.jpg) 50% 0 no-repeat;
- min-height: 595px;
-}
-
-.inner {
- width: 780px;
- margin: 0 auto;
-}
-
-#container .inner img {
- max-width: 100%;
-}
-
-#downloads {
- margin-bottom: 40px;
-}
-
-a.button {
- -moz-border-radius: 20px;
- -webkit-border-radius: 20px;
- border-radius: 20px;
- border-top: solid 1px #cbcbcb;
- border-left: solid 1px #b7b7b7;
- border-right: solid 1px #b7b7b7;
- border-bottom: solid 1px #b3b3b3;
- color: #303030;
- line-height: 16px;
- font-weight: bold;
- font-size: 14px;
- padding: 6px 4px 6px 4px;
- display: block;
- float: left;
- width: 140px;
- margin-right: 7px;
- background: #fdfdfd; /* Old browsers */
- background: -moz-linear-gradient(top, #fdfdfd 0%, #f2f2f2 100%); /* FF3.6+ */
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fdfdfd), color-stop(100%,#f2f2f2)); /* Chrome,Safari4+ */
- background: -webkit-linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* Chrome10+,Safari5.1+ */
- background: -o-linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* Opera 11.10+ */
- background: -ms-linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* IE10+ */
- background: linear-gradient(top, #fdfdfd 0%,#f2f2f2 100%); /* W3C */
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdfdfd', endColorstr='#f2f2f2',GradientType=0 ); /* IE6-9 */
- -webkit-box-shadow: 10px 10px 5px #888;
- -moz-box-shadow: 10px 10px 5px #888;
- box-shadow: 0px 1px 5px #e8e8e8;
-}
-a.button:hover {
- border-top: solid 1px #b7b7b7;
- border-left: solid 1px #b3b3b3;
- border-right: solid 1px #b3b3b3;
- border-bottom: solid 1px #b3b3b3;
- background: #fafafa; /* Old browsers */
- background: -moz-linear-gradient(top, #fdfdfd 0%, #f6f6f6 100%); /* FF3.6+ */
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fdfdfd), color-stop(100%,#f6f6f6)); /* Chrome,Safari4+ */
- background: -webkit-linear-gradient(top, #fdfdfd 0%,#f6f6f6 100%); /* Chrome10+,Safari5.1+ */
- background: -o-linear-gradient(top, #fdfdfd 0%,#f6f6f6 100%); /* Opera 11.10+ */
- background: -ms-linear-gradient(top, #fdfdfd 0%,#f6f6f6 100%); /* IE10+ */
- background: linear-gradient(top, #fdfdfd 0%,#f6f6f6, 100%); /* W3C */
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fdfdfd', endColorstr='#f6f6f6',GradientType=0 ); /* IE6-9 */
-}
-
-a.button span {
- padding-left: 25px;
- display: block;
- height: 15px;
-}
-
-#download-zip-commented span {
- background: transparent url(../images/zip-icon.png) 12px 50% no-repeat;
-}
-#download-tar-gz-commented span {
- background: transparent url(../images/tar-gz-icon.png) 12px 50% no-repeat;
-}
-#view-on-github-commented span {
- background: transparent url(../images/octocat-icon.png) 12px 50% no-repeat;
-}
-#view-on-github {
- margin-right: 0;
-}
-
-code, pre {
- font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal;
- color: #222;
- margin-bottom: 30px;
- font-size: 14px;
-}
-
-code {
- background-color: #f2f2f2;
- border: solid 1px #ddd;
- padding: 0 3px;
-}
-
-pre {
- padding: 20px;
- background: #303030;
- color: #f2f2f2;
- text-shadow: none;
- overflow: auto;
-}
-pre code {
- color: #f2f2f2;
- background-color: #303030;
- border: none;
- padding: 0;
-}
-
-ul, ol {
- margin-bottom: 20px;
-}
-
-/* COMMON STYLES */
-
-hr {
- height: 1px;
- line-height: 1px;
- margin-top: 1em;
- padding-bottom: 0.5em;
- border: none;
- background: transparent url('../images/hr.png') 50% 0 no-repeat;
-}
-
-strong {
- font-weight: bold;
-}
-
-em {
- font-style: italic;
-}
-
-table {
- width: 100%;
- border: 1px solid #ebebeb;
-}
-
-th {
- font-weight: 500;
-}
-
-td {
- border: 1px solid #ebebeb;
- text-align: center;
- font-weight: 300;
-}
-
-form {
- background: #f2f2f2;
- padding: 20px;
-
-}
-
-.d_decl_dd
-{
- padding: 1ex;
- margin-left: 3em;
- margin-bottom: 1em;
-}
-
-/* GENERAL ELEMENT TYPE STYLES */
-
-h1 {
- font-size: 32px;
-}
-
-h2 {
- font-size: 22px;
- font-weight: bold;
- color: #303030;
- margin-bottom: 8px;
-}
-
-h3 {
- color: #d5000d;
- font-size: 18px;
- font-weight: bold;
- margin-bottom: 8px;
-}
-
-h4 {
- font-size: 16px;
- color: #303030;
- font-weight: bold;
-}
-
-h5 {
- font-size: 1em;
- color: #303030;
-}
-
-h6 {
- font-size: .8em;
- color: #303030;
-}
-
-p {
- font-weight: 300;
- margin-bottom: 20px;
-}
-
-a {
- text-decoration: none;
-}
-
-p a {
- font-weight: 400;
-}
-
-blockquote {
- font-size: 1.6em;
- border-left: 10px solid #e9e9e9;
- margin-bottom: 20px;
- padding: 0 0 0 30px;
-}
-
-ul li {
- list-style: disc inside;
- padding-left: 20px;
-}
-
-ol li {
- list-style: decimal inside;
- padding-left: 3px;
-}
-
-footer {
- background: transparent url('../images/hr.png') 0 0 no-repeat;
- margin-top: 40px;
- padding-top: 20px;
- padding-bottom: 30px;
- font-size: 13px;
- color: #aaa;
-}
-
-footer a {
- color: #666;
-}
-footer a:hover {
- color: #444;
-}
-
-/* MISC */
-.clearfix:after {
- clear: both;
- content: '.';
- display: block;
- visibility: hidden;
- height: 0;
-}
-
-.clearfix {display: inline-block;}
-* html .clearfix {height: 1%;}
-.clearfix {display: block;}
-
-/* #Media Queries
-================================================== */
-
-/* Smaller than standard 960 (devices and browsers) */
-@media only screen and (max-width: 959px) {}
-
-/* Tablet Portrait size to standard 960 (devices and browsers) */
-@media only screen and (min-width: 768px) and (max-width: 959px) {}
-
-/* All Mobile Sizes (devices and browser) */
-@media only screen and (max-width: 767px) {
- header {
- padding-top: 10px;
- padding-bottom: 10px;
- }
- #downloads {
- margin-bottom: 25px;
- }
- #download-zip, #download-tar-gz {
- display: none;
- }
- .inner {
- width: 94%;
- margin: 0 auto;
- }
-}
-
-/* Mobile Landscape Size to Tablet Portrait (devices and browsers) */
-@media only screen and (min-width: 480px) and (max-width: 767px) {}
-
-/* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */
-@media only screen and (max-width: 479px) {}
-
-
-body cccc
-{
- padding: 0;
- border: 0;
- color: black;
- background-color: #1f252b;
- background-image: url(../images/gradient-red.jpg);
- background-repeat: no-repeat;
- font-size: 100%;
- font-family: Verdana, "Deja Vu", "Bitstream Vera Sans", sans-serif;
- min-width: 60em;
- margin: 0px auto;
-}
-
-.hyphenate
-{
- -webkit-hyphens: auto;
- -moz-hyphens: auto;
- -ms-hyphens: auto;
- hyphens: auto;
-}
-
-.donthyphenate
-{
- -webkit-hyphens: manual;
- -moz-hyphens: manual;
- -ms-hyphens: manual;
- hyphens: manual;
-}
-
-.param
-{
- font-style: italic;
-}
-
-h1, h2, h3, h4, h5, h6
-{
- font-family: Georgia, "Times New Roman", Times, serif;
- font-weight: normal;
- color: #633;
- line-height: normal;
- text-align: left;
-}
-
-h1
-{
- margin-top: 0;
- font-size: 2.0em;
-}
-
-h2
-{
- font-size: 1.5em;
- margin-top: 1em;
- margin-bottom: 0.5em;
-}
-
-h3
-{
- font-size: 1.35em;
- margin-bottom: 0.5em;
-}
-
-h4
-{
- font-size: 1.15em;
- font-style: italic;
- margin-bottom: 0;
-}
-
-form
-{
- margin: 0;
-}
-
-blockquote
-{
- font-family: Georgia, "Times New Roman", Times, serif;
- background-color: #e5e5e5;
- display: block;
- padding: 0.25em 1em;
- margin: 1em 2em;
-}
-
-blockquote p:before
-{
- content: "\201C";
- font-family: Georgia, "Times New Roman", Times, serif;
- color: #bacaca;
- display: block;
- font-size: 700%;
- width: 50px;
- height: 0;
- margin-left: -0.5em;
- line-height: 0.8em;
-}
-
-blockquote p
-{
- margin: 0;
- font-style: italic;
-}
-
-blockquote cite
-{
- display: block;
- text-align: right;
-}
-
-pre
-{
- background: white;
- padding: 1ex;
- margin: 1em 0 1em 0em;
- font-family: monospace;
- font-size: 1.2em;
- line-height: normal;
- border: 1px solid #ccc;
- width: auto;
- white-space: pre-wrap; /* css-3 */
- white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
- white-space: -pre-wrap; /* Opera 4-6 */
- white-space: -o-pre-wrap; /* Opera 7 */
- word-wrap: break-word; /* Internet Explorer 5.5+ */
-}
-
-.d_decl_dd
-{
- padding: 1ex;
- margin-left: 3em;
- margin-bottom: 1em;
-}
-
-table, tr, td, th
-{
- /*border-style: solid;*/
-}
-
-td
-{
- text-align: justify;
-}
-
-hr
-{
- margin: 2em 0;
-}
-
-a
-{
- color: #006;
-}
-
-a:visited
-{
- color: #606;
-}
-
-/* These are different kinds of sections */
-.bnf /* grammar */
-{
- background-color: white;
- color: #000066;
-}
-
-.ddoccode
-{
- background-color: #f3eeee;
- color: #000066;
-}
-
-.console /* command line console */
-{
- background-color: #f7f7f7;
- color: #181818;
-}
-
-.moddeffile /* module definition file */
-{
- background-color: #efeffe;
- color: #010199;
-}
-
-.scini /* sc.ini configuration file */
-{
- background-color: #fef6fe;
- color: #111199;
-}
-
-.d_code /* D code */
-{
- background-color: #fcfcfc;
- color: #000066;
-}
-
-.d_code2 /* D code */
-{
- background-color: #fcfcfc;
- color: #000066;
-}
-
-.asmcode /* Asm code */
-{
- background-color: #afcbde;
- color: #000066;
-}
-
-.ccode /* C code */
-{
- background-color: #f6ecf0;
- color: #000066;
-}
-
-.cppcode /* C++ code */
-{
- background-color: #f6ecf0;
- color: #000066;
-}
-
-.cppcode2 /* C++ code */
-{
- background-color: #f6ecf0;
- color: #000066;
-}
-
-td .d_code2, td .cppcode2, td .cppcode
-{
- min-width: 20em;
- margin: 1em 0em;
-}
-
-.d_inlinecode
-{
- font-family: monospace;
- /* font-size: 1.2em; */
- font-weight: bold;
-}
-
-/* Elements of D source code text */
-.d_comment { color: green; }
-.d_string { color: red; }
-.d_keyword { color: blue; }
-.d_psymbol { text-decoration: underline; }
-.d_param { font-style: italic; }
-
-/* Focal symbol that is being documented */
-.ddoc_psymbol { color: #336600; }
-
-div#top
-{
-/* max-width: 85em; */
-}
-
-div#header
-{
- padding: 0.2em 1em 0.2em 1em;
-}
-
-img#logo
-{
- vertical-align: text-bottom;
-}
-
-/*div#d-language a*/
-#d-language
-{
- color: white;
- font-size: 1.7em;
- font-family: Georgia, "Times New Roman", Times, serif;
- font-variant: small-caps;
- text-decoration: none;
-}
-
-img#github-ribbon
-{
- position: absolute;
- top: 0;
- right: 0;
- border: 0;
- z-index: 1;
-}
-
-div#search-box
-{
- background-color: transparent;
- position: absolute;
- top: 2em;
- right: 7em;
- text-align: right;
- z-index: 2;
-}
-
-div#search-box img, div#search-box input, div#search-box select
-{
- margin: 0;
- padding: 0;
- vertical-align: middle;
-}
-
-div#search-box input#q
-{
- border: 0px;
- height: 22px;
- background-image: url(../images/search-bg.gif);
- color: black;
-}
-
-div#search-box select
-{
- width: 14em;
-}
-
-div#search-box input#q:focus
-{
- outline: none;
-}
-
-
-div#navigation
-{
- font-size: 0.875em;
- float: left;
- width: 11.5em;
- padding: 0 1.5em;
-}
-
-div#content
-{
- text-align: justify;
- min-height: 440px;
- margin-left: 13.5em;
- padding: 1.6em;
- padding-top: 1.3em;
- padding-bottom: 1em;
- margin-right: 0.5em;
- border: 0.4em solid #ccd5d5;
- background-color: #f6f6f6;
- font-size: 0.875em;
- line-height: 1.4em;
- text-align: justify;
-}
-
-body.chm
-{
- min-width: 0 !important;
-}
-
-body.chm div#content
-{
- padding: 20px;
- border: none;
- margin: 0 !important;
-}
-
-body.chm div#tools
-{
- margin-right: 0;
-}
-
-span#wiki
-{
- position: relative;
- right: 0;
- z-index: 2;
-}
-
-div#twitter
-{
- color: white;
- font-size: 0.875em;
- float: right;
- width: 18em;
- padding: 1em 1em;
- margin-top: -1em;
-}
-
-div.navblock
-{
- margin-top: 0;
- margin-bottom: 1em;
-}
-
-div#navigation .navblock h2
-{
- font-family: Verdana, "Deja Vu", "Bitstream Vera Sans", sans-serif;
- font-size: 1.35em;
- color: #ccc;
- margin: 0;
-}
-
-div#navigation .navblock ul
-{
- list-style-type: none;
- margin: 0;
- padding: 0;
-}
-
-div#navigation .navblock li
-{
- margin: 0 0 0 0.8em;
- padding: 0;
-}
-
-#navigation .navblock a
-{
- display: block;
- color: #ccc;
- text-decoration: none;
- padding: 0.1em 0;
- border-bottom: 1px dotted #494949;
-}
-
-#navigation .navblock a:hover
-{
- color: #eee;
-}
-
-#navigation .navblock a.active
-{
- color: white;
- border-color: white;
-}
-
-
-div#translate
-{
- margin-top: 3em;
- margin-left: 0;
- color: #ccc;
-}
-
-
-div#tools
-{
- display: inline;
- float: right;
- margin: 0;
- margin-top: -15px;
- margin-right: -18px;
- text-align: right;
-}
-
-div#tools a.button
-{
- -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
- -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
- box-shadow:inset 0px 1px 0px 0px #ffffff;
- background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
- background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
- background:-o-linear-gradient(top, #ededed, #dfdfdf);
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
- background-color:#ededed;
- border:1px solid #aaa;
- display:inline-block;
- color:#555;
- font-family:arial;
- font-size:10px;
- font-weight:bold;
- padding:0px 6px;
- text-decoration:none;
- text-shadow:1px 1px 0px #ffffff;
-}
-
-div#tools a.button:hover
-{
- background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
- background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
- background:-o-linear-gradient(top, #dfdfdf, #ededed);
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
- background-color:#dfdfdf;
-}
-
-div#tools a.button:active
-{
- position: relative;
- top: 1px;
-}
-
-div#tools img
-{
- vertical-align: middle;
-}
-
-.tip {
- position: relative;
-}
-
-.tip span {
- display: none;
- position: absolute;
- top: 25px;
- left: auto;
- right: 0;
- width: 200px;
- padding: 8px !important;
- z-index: 100;
- background: #000;
- color: #eee !important;
- font-style: normal !important;
- font-size: 10px;
- text-align: left;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
- border-radius: 5px;
-
- /* undo inherited attributes */
- text-shadow: none;
-}
-
-.tip:hover span {
- display: block;
-}
-
-
-div#content li
-{
- padding-bottom: .7ex;
-}
-
-
-div#google_ad
-{
- margin-top: 6em;
-}
-
-
-div#footernav
-{
- clear: both;
-/* margin-top: 2em; */
- padding: 1em 2em 0 2em;
-/* background-color: #303333; */
- color: #666;
- text-align: center;
- font-size: 80%;
-}
-
-div#footernav a
-{
- color: #ccc;
-}
-
-div#footernav a:hover
-{
- color: white;
-}
-
-
-div#copyright
-{
- padding: 1em 2em;
-/* background-color: #303333; */
- color: #ccc;
- font-size: 50%;
- text-align: center;
-}
-
-div#copyright a
-{
- color: #ccc;
-}
-
-
-/* These are for the newsgroup archives */
-div#newsnav
-{
- margin-top: -1.5em;
- margin-bottom: -1em;
-}
-div#Posting
-{
- border: 1px solid #cccccc;
- margin-bottom: 1em;
-}
-div#PostingHeading
-{
- font-family: Georgia, "Times New Roman", Times, serif;
- font-size: larger;
- color: #633;
- background-color: #eeeeee;
-}
-div#PostingHeading img
-{
- vertical-align: middle;
-}
-div#PostingHeading a
-{
- text-decoration: none;
-}
-div#PostingFooting
-{
- font-size: smaller;
- background-color: #eeeeee;
-}
-div#PostingTOC
-{
- font-size: smaller;
-}
-div#PostingTOC li
-{
- margin-left: 0;
-}
-div#PostingTOC a
-{
- font-family: Georgia, "Times New Roman", Times, serif;
-}
-.PostingBody /* newsgroup posting */
-{
- border: 0;
- margin: 0;
- background-color: #fcfcfc;
- color: #000066;
- margin-left: 0em;
- min-width: 15em;
- padding-bottom: 0.5em;
-}
-.PostingQuote /* quote inside newsgroup posting */
-{
- border: 1px solid #666666;
- font-size: 90%;
- background-color: inherit;
- color: #666666;
- margin-left: 0em;
- min-width: 15em;
-}
-
-/* These are for the changelogs */
-div.version
-{
- border-top: 1px solid black;
- font-size: 0.9em;
- padding-top: 2ex;
-}
-div.version font
-{
- font-family: Georgia, "Times New Roman", Times, serif;
- color: #633;
-}
-div.version li
-{
- padding-bottom: 0.3ex;
-}
-div.bugsfixed
-{
-}
-div.whatsnew
-{
-}
-
-
-/* These are for comparison.html */
-table.comp /* "comparison with D": table */
-{
- background-color:#e9e6dd;
-}
-table.comp a
-{
- color: black;
-}
-td.compNo /* comparison with D: "NO" */
-{
- background-color:red;
- text-align:center;
-}
-td.compYes /* comparison with D: "YES" */
-{
- background-color:#00FF00;
- text-align:center;
-}
-
-TABLE.book
-{
- border-top: 2px solid;
- border-bottom: 2px solid;
- border-spacing: 1pt;
-}
-
-TABLE.book TD
-{
- padding: 1pt 12pt 1pt 1pt;
- vertical-align: top;
- border-bottom: 1px solid #E4E9EF;
-}
-
-TABLE.book TH
-{
- border-bottom: 1px solid;
- padding: 1pt 12pt 1pt 1pt;
- vertical-align: top;
-}
-
-TABLE.book CAPTION
-{
- width: auto;
- text-align: left;
-}
-
-.leadingrow {
- background-color: #E4E9EF;
- font-size: 110%;
-}
-
-.d_inlinecode
-{
- font-family: "Consolas", "Bitstream Vera Sans Mono", "Andale Mono", "Monaco", "DejaVu Sans Mono", "Lucida Console", "monospace";
- /* font-size: 105%; */
- /* font-weight: bold; */
- /*color: #000010; */
-}
-
-.d_decl {
- font-weight: bold;
- background-color: #E4E9EF;
- /* border-top: solid black 1px; */
- border-bottom: solid 2px #336600;
- padding: 2px 0px 2px 2px;
- text-align: left;
-}
-
-.question
-{
- display: inline;
- /* font-weight:bold; /* Bold font */
- color: #006;
- text-decoration: underline;
- cursor:pointer; /* Cursor is like a hand when someone rolls the mouse over the question */
-}
-
-.answer {
- display:none;
-}
-
-.answer-nojs {
- display:block;
-}
-
-.nobr {
- white-space:nowrap;
-}
-
-/* Runnable-examples css */
-textarea.d_code {display: none;}
-textarea.d_code_output, textarea.d_code_stdin, textarea.d_code_args
-{
- text-align: left;
- border: none;
- width: 98%;
- font-size: 1.09em;
- font-family: monospace;
- padding: 5px;
- margin: 1px;
- word-wrap: break-word;
- height: auto;
- background: white;
- margin-left: 2px;
- outline: none;
-}
-
-div.d_code {margin: 0; padding: 0; font-size: 12px; margin-bottom: -14px; background: #F6F6F6;}
-div.d_run_code {display: none; margin: 1em 0 1em 3.1em;}
-div.d_code_output, div.d_code_stdin, div.d_code_args, div.d_code_unittest
-{
- border: 1px solid #CCC;
- background: white;
- display: none;
- height: auto;
- width: 100%;
-}
-
-.d_code_title {font-weight: bold;font-size: 12px;padding: 5px;}
-
-.CodeMirror-wrap {padding: 3px;}
-.CodeMirror {line-height: normal; font-size: 14px;border: 1px solid #CCC;background: white; }
-.cm-s-eclipse span.cm-word {color: #006;}
-.cm-s-eclipse span.cm-meta {color: #FF1717;}
-.cm-s-eclipse span.cm-keyword { color: blue; }
-.cm-s-eclipse span.cm-atom {color: #219;}
-.cm-s-eclipse span.cm-number {color: #006;}
-.cm-s-eclipse span.cm-def {color: #006;}
-.cm-s-eclipse span.cm-variable {color: #006;}
-.cm-s-eclipse span.cm-variable-2 {color: #006;}
-.cm-s-eclipse span.cm-variable-3 {color:#006;}
-.cm-s-eclipse span.cm-property {color: black;}
-.cm-s-eclipse span.cm-operator {color: black;}
-.cm-s-eclipse span.cm-comment {color: green;}
-.cm-s-eclipse span.cm-string {color: red;}
-.cm-s-eclipse span.cm-string-2 {color: red;}
-.cm-s-eclipse span.cm-error {color: #f00;}
-.cm-s-eclipse span.cm-qualifier {color: #555;}
-.cm-s-eclipse span.cm-builtin {color: #30a;}
-.cm-s-eclipse span.cm-bracket {color: #cc7;}
-.cm-s-eclipse span.cm-tag {color: #170;}
-.cm-s-eclipse span.cm-attribute {color: #00c;}
-.cm-s-eclipse span.cm-link {color: #219;}
-.cm-s-eclipse .CodeMirror-matchingbracket {border:1px solid grey;color:black !important;}
-
-input.runButton, input.resetButton, input.argsButton, input.inputButton, input.editButton
-{
- -moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
- -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
- box-shadow:inset 0px 1px 0px 0px #ffffff;
- background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
- background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
- background-color:#ededed;
- border:1px solid #dcdcdc;
- display:inline-block;
- color:#777777;
- font-family:arial;
- font-size:10px;
- font-weight:bold;
- padding:3px 6px;
- text-decoration:none;
- text-shadow:1px 1px 0px #ffffff;
- width: 50px;
- margin: 2px;
- position: relative;
- z-index: 2;
- cursor: pointer;
-}
-input.runButton:hover, input.resetButton:hover, input.argsButton:hover, input.inputButton:hover, input.editButton:hover,input.runButton[disabled]
-{
- background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
- background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
- filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
- background-color:#dfdfdf;
-}
-input.runButton:active, input.resetButton:active, input.argsButton:active, input.inputButton:active, input.editButton:active
-{ position: relative; top: 1px; }
-input.resetButton{display: none}
-/* Runnable-examples css -end */
-
-
-
-
-
-dl {
- margin: 10px;
- border-color: #888;
- border-width: 1px;
- border-style: none;
- padding: 10px;
-}
-
-dl dl {
- margin: 5px;
- border-width: 1px;
- border-style: dashed;
- border-color: #8888;
- padding: 10px;
- background-color: #E0E0E0;
-}
-
-dd {
- color: #000000;
-}
-
-dl dd {
- color: #203030;
- background-color: #EEEEEE;
- margin-bottom: 0.5em;
- margin-left: 0px;
- padding-left: 4em;
-}
-
-dl dt {
- margin-top: 1.5em;
- background-color: #CCC;
- color: #800;
- font-weight: bold;
-}
-
-dl dl dt {
- margin-top: 1em;
- background-color: #FFFFFFFF;
- color: #008;
-}
-
-
diff --git a/tabs.html b/tabs.html
deleted file mode 100644
index a8a5416b..00000000
--- a/tabs.html
+++ /dev/null
@@ -1,267 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.widgets.tabs
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.widgets.tabs
-
-This module contains declaration of tabbed view controls.
-
-TabItemWidget - single tab header in tab control
-TabWidget
-TabHost
-TabControl
-
-
-
-
-Synopsis:
-import dlangui.widgets.tabs ;
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- class TabItem ;
-
-tab item metadata
-
-
- class TabItemWidget : dlangui.widgets.layouts.HorizontalLayout ;
-
-tab item widget - to show tab header
-
-
- class TabItemList ;
-
-tab item list helper class
-
- TabItem get (int index );
-
-get item by index
-
-
- TabItem get (string id );
-
-get item by id
-
-
- TabItemList add (TabItem item );
-
-append new item
-
-
- TabItemList insert (TabItem item , int index );
-
-insert new item to specified position
-
-
- TabItem remove (int index );
-
-remove item by index
-
-
- int indexById (string id );
-
-find tab index by id
-
-
-
-
- class TabControl : dlangui.widgets.widget.WidgetGroup ;
-
-tab header - tab labels, with optional More button
-
- Signal!TabHandler onTabChangedListener ;
-
-signal of tab change (e.g. by clicking on tab header)
-
-
- const @property int tabCount ();
-
-returns tab count
-
-
- TabItem tab (int index );
-
-returns tab item by id (null if index out of range)
-
-
- TabItem tab (string id );
-
-returns tab item by id (null if not found)
-
-
- int tabIndex (string id );
-
-get tab index by tab id (-1 if not found)
-
-
- TabControl removeTab (string id );
-
-remove tab
-
-
- TabControl addTab (TabItem item , int index = -1, bool enableCloseButton = false);
-
-add new tab
-
-
- TabControl addTab (string id , dstring label , string iconId = null, bool enableCloseButton = false);
-
-add new tab by id and label string
-
-
- TabControl addTab (string id , string labelResourceId , string iconId = null, bool enableCloseButton = false);
-
-add new tab by id and label string resource id
-
-
- void measure (int parentWidth , int parentHeight );
-
-Measure widget according to desired width and height constraints. (Step 1 of two phase layout).
-
-
- void layout (Rect rc );
-
-Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout ).
-
-
- void onDraw (DrawBuf buf );
-
-Draw widget at its position to buffer
-
-
-
-
- class TabHost : dlangui.widgets.layouts.FrameLayout , dlangui.widgets.tabs.TabHandler ;
-
-container for widgets controlled by TabControl
-
- @property TabControl tabControl ();
-
-get currently set control widget
-
-
- @property TabHost tabControl (TabControl newWidget );
-
-set new control widget
-
-
- Signal!TabHandler onTabChangedListener ;
-
-signal of tab change (e.g. by clicking on tab header)
-
-
- TabHost removeTab (string id );
-
-remove tab
-
-
- TabHost addTab (Widget widget , dstring label , string iconId = null, bool enableCloseButton = false);
-
-add new tab by id and label string
-
-
- TabHost addTab (Widget widget , string labelResourceId , string iconId = null, bool enableCloseButton = false);
-
-add new tab by id and label string resource id
-
-
- void selectTab (string ID );
-
-select tab
-
-
-
-
- class TabWidget : dlangui.widgets.layouts.VerticalLayout , dlangui.widgets.tabs.TabHandler ;
-
-compound widget - contains from TabControl widget (tabs header) and TabHost (content pages)
-
- Signal!TabHandler onTabChangedListener ;
-
-signal of tab change (e.g. by clicking on tab header)
-
-
- TabWidget addTab (Widget widget , string labelResourceId , string iconId = null, bool enableCloseButton = false);
-
-add new tab by id and label string resource id
-
-
- TabWidget addTab (Widget widget , dstring label , string iconId = null, bool enableCloseButton = false);
-
-add new tab by id and label (raw value)
-
-
- TabWidget removeTab (string id );
-
-remove tab by id
-
-
- void selectTab (string ID );
-
-select tab
-
-
- TabItem tab (int index );
-
-returns tab item by id (null if index out of range)
-
-
- TabItem tab (string id );
-
-returns tab item by id (null if not found)
-
-
- int tabIndex (string id );
-
-get tab index by tab id (-1 if not found)
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/tree.html b/tree.html
deleted file mode 100644
index 9ef80b56..00000000
--- a/tree.html
+++ /dev/null
@@ -1,177 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.widgets.tree
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.widgets.tree
-
-
- enum TreeActions : int;
-
-grid control action codes
-
-None
-no action
-
-
-Up
-move selection up
-
-
-Down
-move selection down
-
-
-Left
-move selection left
-
-
-Right
-move selection right
-
-
-ScrollUp
-scroll up, w/o changing selection
-
-
-ScrollDown
-scroll down, w/o changing selection
-
-
-ScrollLeft
-scroll left, w/o changing selection
-
-
-ScrollRight
-scroll right, w/o changing selection
-
-
-ScrollTop
-scroll top w/o changing selection
-
-
-ScrollBottom
-scroll bottom, w/o changing selection
-
-
-ScrollPageUp
-scroll up, w/o changing selection
-
-
-ScrollPageDown
-scroll down, w/o changing selection
-
-
-ScrollPageLeft
-scroll left, w/o changing selection
-
-
-ScrollPageRight
-scroll right, w/o changing selection
-
-
-PageUp
-move cursor one page up
-
-
-SelectPageUp
-move cursor one page up with selection
-
-
-PageDown
-move cursor one page down
-
-
-SelectPageDown
-move cursor one page down with selection
-
-
-PageBegin
-move cursor to the beginning of page
-
-
-SelectPageBegin
-move cursor to the beginning of page with selection
-
-
-PageEnd
-move cursor to the end of page
-
-
-SelectPageEnd
-move cursor to the end of page with selection
-
-
-LineBegin
-move cursor to the beginning of line
-
-
-SelectLineBegin
-move cursor to the beginning of line with selection
-
-
-LineEnd
-move cursor to the end of line
-
-
-SelectLineEnd
-move cursor to the end of line with selection
-
-
-DocumentBegin
-move cursor to the beginning of document
-
-
-SelectDocumentBegin
-move cursor to the beginning of document with selection
-
-
-DocumentEnd
-move cursor to the end of document
-
-
-SelectDocumentEnd
-move cursor to the end of document with selection
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/types.html b/types.html
deleted file mode 100644
index c3672fe6..00000000
--- a/types.html
+++ /dev/null
@@ -1,327 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.core.types
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.core.types
-
-This module declares basic data types for usage in dlangui library.
-
-Synopsis:
-import dlangui.core.types ;
-
-// points
- Point p(5, 10);
-
-// rectangles
- Rect r(5, 13, 120, 200);
-writeln(r);
-
-// reference counted objects, useful for RAII / resource management.
- class Foo : RefCountedObject {
- int [] resource;
- ~this () {
- writeln("freeing Foo resources" );
- }
-}
-{
- Ref!Foo ref1;
- {
- Ref!Foo fooRef = new RefCountedObject();
- ref1 = fooRef;
- }
- // RAII: will destroy object when no more references
- }
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- struct Point ;
-
-2D point
-
- int x ;
-
-x coordinate
-
-
- int y ;
-
-y coordinate
-
-
-
-
- struct Rect ;
-
-2D rectangle
-
- int left ;
-
-x coordinate of top left corner
-
-
- int top ;
-
-y coordinate of top left corner
-
-
- int right ;
-
-x coordinate of bottom right corner
-
-
- int bottom ;
-
-y coordinate of bottom right corner
-
-
- @property int middlex ();
-
-returns average of left, right
-
-
- @property int middley ();
-
-returns average of top, bottom
-
-
- void offset (int dx , int dy );
-
-add offset to horizontal and vertical coordinates
-
-
- void expand (int dx , int dy );
-
-expand rectangle dimensions
-
-
- void shrink (int dx , int dy );
-
-shrink rectangle dimensions
-
-
- void setMax (Rect rc );
-
-for all fields, sets this.field to rc .field if rc .field > this.field
-
-
- void moveBy (int deltax , int deltay );
-
-translate rectangle coordinates by (x,y) - add deltax to x coordinates, and deltay to y coordinates
-
-
- void moveToFit (ref Rect rc );
-
-moves this rect to fit rc bounds, retaining the same size
-
-
- bool intersect (Rect rc );
-
-updates this rect to intersection with rc , returns true if result is non empty
-
-
- bool intersects (Rect rc );
-
-returns true if this rect has nonempty intersection with rc
-
-
- bool isPointInside (Point pt );
-
-returns true if point is inside of this rectangle
-
-
- bool isPointInside (int x , int y );
-
-returns true if point is inside of this rectangle
-
-
- bool isInsideOf (Rect rc );
-
-this rectangle is completely inside rc
-
-
-
-
- struct Glyph ;
-
-character glyph
-
- ubyte blackBoxX ;
-
-< 4: width of glyph black box
-
-
- ubyte blackBoxY ;
-
-< 5: height of glyph black box
-
-
- byte originX ;
-
-< 6: X origin for glyph
-
-
- byte originY ;
-
-< 7: Y origin for glyph
-
-
- ubyte width ;
-
-< 8: full width of glyph
-
-
- ubyte lastUsage ;
-
-< 9: usage flag, to handle cleanup of unused glyphs
-
-
- ubyte[] glyph ;
-
-< 12: glyph data, arbitrary size
-
-
-
-
- class RefCountedObject ;
-
-base class for reference counted objects, maintains reference counter inplace.
-
-
- struct Ref (T);
-
-reference counting support
-
- const @property bool isNull ();
-
-returns true if object is not assigned
-
-
- const @property int refCount ();
-
-returns counter of references
-
-
- void clear ();
-
-clears reference
-
-
- @property T get ();
-
-returns object reference (null if not assigned)
-
-
- const @property const(T) get ();
-
-returns const reference from const object
-
-
-
-
- wstring fromWStringz (const(wchar[]) s );
-
-conversion from wchar z-string
-
-
- wstring fromWStringz (const(wchar)* s );
-
-conversion from wchar z-string
-
-
- enum State : uint;
-
-widget state flags - bits
-
-Normal
-state not specified / normal
-
-
-
-
- dchar dcharToUpper (dchar ch );
-
-uppercase unicode character
-
-
- bool isPathDelimiter (char ch );
-
-returns true if char ch is / or \ slash
-
-
- @property string exePath ();
-
-returns current executable path only, including last path delimiter
-
-
- char[] convertPathDelimiters (char[] buf );
-
-converts path delimiters to standard for platform inplace in buffer(e.g. / to \ on windows, \ to / on posix), returns buf
-
-
- string convertPathDelimiters (string src );
-
-converts path delimiters to standard for platform (e.g. / to \ on windows, \ to / on posix)
-
-
- string appendPath (string[] pathItems ...);
-
-appends file path parts with proper delimiters e.g. appendPath ("/home/user", ".myapp", "config") => "/home/user/.myapp/config"
-
-
- char[] appendPath (char[] buf , string[] pathItems ...);
-
-appends file path parts with proper delimiters (as well converts delimiters inside path to system) to buffer e.g. appendPath ("/home/user", ".myapp", "config") => "/home/user/.myapp/config"
-
-
- string[] splitPath (string path );
-
-split path into elements, e.g. /home/user/dir1 -> ["home", "user", "dir1"], "c:\dir1\dir2" -> ["c:", "dir1", "dir2"]
-
-
-
-
-
-
-
-
-
-
-
diff --git a/widget.html b/widget.html
deleted file mode 100644
index 8c2c32d7..00000000
--- a/widget.html
+++ /dev/null
@@ -1,1003 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.widgets.widget
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.widgets.widget
-
-This module contains declaration of Widget class - base class for all widgets.
-
-Widgets are styleable. Use styleId property to set style to use from current Theme.
-
-
-When any of styleable attributes is being overriden, widget 's own copy of style is being created to hold modified attributes (defaults to parent style).
-
-
-Two phase layout model (like in Android UI) is used - measure() call is followed by layout() is used to measure and layout widget and its children.abstract
-
-
-Method onDraw will be called to draw widget on some surface. Widget.onDraw() draws widget background (if any).
-
-
-
-
-Synopsis:
-import dlangui.widgets.widget ;
-
-// access attributes as properties
- auto w = new Widget("id1" );
-w.backgroundColor = 0xFFFF00;
-w.layoutWidth = FILL_PARENT;
-w.layoutHeight = FILL_PARENT;
-w.padding(Rect(10,10,10,10));
-// same, but using chained method call
- auto w = new Widget("id1" ).backgroundColor(0xFFFF00).layoutWidth(FILL_PARENT).layoutHeight(FILL_PARENT).padding(Rect(10,10,10,10));
-
-
-
-
-
-License:
-Boost License 1.0
-
-Authors:
-Vadim Lopatin, coolreader.org@gmail.com
-
- enum Visibility : ubyte;
-
-Visibility (see Android View Visibility )
-
-Visible
-Visible on screen (default)
-
-
-Invisible
-Not visible, but occupies a space in layout
-
-
-Gone
-Completely hidden, as not has been added
-
-
-
-
- interface OnClickHandler ;
-
-interface - slot for onClick
-
-
- interface OnCheckHandler ;
-
-interface - slot for onCheckChanged
-
-
- interface OnFocusHandler ;
-
-interface - slot for onFocusChanged
-
-
- interface OnKeyHandler ;
-
-interface - slot for onKey
-
-
- interface OnMouseHandler ;
-
-interface - slot for onMouse
-
-
- enum FocusMovement : int;
-
-focus movement options
-
-None
-no focus movement
-
-
-Next
-next focusable (Tab)
-
-
-Previous
-previous focusable (Shift+Tab)
-
-
-Up
-move to nearest above
-
-
-Down
-move to nearest below
-
-
-Left
-move to nearest at left
-
-
-Right
-move to nearest at right
-
-
-
-
- enum CursorType : int;
-
-standard mouse cursor types
-
-Parent
-use parent's cursor
-
-
-
-
- class Widget ;
-
-Base class for all widgets.
-
-
- protected string _id ;
-
-widget id
-
-
- protected Rect _pos ;
-
-current widget position, set by layout()
-
-
- protected Visibility _visibility ;
-
-widget visibility: either Visible, Invisible, Gone
-
-
- protected string _styleId ;
-
-style id to lookup style in theme
-
-
- protected Style _ownStyle ;
-
-own copy of style - to override some of style properties, null of no properties overriden
-
-
- protected uint _state ;
-
-widget state (set of flags from State enum)
-
-
- protected int _measuredWidth ;
-
-width measured by measure()
-
-
- protected int _measuredHeight ;
-
-height measured by measure()
-
-
- protected bool _needLayout ;
-
-true to force layout
-
-
- protected bool _needDraw ;
-
-true to force redraw
-
-
- protected Widget _parent ;
-
-parent widget
-
-
- protected Window _window ;
-
-window (to be used for top level widgets only!)
-
-
- protected bool _trackHover ;
-
-does widget need to track mouse Hover
-
-
- const @property bool trackHover ();
-
-mouse movement processing flag (when true , widget will change Hover state while mouse is moving)
-
-
- @property Widget trackHover (bool v );
-
-set new trackHover flag value (when true , widget will change Hover state while mouse is moving)
-
-
- uint getCursorType (int x , int y );
-
-returns mouse cursor type for widget
-
-
- this(string ID = null);
-
-create widget, with optional id
-
-
- protected const @property const(Style) style ();
-
-accessor to style - by lookup in theme by styleId (if style id is not set, theme base style will be used).
-
-
- protected const @property const(Style) style (uint stateFlags );
-
-accessor to style - by lookup in theme by styleId (if style id is not set, theme base style will be used).
-
-
- protected const @property const(Style) stateStyle ();
-
-returns style for current widget state
-
-
- protected @property Style ownStyle ();
-
-enforces widget's own style - allows override some of style properties
-
-
- const @property string id ();
-
-returns widget id , null if not set
-
-
- @property Widget id (string id );
-
-set widget id
-
-
- const bool compareId (string id );
-
-compare widget id with specified value, returs true if matches
-
-
- const @property uint state ();
-
-widget state (set of flags from State enum)
-
-
- protected void handleFocusChange (bool focused );
-
-override to handle focus changes
-
-
- protected void handleCheckChange (bool checked );
-
-override to handle check changes
-
-
- @property Widget state (uint newState );
-
-set new widget state (set of flags from State enum)
-
-
- @property Widget setState (uint stateFlagsToSet );
-
-add state flags (set of flags from State enum)
-
-
- @property Widget resetState (uint stateFlagsToUnset );
-
-remove state flags (set of flags from State enum)
-
-
- const @property string styleId ();
-
-returns widget style id, null if not set
-
-
- @property Widget styleId (string id );
-
-set widget style id
-
-
- const @property Rect margins ();
-
-get margins (between widget bounds and its background)
-
-
- @property Widget margins (Rect rc );
-
-set margins for widget - override one from style
-
-
- const @property Rect padding ();
-
-get padding (between background bounds and content of widget)
-
-
- @property Widget padding (Rect rc );
-
-set padding for widget - override one from style
-
-
- const @property uint backgroundColor ();
-
-returns background color
-
-
- @property Widget backgroundColor (uint color );
-
-set background color for widget - override one from style
-
-
- const @property string backgroundImageId ();
-
-background image id
-
-
- @property Widget backgroundImageId (string imageId );
-
-background image id
-
-
- const @property DrawableRef backgroundDrawable ();
-
-background drawable
-
-
- const @property uint alpha ();
-
-widget drawing alpha value (0=opaque .. 255=transparent)
-
-
- @property Widget alpha (uint value );
-
-set widget drawing alpha value (0=opaque .. 255=transparent)
-
-
- const @property uint textColor ();
-
-get text color (ARGB 32 bit value)
-
-
- @property Widget textColor (uint value );
-
-set text color (ARGB 32 bit value )
-
-
- @property uint textFlags ();
-
-get text flags (bit set of TextFlag enum values)
-
-
- @property Widget textFlags (uint value );
-
-set text flags (bit set of TextFlag enum values)
-
-
- const @property string fontFace ();
-
-returns font face
-
-
- @property Widget fontFace (string face );
-
-set font face for widget - override one from style
-
-
- const @property bool fontItalic ();
-
-returns font style (italic/normal)
-
-
- @property Widget fontItalic (bool italic );
-
-set font style (italic /normal) for widget - override one from style
-
-
- const @property ushort fontWeight ();
-
-returns font weight
-
-
- @property Widget fontWeight (ushort weight );
-
-set font weight for widget - override one from style
-
-
- const @property ushort fontSize ();
-
-returns font size in pixels
-
-
- @property Widget fontSize (ushort size );
-
-set font size for widget - override one from style
-
-
- const @property FontFamily fontFamily ();
-
-returns font family
-
-
- @property Widget fontFamily (FontFamily family );
-
-set font family for widget - override one from style
-
-
- const @property ubyte alignment ();
-
-returns alignment (combined vertical and horizontal)
-
-
- @property Widget alignment (ubyte value );
-
-sets alignment (combined vertical and horizontal)
-
-
- @property Align valign ();
-
-returns horizontal alignment
-
-
- @property Align halign ();
-
-returns vertical alignment
-
-
- const @property FontRef font ();
-
-returns font set for widget using style or set manually
-
-
- @property dstring text ();
-
-returns widget content text (override to support this)
-
-
- @property Widget text (dstring s );
-
-sets widget content text (override to support this)
-
-
- @property Widget text (UIString s );
-
-sets widget content text (override to support this)
-
-
- @property bool needLayout ();
-
-returns true if layout is required for widget and its children
-
-
- @property bool needDraw ();
-
-returns true if redraw is required for widget and its children
-
-
- @property bool animating ();
-
-returns true is widget is being animated - need to call animate() and redraw
-
-
- void animate (long interval );
-
-animates window; interval is time left from previous draw, in hnsecs (1/10000000 of second)
-
-
- @property auto measuredWidth ();
-
-returns measured width (calculated during measure() call)
-
-
- @property auto measuredHeight ();
-
-returns measured height (calculated during measure() call)
-
-
- @property int width ();
-
-returns current width of widget in pixels
-
-
- @property int height ();
-
-returns current height of widget in pixels
-
-
- @property int top ();
-
-returns widget rectangle top position
-
-
- @property int left ();
-
-returns widget rectangle left position
-
-
- @property Rect pos ();
-
-returns widget rectangle
-
-
- @property int minWidth ();
-
-returns min width constraint
-
-
- @property int maxWidth ();
-
-returns max width constraint (SIZE_UNSPECIFIED if no constraint set)
-
-
- @property int minHeight ();
-
-returns min height constraint
-
-
- @property int maxHeight ();
-
-returns max height constraint (SIZE_UNSPECIFIED if no constraint set)
-
-
- @property Widget maxWidth (int value );
-
-set max width constraint (SIZE_UNSPECIFIED for no constraint)
-
-
- @property Widget minWidth (int value );
-
-set max width constraint (0 for no constraint)
-
-
- @property Widget maxHeight (int value );
-
-set max height constraint (SIZE_UNSPECIFIED for no constraint)
-
-
- @property Widget minHeight (int value );
-
-set max height constraint (0 for no constraint)
-
-
- @property int layoutWidth ();
-
-returns layout width options (WRAP_CONTENT, FILL_PARENT, or some constant value)
-
-
- @property int layoutHeight ();
-
-returns layout height options (WRAP_CONTENT, FILL_PARENT, or some constant value)
-
-
- @property int layoutWeight ();
-
-returns layout weight (while resizing to fill parent, widget will be resized proportionally to this value)
-
-
- @property Widget layoutWidth (int value );
-
-sets layout width options (WRAP_CONTENT, FILL_PARENT, or some constant value )
-
-
- @property Widget layoutHeight (int value );
-
-sets layout height options (WRAP_CONTENT, FILL_PARENT, or some constant value )
-
-
- @property Widget layoutWeight (int value );
-
-sets layout weight (while resizing to fill parent, widget will be resized proportionally to this value )
-
-
- @property Visibility visibility ();
-
-returns widget visibility (Visible, Invisible, Gone)
-
-
- @property Widget visibility (Visibility visible );
-
-sets widget visibility (Visible, Invisible, Gone)
-
-
- bool isPointInside (int x , int y );
-
-returns true if point is inside of this widget
-
-
- @property bool enabled ();
-
-return true if state has State.Enabled flag set
-
-
- @property Widget enabled (bool flg );
-
-change enabled state
-
-
- @property bool clickable ();
-
-when true , user can click this control, and get onClick listeners called
-
-
- @property bool checkable ();
-
-when true , control supports Checked state
-
-
- @property bool checked ();
-
-get checked state
-
-
- @property Widget checked (bool flg );
-
-set checked state
-
-
- @property bool focusable ();
-
-whether widget can be focused
-
-
- @property bool wantsKeyTracking ();
-
-override and return true to track key events even when not focused
-
-
- @property bool focusGroup ();
-
-When focus group is set for some parent widget, focus from one of containing widgets can be moved using keyboard only to one of other widgets containing in it and cannot bypass bounds of focusGroup .
-
-If focused widget doesn't have any parent with focusGroup == true , focus may be moved to any focusable within window.
-
-
- @property Widget focusGroup (bool flg );
-
-set focus group flag for container widget
-
-
- Widget focusGroupWidget ();
-
-find nearest parent of this widget with focusGroup flag, returns topmost parent if no focusGroup flag set to any of parents.
-
-
- @property ushort tabOrder ();
-
-tab order - hint for focus movement using Tab/Shift+Tab
-
-
- @property bool visible ();
-
-returns true if this widget and all its parents are visible
-
-
- @property bool canFocus ();
-
-returns true if widget is focusable and visible
-
-
- Widget setFocus ();
-
-sets focus to this widget or suitable focusable child, returns previously focused widget
-
-
- Widget findFocusableChild (bool defaultOnly );
-
-searches children for first focusable item, returns null if not found
-
-
- bool handleAction (const Action a );
-
-override to handle specific actions
-
-
- protected Action findKeyAction (uint keyCode , uint flags );
-
-map key to action
-
-
- bool onKeyEvent (KeyEvent event );
-
-process key event , return true if event is processed.
-
-
- bool onMouseEvent (MouseEvent event );
-
-process mouse event ; return true if event is processed by widget.
-
-
- Signal!OnClickHandler onClickListener ;
-
-on click event listener (bool delegate(Widget))
-
-
- Signal!OnCheckHandler onCheckChangeListener ;
-
-checked state change event listener (bool delegate(Widget, bool))
-
-
- Signal!OnFocusHandler onFocusChangeListener ;
-
-focus state change event listener (bool delegate(Widget, bool))
-
-
- Signal!OnKeyHandler onKeyListener ;
-
-key event listener (bool delegate(Widget, KeyEvent)) - return true if event is processed by handler
-
-
- Signal!OnMouseHandler onMouseListener ;
-
-mouse event listener (bool delegate(Widget, MouseEvent)) - return true if event is processed by handler
-
-
- Widget addOnClickListener (bool delegate(Widget) listener );
-
-helper function to add onCheckChangeListener in method chain
-
-
- Widget addOnCheckChangeListener (bool delegate(Widget, bool) listener );
-
-helper function to add onCheckChangeListener in method chain
-
-
- Widget addOnFocusChangeListener (bool delegate(Widget, bool) listener );
-
-helper function to add onFocusChangeListener in method chain
-
-
- void requestLayout ();
-
-request relayout of widget and its children
-
-
- void invalidate ();
-
-request redraw
-
-
- protected void measuredContent (int parentWidth , int parentHeight , int contentWidth , int contentHeight );
-
-helper function for implement measure() when widget's content dimensions are known
-
-
- void measure (int parentWidth , int parentHeight );
-
-Measure widget according to desired width and height constraints. (Step 1 of two phase layout).
-
-
-
- void layout (Rect rc );
-
-Set widget rectangle to specified value and layout widget contents. (Step 2 of two phase layout ).
-
-
- void onDraw (DrawBuf buf );
-
-Draw widget at its position to buffer
-
-
- void applyMargins (ref Rect rc );
-
-Helper function: applies margins to rectangle
-
-
- void applyPadding (ref Rect rc );
-
-Helper function: applies padding to rectangle
-
-
- static void applyAlign (ref Rect rc , Point sz , Align ha , Align va );
-
-Applies alignment for content of size sz - set rectangle rc to aligned value of content inside of initial value of rc .
-
-
- void applyAlign (ref Rect rc , Point sz );
-
-Applies alignment for content of size sz - set rectangle rc to aligned value of content inside of initial value of rc .
-
-
- bool canShowPopupMenu (int x , int y );
-
-returns true if widget can show popup menu (e.g. by mouse right click at point x ,y )
-
-
- void showPopupMenu (int x , int y );
-
-shows popup menu at (x ,y )
-
-
- bool isActionEnabled (const Action action );
-
-override to change popup menu items state
-
-
- @property int childCount ();
-
-returns number of children of this widget
-
-
- Widget child (int index );
-
-returns child by index
-
-
- Widget addChild (Widget item );
-
-adds child, returns added item
-
-
- Widget removeChild (int index );
-
-removes child, returns removed item
-
-
- Widget removeChild (string id );
-
-removes child by ID, returns removed item
-
-
- int childIndex (Widget item );
-
-returns index of widget in child list, -1 if passed widget is not a child of this widget
-
-
- bool isChild (Widget item , bool deepSearch = true);
-
-returns true if item is child of this widget (when deepSearch == true - returns true if item is this widget or one of children inside children tree).
-
-
- Widget childById (string id , bool deepSearch = true);
-
-find child by id , returns null if not found
-
-
- @property Widget parent ();
-
-returns parent widget, null for top level widget
-
-
- @property Widget parent (Widget parent );
-
-sets parent for widget
-
-
- @property Window window ();
-
-returns window (if widget or its parent is attached to window )
-
-
- @property void window (Window window );
-
-sets window (to be used for top level widget from Window implementation). TODO: hide it from API?
-
-
-
-
- struct ObjectList (T);
-
-object list holder, owning its objects - on destroy of holder, all own objects will be destroyed
-
- const @property int count ();
-
-returns count of items
-
-
- T get (int index );
-
-get item by index
-
-
- T add (T item );
-
-add item to list
-
-
- T insert (T item , int index = -1);
-
-add item to list
-
-
- int indexOf (T item );
-
-find child index for item , return -1 if not found
-
-
- int indexOf (string id );
-
-find child index for item by id , return -1 if not found
-
-
- T remove (int index );
-
-remove item from list, return removed item
-
-
- void replace (T item , int index );
-
-Replace item with another value, destroy old value.
-
-
- void clear ();
-
-remove and destroy all items
-
-
-
-
- alias WidgetList = ObjectList!(Widget).ObjectList;
-
-Widget list holder.
-
-
- class WidgetGroup : dlangui.widgets.widget.Widget ;
-
-Base class for widgets which have children.
-
- @property int childCount ();
-
-returns number of children of this widget
-
-
- Widget child (int index );
-
-returns child by index
-
-
- Widget addChild (Widget item );
-
-adds child, returns added item
-
-
- Widget removeChild (int index );
-
-removes child, returns removed item
-
-
- Widget removeChild (string ID );
-
-removes child by ID , returns removed item
-
-
- int childIndex (Widget item );
-
-returns index of widget in child list, -1 if passed widget is not a child of this widget
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/win32drawbuf.html b/win32drawbuf.html
deleted file mode 100644
index 772541ac..00000000
--- a/win32drawbuf.html
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.platforms.windows.win32drawbuf
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.platforms.windows.win32drawbuf
-
-
-
-
-
-
-
-
-
-
diff --git a/win32fonts.html b/win32fonts.html
deleted file mode 100644
index d772690a..00000000
--- a/win32fonts.html
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.platforms.windows.win32fonts
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.platforms.windows.win32fonts
-
-
- class Win32Font : dlangui.graphics.fonts.Font ;
-
-Font implementation based on Win32 API system fonts.
-
- this();
-
-need to call create() after construction to initialize font
-
-
- void clear ();
-
-cleanup resources
-
-
- bool create (FontDef* def , int size , int weight , bool italic );
-
-init from font definition
-
-
-
-
- class Win32FontManager : dlangui.graphics.fonts.FontManager ;
-
-Font manager implementation based on Win32 API system fonts.
-
- this();
-
-initialize in constructor
-
-
- bool init ();
-
-initialize font manager by enumerating of system fonts
-
-
- FontRef _emptyFontRef ;
-
-for returning of not found font
-
-
- ref FontRef getFont (int size , int weight , bool italic , FontFamily family , string face );
-
-get font by properties
-
-
- FontDef* findFace (FontFamily family );
-
-find font face definition by family only (try to get one of defaults for family if possible)
-
-
- FontDef* findFace (string face );
-
-find font face definition by face only
-
-
- FontDef* findFace (FontFamily family , string face );
-
-find font face definition by family and face
-
-
- bool registerFont (FontFamily family , string fontFace , ubyte pitchAndFamily );
-
-register enumerated font
-
-
- void checkpoint ();
-
-clear usage flags for all entries
-
-
- void cleanup ();
-
-removes entries not used after last call of checkpoint() or cleanup ()
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/winapp.html b/winapp.html
deleted file mode 100644
index 79f37aad..00000000
--- a/winapp.html
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - dlangui.platforms.windows.winapp
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- dlangui.platforms.windows.winapp
-
-
- int UIAppMain (string[] args );
-
-this function should be defined in user application!
-
-
-
-
-
-
-
-
-
-
-
diff --git a/x11app.html b/x11app.html
deleted file mode 100644
index 08f20a55..00000000
--- a/x11app.html
+++ /dev/null
@@ -1,46 +0,0 @@
-
-
-
-
-
-
-
-
-
-
- DlangUI - cross platform GUI library for D programming language - src.dlangui.platforms.x11.x11app
-
-
-
-
-
- DlangUI
- Cross Platform GUI for D programming language
-
-
-
-
-
- src.dlangui.platforms.x11.x11app
-
-
-
-
-
-
-
-
-
-