Button.this

Creates a button attached to the specified parent.

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

Parameters

parent Widget

The nanogui.Widget this Button will be attached to.

caption string

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

image const(NVGImage)

The image to display with this Button. See nanogui.Button.mImage.

Meta