75fce53716
Added Paragraph control.
...
Extended DesiredSize method with extra arguments that tells the control how much space is available for the parent control (note: this might not be the actual given size when Arrange is called on the control).
2020-05-16 15:37:53 +02:00
ae46d2a1f2
Added Disabled to controls.
2020-05-16 13:46:07 +02:00
7f3d836254
Added a generic Events struct in zntg (without ui.Context).
...
Refactored ui.Events to re-use zntg.Events.
2020-05-16 09:36:04 +02:00
d742fba7e9
Added Events and changed event handlers of controls.
...
Removed EventHandlers from Control interface.
2020-05-15 19:00:43 +02:00
3a18d3adf9
Added support for tooltips.
2020-05-15 16:53:57 +02:00
5d297c98b8
Keeping state of a drag operation separately.
2020-05-15 12:15:44 +02:00
4d05127c6d
Removed Context and Control from event handlers.
2019-07-06 07:42:40 +02:00
a6bb05794f
Added mouse enter/leave event.
2019-06-24 21:56:52 +02:00
e867925de8
Added (horizontal) text alignment.
2019-06-24 20:58:14 +02:00
dbc017507c
Added Parent to Controls.
...
Fixed issue where events of partially and invisible controls where incorrectly handled.
2019-04-11 23:38:32 +02:00
99c76545ef
Added RenderOutline to ControlBase.
...
Added HoverColor to Button.
2019-04-11 23:27:25 +02:00
67658d3bee
Added key event.
...
Some small additions/changes.
2019-04-10 21:23:56 +02:00
c83a6d5aad
Added FontStyle on ControlBase.
...
Forced putting text on integer coordinates.
2019-03-12 19:43:52 +01:00
ff2ece7d06
Added mouse wheel implementation (scrollbar & overflow).
...
Fixed bug in length of scrollbar handle.
2019-03-06 18:22:30 +01:00
19daffd110
Added UI elements.
...
Reversed order of operands when comparing with nil/0 .
2019-03-05 21:52:18 +01:00