https://linen.dev logo
Join Discord
Powered by
# haxe-ui
  • a

    ambitious-knife-25690

    03/18/2023, 2:12 AM
    with the caveat being, the backend needs to implement the action but not the component
  • a

    ambitious-knife-25690

    03/18/2023, 2:13 AM
    so a canvas component would need to know how to draw a line, in the backend you write how you draw a line on the backend
  • a

    ambitious-knife-25690

    03/18/2023, 2:13 AM
    but if you don't implement drawing a line, you can't use the canvas component
  • b

    billowy-train-84579

    03/18/2023, 2:14 AM
    Alright
  • a

    ambitious-knife-25690

    03/18/2023, 2:16 AM
    this might make it a bit more obvious
  • a

    ambitious-knife-25690

    03/18/2023, 2:16 AM
    this is all the files a backend may need to implement
  • a

    ambitious-knife-25690

    03/18/2023, 2:17 AM
    componentsurface
    may be a
    flxsprite
  • a

    ambitious-knife-25690

    03/18/2023, 2:17 AM
    imagesurface
    may be a bridge to flxgraphic etc
  • b

    billowy-train-84579

    03/18/2023, 2:29 AM
    Hmm
  • b

    billowy-train-84579

    03/18/2023, 4:37 AM
    Hi
  • b

    billowy-train-84579

    03/18/2023, 5:02 AM
    Specifically the intention is to be able to use any GUI component provided by a UI framework backend, even if it does not exist in any other UI framework backend
  • b

    billowy-train-84579

    03/18/2023, 5:02 AM
    (of course, mixing backends is not allowed)
  • b

    billowy-train-84579

    03/18/2023, 5:05 AM
    For example, if we where to make a backend for Android's View System, then we should be able to use every single component from that view system, such as RecyclerView, ConstraintLayout, and others
  • b

    billowy-train-84579

    03/18/2023, 5:07 AM
    But im not sure how to go about that
  • o

    orange-van-60470

    03/18/2023, 6:42 AM
    probably easier to use a java android game engine as the basis, so you just need an app view or something to control the user space and provide the mouse methods etc..
  • o

    orange-van-60470

    03/18/2023, 6:43 AM
    for instance libgdx could be used
  • o

    orange-van-60470

    03/18/2023, 6:44 AM
    probably need to look otherwise at some of the Kotin non xml android stuff
  • o

    orange-van-60470

    03/18/2023, 6:54 AM
    for instance maybe could have some stuff. But haxe-ui backend would need fairly lowlevel I suspect. So need to look at how parts of the android internals fit together as much of the xml structures in android would be too high level, that's why a java game engine that runs in android would be cleaner to misuse for this?
  • b

    bright-gpu-74537

    03/18/2023, 8:58 AM
    So thats not really how haxeui works, haxeui would abstract android native ui into haxeui, so you wouldnt use andriods layout system directly, you would use haxeuis layout system (and components) and the backend (haxeui-android) would be responsible for using the appropriate native layout
  • b

    bright-gpu-74537

    03/18/2023, 9:50 AM
    alright, this should be working now - latest haxeui-hxwidgets, composites are fixed too (latest haxeui-core), but i dont think you currently care about that 🙂
  • i

    icy-zebra-52882

    03/18/2023, 10:04 AM
    having trouble getting it to work still
  • i

    icy-zebra-52882

    03/18/2023, 10:04 AM
    trying a clean build again in case of cache shenanigans
  • b

    bright-gpu-74537

    03/18/2023, 10:05 AM
    hmmmm
  • i

    icy-zebra-52882

    03/18/2023, 10:07 AM
    still no luck https://plzlookat.mystupid.pictures/WindowsTerminal_56IQqGQ9Vn.webm
  • b

    bright-gpu-74537

    03/18/2023, 10:07 AM
    right, actually, your repro doesnt work right, so there still might be something off
  • b

    bright-gpu-74537

    03/18/2023, 10:08 AM
    oh, thats a different issue entirely
  • b

    bright-gpu-74537

    03/18/2023, 10:14 AM
    alright, can you try that?
  • b

    bright-gpu-74537

    03/18/2023, 10:14 AM
    also, btw the your repro isnt using datasources correctly,
    new DataSource
    should be
    new ArrayDataSource
  • i

    icy-zebra-52882

    03/18/2023, 10:15 AM
    ah forgot that one
  • b

    bright-gpu-74537

    03/18/2023, 10:16 AM
    has nothing to do with the bug(s) though - which i think are squished now... ... ... ?
1...160416051606...1687Latest