Button.this

Creates a button attached to the specified parent.

  1. this(Widget parent, string caption)
  2. this(Widget parent, string caption, dchar icon)
    class Button
    this
    (,
    string caption
    ,
    dchar icon
    )
  3. this(Widget parent, string caption, const(NVGImage) image)

Parameters

parent Widget

The nanogui.Widget this Button will be attached to.

caption string

The name of the button (default "Untitled").

icon dchar

The icon to display with this Button. See nanogui.Button.mIcon.

Meta