Skip to content

Commit

Permalink
Add window position methods and position changed event
Browse files Browse the repository at this point in the history
  • Loading branch information
kojix2 committed Apr 8, 2023
1 parent 31caf1b commit 21cfabe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/libui/ffi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ def ffi_methods

try_extern 'char *uiWindowTitle(uiWindow *w)'
try_extern 'void uiWindowSetTitle(uiWindow *w, const char *title)'
try_extern 'void uiWindowPosition(uiWindow *w, int *x, int *y)'
try_extern 'void uiWindowSetPosition(uiWindow *w, int x, int y)'
try_extern 'void uiWindowOnPositionChanged(uiWindow *w, void (*f)(uiWindow *sender, void *senderData), void *data)'
try_extern 'void uiWindowContentSize(uiWindow *w, int *width, int *height)'
try_extern 'void uiWindowSetContentSize(uiWindow *w, int width, int height)'
try_extern 'int uiWindowFullscreen(uiWindow *w)'
Expand Down

5 comments on commit 21cfabe

@AndyObtiva
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kojix2 When will you make a libui binding release with the new window position API methods?

Somebody just asked me for this window positioning feature:
AndyObtiva/glimmer-dsl-libui#53

@kojix2
Copy link
Owner Author

@kojix2 kojix2 commented on 21cfabe Jul 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I transferred to a new workplace in April, and my available time for OSS has reduced compared to before.
However, I want to release the new version in the near future.

@AndyObtiva
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering if you got some time to make a small release of LibUI that includes the change above. It would be nice if a small release happens before my RubyConf 2023 workshop "How To Build Desktop Applications in Ruby".

@kojix2
Copy link
Owner Author

@kojix2 kojix2 commented on 21cfabe Nov 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Andy, I pushed v0.1.3.pre to rubygem server except Windows.

@AndyObtiva
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

Please sign in to comment.