π
<-
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 4: MC (Membre Confirmé)
Niveau 4: MC (Membre Confirmé)
Level up: 16%
 
Posts: 17
Joined: 03 Jul 2020, 12:22
Gender: Not specified
Calculator(s):
MyCalcs profile
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 ? ^^'
Image

MyCalcs: Help the community's calculator documentations by filling out your calculators info!
MyCalcs: Aidez la communauté à documenter les calculatrices en donnant des infos sur vos calculatrices !
Inspired-Lua.org: All about TI-Nspire Lua programming (tutorials, wiki/docs...)
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 80.2%
 
Posts: 14616
Images: 1218
Joined: 01 Jun 2007, 00:00
Location: France
Gender: Male
Calculator(s):
MyCalcs profile
Twitter: adriweb
GitHub: adriweb


Return to Nspire-Lua

Who is online

Users browsing this forum: No registered users and 22 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
Phi NumWorks jailbreak
123
-
Donations / Premium
For more contests, prizes, reviews, helping us pay the server and domains...
Donate
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.
1669 utilisateurs:
>1647 invités
>17 membres
>5 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)