Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 11 11:18
    13k commented #984
  • Jan 10 16:06
    chrisduerr commented #984
  • Jan 10 15:27
    13k commented #984
  • Jan 01 01:10
    michaelkirk opened #1346
  • Dec 28 2020 17:01

    murarth on master

    Fix broken link in documentatio… (compare)

  • Dec 28 2020 17:01
    murarth closed #1345
  • Dec 28 2020 04:14
    atsheehan opened #1345
  • Dec 10 2020 23:45

    kchibisov on v0.26.0

    (compare)

  • Dec 10 2020 23:44

    kchibisov on master

    Release version 0.26.0 (compare)

  • Dec 10 2020 23:44
    kchibisov closed #1344
  • Dec 10 2020 19:23
    chrisduerr review_requested #1344
  • Dec 10 2020 19:23
    chrisduerr opened #1344
  • Dec 10 2020 17:58
    chrisduerr commented #1343
  • Dec 10 2020 17:38

    kchibisov on master

    Usa stable version of rustfmt f… (compare)

  • Dec 10 2020 17:38
    kchibisov closed #1343
  • Dec 10 2020 17:37
    kchibisov commented #1343
  • Dec 10 2020 17:19
    kchibisov review_requested #1343
  • Dec 10 2020 17:18
    kchibisov synchronize #1343
  • Dec 10 2020 17:17
    kchibisov opened #1343
  • Dec 10 2020 17:04

    chrisduerr on master

    Bump winit to 0.24.0 (compare)

matrixbot
@matrixbot
UndeadLeech on Freenode If by generally you mean on all platforms, then no.
UndeadLeech on Freenode Which should be documented in winit's documentation.
Keithcat1
@Keithcat1
What happens if I try?
Keithcat1
@Keithcat1
If it's documented, it's not obvious
UndeadLeech on Freenode I don't see how it could be any more clear tbh.
Keithcat1
@Keithcat1
Oh thanks. But all that means is that I create the event loop on the main thread and then start a new thread.
matrixbot
@matrixbot
UndeadLeech on Freenode And then?
UndeadLeech on Freenode You're aware that EventLoop is !Send + !Sync, right?
Keithcat1
@Keithcat1
It seems to work if I run the event loop and send events to another thread.
matrixbot
@matrixbot
UndeadLeech on Freenode I mean you can of course move all the events without a lifetime.
UndeadLeech on Freenode But I don't see why you would ever do that.
UndeadLeech on Freenode Since that just increases latency.
matrixbot
@matrixbot

Ralith > <@freenode_fuzbuz:matrix.org> As I'm making the C FFI interface for the rendering crate, I need to either turn that raw handle into a winit Window or I need to make changes to the rendering to allow using raw handles. The former is cleaner but the latter isn't a problem.

the latter is definitely the idiomatic thing to do, fwiw; this is the problem raw-window-handle was intended to solve in the first place

matrixbot
@matrixbot
arturkovacs I'm trying to figure out how can I get my winit application to open files that the user double-clicks on macOS
arturkovacs Has anyone made a winit app that can do this?
matrixbot
@matrixbot
Ralith I don't know macos in particular, but on most platforms that works by associating your app with a file type in some platform-specific database, nothing to do with winit
matrixbot
@matrixbot
arturkovacs Yeah, not an issue, I can associate the filetype to my app but the problem relies in that macOS doesn't seem to use the program arguments to specify the file that the user selected. Instead there's an event that the application receives that tells the path to the files
matrixbot
@matrixbot
Ralith ah, interesting; might be a missing feature?
matrixbot
@matrixbot
UndeadLeech on Freenode arturkovacs: You sure it sends an event and doesn't reexecute the program?
matrixbot
@matrixbot
arturkovacs UndeadLeech: What I meant by event is that this function gets called: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428612-application?language=objc
UndeadLeech on Freenode That seems unnecessarily complicated, so that's probably how it works on macOS, yes. :)
arturkovacs Haha. As I was looking around I found other callback that can be registered for essentially the same thing from what I could tell but this was the one that worked when I tested with a minimal Objective-C test app
arturkovacs * Haha. As I was looking around I found other callbacks that can be registered for essentially the same thing from what I could tell but this was the one that worked when I tested with a minimal Objective-C test app
matrixbot
@matrixbot
arturkovacs Based on the feedback I got so far it seems to me that this is a missing feature so I opened: rust-windowing/winit#1751
Chehui Chou
@deadshot465_gitlab
Will set_inner_size emit WindowEvent::Resized?
matrixbot
@matrixbot
UndeadLeech on Freenode IIRC "on some systems". I don't remember if it does it everywhere.
UndeadLeech on Freenode It certainly can emit it.
matrixbot
@matrixbot
ildar francesca, thank you for inviting me here
ildar Anyone using or aware of https://github.com/rust-windowing/android-ndk-rs/ ?
kchibisov on Freenode Is Francesca here though?
ildar Is it worth asking here about it?
kchibisov on Freenode I think, I'm not aware of any other channel to talk about winit/glutin.
kchibisov on Freenode ildar: if anything, I'd suggest to ask Android maintainers https://github.com/rust-windowing/winit/wiki/Testers-and-Contributors

ildar > <@freenode_kchibisov:matrix.org> Is Francesca here though?

Dunno

kchibisov on Freenode Since I'm not sure if they are here.
ildar Ahh! Ok, thanks
matrixbot
@matrixbot
ildar Then one general question: if i want to write an app without UI, then i should use https://github.com/rust-windowing/android-ndk-rs/, right?
ildar And ui app would require Winit?
ildar Demo apk available?
matrixbot
@matrixbot
kchibisov on Freenode I'm not sure, I have no clue how android is supported in winit.
kchibisov on Freenode I can only speak for Linux backends.
kchibisov on Freenode But since it exists and I saw webgpu things working with it, I think it should work...
maroider[m] on Freenode The information you need to get an APK ought to be written down somewhere in that repo
maroider[m] on Freenode I recall messing around with it at some point, but the details are lost to me now
matrixbot
@matrixbot
msiglreith There is a small entry in the winit readme: https://github.com/rust-windowing/winit#android
The ndk examples show some basic applications (https://github.com/rust-windowing/android-ndk-rs/tree/master/ndk-examples) but once you show something on the screen combining it with winit is a good start.
wgpu example with android-ndk and winit: https://github.com/msiglreith/wgpu-rs/blob/android/examples/hello-triangle/main.rs
matrixbot
@matrixbot
@joe:feneas.org was kicked by @appservice-irc:matrix.org ("Idle for 30+ days").
matrixbot
@matrixbot
@annette:nitro.chat was kicked by @appservice-irc:matrix.org ("Idle for 30+ days").
matrixbot
@matrixbot
@karl:matrix.kiwifarms.net was kicked by @appservice-irc:matrix.org ("Idle for 30+ days").
@shiri:poddery.com was kicked by @appservice-irc:matrix.org ("Idle for 30+ days").