π
<-
Chat plein-écran
[^]

Lua window manager

Pour TI-Nspire OS 3.0 ou ultérieur.

Lua window manager

Unread postby nspiredev500 » 25 Jul 2020, 22:23

I started working on a window manager for lua apps.
I always wanted to make one, and I'm currently revisiting TI-Lua for integration with Ndless.
I could make one in C, but that would not integrate into the document and only work on the calculator and with Ndless.
So I started it in Lua.

Currently, it's just wrapper around the on.*-functions, you can create a window and move it around.
But you could already customize the window decorations :)
Image

Planned features:
  • multiple windows, with correct overlapping and lifting the dragged one to the top
  • resizable windows
  • components to put in the windows:
  • buttons, labels, canvases, sliders...
  • events for the components
  • custom components
  • clipping, so one component cannot overdraw another
  • when moving windows, only redraw the part of the windows and components that need to be redrawn, to improve performance
  • ability to load scripts from public library vars and put them in a setfenv sandbox, so they think they run normally, while all the api calls are redirectd to the window manager
My goal is something like the Java AWT for Lua
I need a good graphics API for my next project.
You can guess what my next project is.
Hint: What happens if assembly support is removed from one product line?
User avatar
nspiredev500
Niveau 5: MO (Membre Overclocké)
Niveau 5: MO (Membre Overclocké)
Level up: 0%
 
Posts: 10
Joined: 03 Jul 2020, 12:22
Gender: Not specified
Calculator(s):
GitHub: nspiredev500

Re: Lua window manager

Unread postby Adriweb » 25 Jul 2020, 23:32

Several GUI frameworks already exist in Nspire Lua, those don't need Ndless (which is unofficial/jailbreak, so consider assembly support never present, unless Ndless works on the targeted OS).
So I'm not sure to understand what you ask ? ^^'
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 54.6%
 
Posts: 12973
Images: 1087
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
Class: (ingénieur)
Twitter: adriweb
GitHub: adriweb


Return to Nspire-Lua

Who is online

Users browsing this forum: No registered users and 1 guest

-
Search
-
Featured topics
L'OS 5.5 de la TI-83 Premium CE / 84 Plus CE supprime l'assembleur - la plupart des jeux et certains programme ne fonctionneront plus
Omega, le fork étendant les capacités de ta NumWorks, même en mode examen !
Découvre les nouvelles fonctionnalités en Python de l'OS 5.5 pour la 83PCE/84+C-T Python Edition
Comparaisons des meilleurs prix pour acheter sa calculatrice !
1234
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...

Discover the the advantages of a donor account !
JoinRejoignez the donors and/or premium!les donateurs et/ou premium !


Partner and ad
Notre partenaire Jarrety Calculatrices à acheter chez Calcuso
-
Stats.
389 utilisateurs:
>382 invités
>1 membre
>6 robots
Record simultané (sur 6 mois):
6892 utilisateurs (le 07/06/2017)
-
Other interesting websites
Texas Instruments Education
Global | France
 (English / Français)
Banque de programmes TI
ticalc.org
 (English)
La communauté TI-82
tout82.free.fr
 (Français)