dgt v0.3.2 (2017-09-19T17:07:41Z)
Dub
Repo
Button
dgt
ui
A clickable button
struct
Button {
this
();
@
nogc
nothrow
Rectangle
area
;
@
nogc
nothrow
Vector
position
;
@
nogc
nothrow
Texture
tex
;
@
nogc
nothrow
Texture
hover
;
@
nogc
nothrow
Texture
press
;
this
(Rectangle area, Vector position, Texture tex, Texture hover, Texture press);
bool
draw
(Window window);
}
Constructors
this
this
()
Undocumented in source.
this
this
(Rectangle area, Vector position, Texture tex, Texture hover, Texture press)
Defines a button
Members
Functions
draw
bool
draw
(Window window)
Draw a button and return if it is pressed
Variables
area
Rectangle
area
;
hover
Texture
hover
;
Undocumented in source.
position
Vector
position
;
press
Texture
press
;
Undocumented in source.
tex
Texture
tex
;
Undocumented in source.
Meta
Source
See Implementation
dgt
ui
structs
Button
Carousel
Slider
A clickable button