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

    bright-gpu-74537

    03/02/2023, 4:55 PM
    thats completely inaccurate... clipping is expensive pretty much everywhere, only handle clipping if "handleClipRect" gets called 🙂
  • a

    ambitious-knife-25690

    03/02/2023, 4:55 PM
    ahah, okay then 😄
  • a

    ambitious-knife-25690

    03/02/2023, 4:56 PM
    so, as long as i constrain clipping to be instantiated to within the handlecliprect, we're good?
  • b

    bright-gpu-74537

    03/02/2023, 4:56 PM
    clipping is "so expensive" that its, for the most part, an "opt in thing" (i mean, scrollviews, etc, obviously have it) but things that you probably thing should clip, wont unless you explicitly tell them to, otherwise things get silly real fast
  • b

    bright-gpu-74537

    03/02/2023, 4:58 PM
    eg: http://haxeui.org/builder/?a6ae8df2
  • b

    bright-gpu-74537

    03/02/2023, 4:59 PM
    technically all components should clip by default, but that gets too much for most frameworks to handle in my exp... as @billowy-waiter-28954 says, its certainly non negligible
  • b

    bright-gpu-74537

    03/02/2023, 5:04 PM
    i guess i could also have like an "auto clip" type of thing, where if the child goes out of the parent bounds clipping is turned on / off... but anyway, certainly doesnt exist at the moment, and in general, you should only end up with clip rects on the obvious things (scrollview, listview, etc)
  • a

    ambitious-knife-25690

    03/02/2023, 5:23 PM
    @bright-gpu-74537 is there an internal flag that I can track that tells me if something needs to be clipped? because I have to add a visual to a different visual if clipping is required
  • b

    bright-gpu-74537

    03/02/2023, 5:23 PM
    no, but you could always create one in componentimpl
  • a

    ambitious-knife-25690

    03/02/2023, 5:23 PM
    there is style.clip but I'm not sure if that's enough
  • a

    ambitious-knife-25690

    03/02/2023, 5:24 PM
    something like 'if handleclip is called we clipping?
  • b

    bright-gpu-74537

    03/02/2023, 5:24 PM
    no thats not enough... thats for style, which basically means "clip this component" - and when that happens, handleClipRect will be called with the bounds of the component
  • b

    bright-gpu-74537

    03/02/2023, 5:24 PM
    in handleClipRect you could always do:
    _isClipped = (clipRect != null)
  • b

    billowy-waiter-28954

    03/02/2023, 5:33 PM
    ...to keep the analogy with html5, html elements don't clip by default
  • a

    ambitious-knife-25690

    03/02/2023, 10:42 PM
    @bright-gpu-74537 okay I've got a positioning question
  • a

    ambitious-knife-25690

    03/02/2023, 10:43 PM
    the xml here is the example
  • a

    ambitious-knife-25690

    03/02/2023, 10:43 PM
    I've got a poc filter clip working
  • a

    ambitious-knife-25690

    03/02/2023, 10:43 PM
    however
  • a

    ambitious-knife-25690

    03/02/2023, 10:43 PM
    if i readd the other example
  • a

    ambitious-knife-25690

    03/02/2023, 10:44 PM
    it goes away
  • a

    ambitious-knife-25690

    03/02/2023, 10:45 PM
    this is because the filter isn't relative to the contents anymore
  • a

    ambitious-knife-25690

    03/02/2023, 10:46 PM
    the values coming in is still
    0, 0
    so the black square remains under the components above
  • a

    ambitious-knife-25690

    03/02/2023, 10:46 PM
    How can i follow correct spacing here?
  • a

    ambitious-knife-25690

    03/02/2023, 11:10 PM
    yooooooo i think i may have it 😄
  • a

    ambitious-knife-25690

    03/02/2023, 11:13 PM
    okay i kind of have it
  • a

    ambitious-knife-25690

    03/02/2023, 11:13 PM
    hmm
  • a

    ambitious-knife-25690

    03/02/2023, 11:14 PM
    weird, for virtual box it works fine
  • a

    ambitious-knife-25690

    03/02/2023, 11:14 PM
    for normal box it doesn't
  • a

    ambitious-knife-25690

    03/03/2023, 12:26 AM
    hehehehe
  • a

    ambitious-knife-25690

    03/03/2023, 12:26 AM
    splitter now properly works 😄
1...156515661567...1687Latest