~jkvatne

Recent activity

[PATCH gio] app: Window size corrected for frame 3 months ago

From Jan Kåre Vatne to ~eliasnaur/gio-patches

Correct for window decorations when sizing window.

Fixes: https://todo.sr.ht/~eliasnaur/gio/345
Signed-off-by: Jan Kåre Vatne <jkvatne@online.no>
---
 app/os_windows.go | 55 ++++++++++++++++++++++++++++++++++-------------
 1 file changed, 40 insertions(+), 15 deletions(-)

diff --git a/app/os_windows.go b/app/os_windows.go
index b6da2af6..ba3918f4 100644
--- a/app/os_windows.go
+++ b/app/os_windows.go
@@ -195,23 +195,28 @@ func (w *window) update() {
		X: int(r.Right - r.Left - w.deltas.width),
[message trimmed]

[PATCH gio] app: add minimized window mode, change methods to options 4 months ago

From Jan Kåre Vatne to ~eliasnaur/gio-patches

The window modes are extended, following microsoft conventions.
We have Fullscreen, Overlapping, Maximized and Minimized.
These modes can be set via options when a new window is creates,
or modified later by calling helper functions like w.Maximize() and w.Center()

The window configuration is automatically updated when a user
modifies the window by dragging or clicking the icons on the window's title-bar,
minimizing or maximizing the window.

Any change, either by the user or the application will emit a ConfigChange event.

This is implemented and tested on Windows only.

The size/mode is only changed using options. To change the mode/size/center
[message trimmed]

[PATCH gio] app: add minimized window mode, change methods to options 4 months ago

From Jan Kåre Vatne to ~eliasnaur/gio-patches

The window modes are extended, following microsoft conventions.
We have Fullscreen, Overlapping, Maximized and Minimized.
These modes can be set via options when a new window is creates,
or modified later by calling helper functions like w.Maximize() and w.Center()

The window configuration is automatically updated when a user
modifies the window by dragging or clicking the icons on the window's title-bar,
minimizing or maximizing the window.

Any change, either by the user or the application will emit a ConfigChange event.

This is implemented and tested on Windows only.

Fixes: https://todo.sr.ht/~eliasnaur/gio/315
[message trimmed]

[PATCH gio] Add options to set window type and posision/size 4 months ago

From Jan Kåre Vatne to ~eliasnaur/gio-patches

The window modes are extended, following microsoft conventions.
We have Fullscreen, Overlapping, Maximized and Minimized.
These modes can be set via options when a new window is creates,
or modified later by calling helper functions like w.Maximize() and w.Center()

The window configuration is automatically updated when a user
modifies the window by dragging or clicking the icons on the window's title-bar,
minimizing or maximizing the window.

Any change, either by the user or the program will emit a ConfigChange event.

Signed-off-by: Jan Kåre Vatne <jkvatnel@online.no>
Signed-off-by: Jan Kåre Vatne <jkvatne@online.no>
---
[message trimmed]

Re: Centered after window launch 4 months ago

From Jan Kåre Vatne to ~eliasnaur/gio

The reason it is not working is that the actual window is not created 
immediately in the call to NewWindow. It is created later in a go 
routine. So you have to call w.Center() after recieving at least one 
Frame event.

There should be a app.Center() option in the NewWIndow call. That was my 
first try when I made the Center() function, but Elias wanted a window 
function, so I removed it. But we should have both. I will try to add 
one soon, together with a Maximize option.

Jan Kåre

[PATCH gio] Add grid and table 4 months ago

From Jan Kåre Vatne to ~eliasnaur/gio-patches

The table is a grid with headings. The implementation is modeled after the List.
Both are scrollable vertical and horizontal. The column widths must be given,
and all rows are same height.

Signed-off-by: Jan Kåre Vatne <jkvatne@online.no>
---
 layout/grid.go          | 161 ++++++++++++++++++++++++++++
 widget/grid.go          |  11 ++
 widget/material/grid.go | 227 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 399 insertions(+)
 create mode 100644 layout/grid.go
 create mode 100644 widget/grid.go
 create mode 100644 widget/material/grid.go
[message trimmed]