mirror of https://github.com/buggins/dlangui.git
133 lines
4.2 KiB
HTML
133 lines
4.2 KiB
HTML
<html><head>
|
|
<META http-equiv="content-type" content="text/html; charset=utf-8">
|
|
<title>dlangui.widgets.popup</title>
|
|
</head><body>
|
|
<h1>dlangui.widgets.popup</h1>
|
|
<!-- Generated by Ddoc from src/dlangui/widgets/popup.d -->
|
|
DLANGUI library.
|
|
<br><br>
|
|
This module contains <u>popup</u> widgets implementation.
|
|
<br><br>
|
|
|
|
Popups appear above other widgets inside window.
|
|
<br><br>
|
|
|
|
Useful for <u>popup</u> menus, notification popups, etc.
|
|
|
|
<br><br>
|
|
<b>Synopsis:</b><br>
|
|
<pre class="d_code"><font color=blue>import</font> dlangui.widgets.<u>popup</u>;
|
|
|
|
</pre>
|
|
|
|
<br><br>
|
|
<b>License:</b><br>
|
|
Boost License 1.0
|
|
<br><br>
|
|
<b>Authors:</b><br>
|
|
Vadim Lopatin, coolreader.org@gmail.com<br><br>
|
|
|
|
<dl><dt><big><a name="PopupAlign"></a>enum <u>PopupAlign</u>: uint;
|
|
</big></dt>
|
|
<dd>popup alignment option flags<br><br>
|
|
|
|
<dl><dt><big><a name="PopupAlign.Center"></a><u>Center</u></big></dt>
|
|
<dd>center popup around anchor widget center<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupAlign.Below"></a><u>Below</u></big></dt>
|
|
<dd>place popup below anchor widget close to lower bound<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupAlign.Right"></a><u>Right</u></big></dt>
|
|
<dd>place popup below anchor widget close to right bound (when no space enough, align near left bound)<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupAlign.Point"></a><u>Point</u></big></dt>
|
|
<dd>align to specified point<br><br>
|
|
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
<dt><big><a name="PopupFlags"></a>enum <u>PopupFlags</u>: uint;
|
|
</big></dt>
|
|
<dd>popup behavior flags - for PopupWidget.flags property<br><br>
|
|
|
|
<dl><dt><big><a name="PopupFlags.CloseOnClickOutside"></a><u>CloseOnClickOutside</u></big></dt>
|
|
<dd>close popup when mouse button clicked outside of its bounds<br><br>
|
|
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
<dt><big><a name="PopupWidget"></a>class <u>PopupWidget</u>: dlangui.widgets.layouts.LinearLayout;
|
|
</big></dt>
|
|
<dd>popup widget container<br><br>
|
|
|
|
<dl><dt><big><a name="PopupWidget.onPopupCloseListener"></a>@property void delegate(PopupWidget popup) <u>onPopupCloseListener</u>();
|
|
</big></dt>
|
|
<dd>popup close listener (called right before closing)<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupWidget.onPopupCloseListener"></a>@property PopupWidget <u>onPopupCloseListener</u>(void delegate(PopupWidget popup) <i>listener</i>);
|
|
</big></dt>
|
|
<dd>set popup close <i>listener</i> (to call right before closing)<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupWidget.flags"></a>@property uint <u>flags</u>();
|
|
</big></dt>
|
|
<dd>returns popup behavior <u>flags</u> (combination of PopupFlags)<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupWidget.flags"></a>@property PopupWidget <u>flags</u>(uint <u>flags</u>);
|
|
</big></dt>
|
|
<dd>set popup behavior <u>flags</u> (combination of PopupFlags)<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupWidget.anchor"></a>@property ref PopupAnchor <u>anchor</u>();
|
|
</big></dt>
|
|
<dd>access to popup <u>anchor</u><br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupWidget.modal"></a>bool <u>modal</u>();
|
|
</big></dt>
|
|
<dd>returns <b>true</b> if popup is <u>modal</u><br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupWidget.modal"></a>PopupWidget <u>modal</u>(bool <u>modal</u>);
|
|
</big></dt>
|
|
<dd>set modality flag<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupWidget.measure"></a>void <u>measure</u>(int <i>parentWidth</i>, int <i>parentHeight</i>);
|
|
</big></dt>
|
|
<dd>Measure widget according to desired width and height constraints. (Step 1 of two phase layout).<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupWidget.close"></a>void <u>close</u>();
|
|
</big></dt>
|
|
<dd><u>close</u> and destroy popup<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupWidget.onClose"></a>void <u>onClose</u>();
|
|
</big></dt>
|
|
<dd>just call on close listener<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupWidget.layout"></a>void <u>layout</u>(Rect <i>rc</i>);
|
|
</big></dt>
|
|
<dd>Set widget rectangle to specified value and <u>layout</u> widget contents. (Step 2 of two phase <u>layout</u>).<br><br>
|
|
|
|
</dd>
|
|
<dt><big><a name="PopupWidget.onMouseEventOutside"></a>bool <u>onMouseEventOutside</u>(MouseEvent <i>event</i>);
|
|
</big></dt>
|
|
<dd>called for mouse activity outside shown popup bounds<br><br>
|
|
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
|
|
<hr><small>Page generated by <a href="http://dlang.org/ddoc.html">Ddoc</a>. Vadim Lopatin, 2014
|
|
</small>
|
|
</body></html>
|