π
<-

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 ? ^^'

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...)
My calculator programs
Mes programmes pour calculatrices
User avatar
AdriwebAdmin
Niveau 16: CC2 (Commandeur des Calculatrices)
Niveau 16: CC2 (Commandeur des Calculatrices)
Level up: 78.9%
 
Posts: 14733
Images: 1119
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: ClaudeBot [spider] and 2 guests

-
Search
-
Social TI-Planet
-
Featured topics
Comparaisons des meilleurs prix pour acheter sa calculatrice !
"1 calculatrice pour tous", le programme solidaire de Texas Instruments. Reçois gratuitement et sans aucune obligation d'achat, 5 calculatrices couleur programmables en Python à donner aux élèves les plus nécessiteux de ton lycée. Tu peux recevoir au choix 5 TI-82 Advanced Edition Python ou bien 5 TI-83 Premium CE Edition Python.
Enseignant(e), reçois gratuitement 1 exemplaire de test de la TI-82 Advanced Edition Python. À demander d'ici le 31 décembre 2024.
Aidez la communauté à documenter les révisions matérielles en listant vos calculatrices graphiques !
1234
-
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.
901 utilisateurs:
>872 invités
>22 membres
>7 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)