Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Allen Dang
    @AllenDang
    I'm using android app. Works fine.
    Stanislav N.
    @pztrn
    but anyway, I have a question about extending widgets list - I'm using giu for one personal project and at job and we will need some additional widgets we (most likely) contribute upstream
    (e.g. to this binding :P)
    what would be the best approach for structuring such widgets? to root? to "widgets" package?
    Allen Dang
    @AllenDang
    To root, that will be easy to use by g.XXX
    Stanislav N.
    @pztrn
    aha, okay, thanks
    Allen Dang
    @AllenDang
    I'm working on a shared data storage in Context which will be useful to create custom widget which do have to maintain a state. Like a animated Progress Indicator.
    Stanislav N.
    @pztrn
    sounds great!
    also it'll be good to have some layout mechanisms like big frameworks have...
    e.g. pushing button to very right
    Allen Dang
    @AllenDang
    Yes.... I have that planned to...
    I need that too
    Get back to you later. I have to go out now. Keep in touch. :)
    Stanislav N.
    @pztrn
    then consider me in :D I think I can help with that in March (got vacation starting next week)
    Allen Dang
    @AllenDang
    Welcome!
    Allen Dang
    @AllenDang
    @pztrn Shared data storage in Context is implemented. Check ProgressIndicator.go for example.
    example/extrawidgets as a demo.
    Stanislav N.
    @pztrn
    AllenDang: hey there, sorry for being absent for some time, but I've started to tinkering with multiwindowing and encounter a thing - when there are a control somewhere outside of that window and after clicking on it any controls inside window aren't clickable anymore
    example code:
        giu.SingleWindow("The Menu", giu.Layout{
            giu.Button("People", func() {}),
        })
    
        open := true
        giu.WindowV("The Menus", &open, giu.WindowFlagsAlwaysAutoResize|giu.WindowFlagsNoMove|giu.WindowFlagsNoCollapse, 50, 50, 150, 500, giu.Layout{
            giu.Button("LOLLOLOLOLO", func() {}),
        })
    Allen Dang
    @AllenDang
    @pztrn Because the single window becomes front and the second window cannot gain focus anymore.
    @pztrn I think I should set the background color of a wnidow to be opatque to make sure people will not misunderstand it.
    Stanislav N.
    @pztrn
    AllenDang: sounds good!
    Allen Dang
    @AllenDang
    @pztrn I've created a SplitLayout widget which is useful (I think).
    matrixbot
    @matrixbot
    @pztrn:pztrn.name Hey, I hope you don't mind - I'm using matrix.org extensively ATM and bridged Gitter room there
    Allen Dang
    @AllenDang
    @matrixbot Ha. It's funny.
    matrixbot
    @matrixbot
    Stanislav N. aka pztrn Hey there, I was testing just-written-app on Windows 10 with Intel HD3000 as videocard and it turns out that on Windows this card isn't supporting OpenGL 3.3! Linux and macOS variants are fine. My question is can we lower OpenGL version requirement to 3.1 or some features requires newer ones?
    Allen Dang
    @AllenDang
    @matrixbot It could be done. I will check it later.
    @matrixbot You could take a look at RenderOpenGL3.go and test whether it could switch to 3.1 easily.
    matrixbot
    @matrixbot
    Stanislav N. aka pztrn yep, thanks, I'll check this out
    Charles Daniels
    @charlesdaniels
    is there a suggested way to call imgui widgets from GIU?
    I would like to use the ImGUI plot widget, but it looks like it isn't bound yet
    Charles Daniels
    @charlesdaniels
    well that was easier than I expected: http://cdaniels.net/~cad/shared/95eb02f6/main.go.html
    I'll try to clean this up and add a PR on GitHub. I'm pretty new to Golang and imgui, so hopefully it won't be too atrocious. I'll stick around in this channel via the Matrix bridge though...
    matrixbot
    @matrixbot
    chuck_master_grep PR submitted. I would be happy for any feedback or to make changes if needed!
    evangwt
    @evangwt
    How can I cross compile from macOS to Windows?
    I tried with GOOS=windows CGO_ENABLED=1 CC=x86_64-w64-mingw32-gcc go build .
    Undefined symbols for architecture x86_64:
      "_iggAssert", referenced from:
          _iggListClipperStep in _x030.o
          _iggListClipperBegin in _x030.o
          _iggListClipperEnd in _x030.o
          TextEditor::HandleKeyboardInputs() in _x032.o
          ImGuiIO::ImGuiIO() in _x035.o
          SetClipboardTextFn_DefaultImpl(void*, char const*) in _x035.o
          ImBezierClosestPoint(ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, ImVec2 const&, int) in _x035.o
          ...
      "_iggInputTextCallback", referenced from:
          iggInputTextCallbackWrapper(ImGuiInputTextCallbackData*) in _x036.o
         (maybe you meant: _iggInputTextCallbackDataGetSelectionStart, _iggInputTextCallbackDataGetEventFlag , _iggInputTextCallbackDataGetCursorPos , _iggInputTextCallbackDataSetSelectionStart , _iggInputTextCallbackDataSetSelectionEnd , _iggInputTextCallbackDataGetFlags , _iggInputTextCallbackDataInsertBytes , _iggInputTextCallbackDataGetBufSize , _iggInputTextCallbackDataDeleteBytes , _iggInputTextCallbackDataGetBufTextLen , _iggInputTextCallbackDataMarkBufferModified , _iggInputTextCallbackDataGetEventChar , _iggInputTextCallbackDataGetBuf , _iggInputTextCallbackDataSetCursorPos , _iggInputTextCallbackDataGetEventKey , _iggInputTextCallbackDataGetSelectionEnd , _iggInputTextCallbackDataSetEventChar , _iggInputTextCallbackDataSetBuf )
      "_iggIoGetClipboardText", referenced from:
          iggIoGetClipboardTextWrapper(void*) in _x028.o
      "_iggIoSetClipboardText", referenced from:
          iggIoSetClipboardTextWrapper(void*, char const*) in _x028.o
      "_main", referenced from:
         implicit entry/start for main executable
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    matrixbot
    @matrixbot
    chuck_master_grep That looks like its failing somewhere in imgui-go
    chuck_master_grep I would suggest trying to cross-build one of their hello world programs first
    chuck_master_grep I recognize the igg prefix as their prefix for wrapper functions
    chuck_master_grep I don't see specific instructions on https://github.com/inkyblackness/imgui-go
    matrixbot
    @matrixbot
    chuck_master_grep I tried go run on the plot example in the native Windows version of go. It fails but dosen't produce a helpful error, I just get exit status 3221225775
    matrixbot
    @matrixbot
    chuck_master_grep aha... so apparantly running in my Windows VM was causing trouble, since I guess Imgui requires OpenGL, and it dosen't like the Virtualbox "graphics card"
    chuck_master_grep alas imgui dosent have a software rendering mode
    Simo Aleksandrov
    @fr3fou
    hi
    how can i add onClick for TreeNode widgets?
    tfyl
    @tfyl

    Hi, I was just having an issue when trying to run the simple hello world application

    exit status 3221225477

    I believe this means there is a memory violation, any ideas what it could be due to

    gucio321
    @gucio321
    @tfyl did you have mingw installed?
    Kevin
    @kevinxxq
    Hi All
    Stanislav N.
    @pztrn
    Hey, I've encountered strange tabs behaviour - active state is jumping back and forth when rendering a window with them which is above another window. Anyone experience this? Ideas how to fix? I'm on latest master.
    Stanislav N.
    @pztrn
    figured it out by myself, it was because there was a window behind window with tabs in it. Probably a bug?