MdiClientWidget

A client widget for MDI.

Constructors

this
this()

Members

Functions

layout
vec2 layout(vec2 basept, vec2 size)
loadText
void loadText(dstring v, FontFace face)

Changes title text.

requestLayout
void requestLayout()
setHost
void setHost(MdiHostWidget host)

Mixins

__anonymous
mixin TitleBar
Undocumented in source.
__anonymous
mixin WindowOperations
Undocumented in source.

Properties

contents
contents [@property getter]

Contents widget.

trackable
bool trackable [@property getter]
widget
Widget widget [@property getter]

Variables

_contents
PanelWidget _contents;
Undocumented in source.
_host
MdiHostWidget _host;
Undocumented in source.
_titlebar
TitleBarWidget _titlebar;
Undocumented in source.

Mixed In Members

From mixin TitleBar

CloseButtonWidget
class CloseButtonWidget
Undocumented in source.
TitleBarWidget
class TitleBarWidget
Undocumented in source.

From mixin WindowOperations

_draggingSides
uint _draggingSides;
Undocumented in source.
enableSideDragging
void enableSideDragging(vec2 pos)
Undocumented in source. Be warned that the author may not have intended to support it.
resizeWithDragging
void resizeWithDragging(vec2 cur)
Undocumented in source. Be warned that the author may not have intended to support it.
_minSize
vec2 _minSize;
Undocumented in source.
minSize
minSize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
_maxSize
vec2 _maxSize;
Undocumented in source.
maxSize
maxSize [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
limitSize
void limitSize(vec2 min, vec2 max)
Undocumented in source. Be warned that the author may not have intended to support it.
_pos
vec2 _pos;
Undocumented in source.
pos
vec2 pos [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
_size
vec2 _size;
Undocumented in source.
size
vec2 size [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
move
void move(vec2 pos)
Undocumented in source. Be warned that the author may not have intended to support it.
resize
void resize(vec2 size)
Undocumented in source. Be warned that the author may not have intended to support it.
onClose
MdiClientCloseHandler onClose;
Undocumented in source.
close
void close()
Undocumented in source. Be warned that the author may not have intended to support it.
cursor
const(Cursor) cursor [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
handleMouseMove
bool handleMouseMove(vec2 cur)
Undocumented in source. Be warned that the author may not have intended to support it.
handleMouseButton
bool handleMouseButton(MouseButton btn, bool status, vec2 pos)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From PanelWidget

_children
Widget[] _children;
Undocumented in source.
children
Widget[] children [@property getter]
addChild
Widget addChild(Widget child)

Adds the child.

swapChild
void swapChild(Widget c1, Widget c2)

Swaps the children.

removeAllChildren
void removeAllChildren()

Removes all children.

removeChild
void removeChild(Widget child)

Removes the child.

DisableModifyChildren
template DisableModifyChildren()
Undocumented in source.
trackable
bool trackable [@property getter]
focusable
bool focusable [@property getter]

From MdiClient

pos
vec2 pos [@property getter]

Position of the client.

size
vec2 size [@property getter]

Size of the client.

widget
Widget widget [@property getter]

This property returns thiself that is casted to Widget. To prove the casting is safe.

setHost
void setHost(MdiHostWidget )

Changes the host widget.

Meta