!SfJCDXZbMHXkPovtKL:matrix.org

Rust Embedded Graphics

61 Members
Help and chat for embedded-graphics and the wider embedded Rust graphics ecosystem | https://github.com/jamwaffles/embedded-graphics | https://crates.io/crates/embedded-graphics8 Servers

Load older messages


SenderMessageTime
5 Jul 2020
@bugadani:matrix.orgbugadaniWell, I call this close enough20:34:27
@jamwaffles:matrix.orgjamwafflesNice! Got some example code?20:40:33
@bugadani:matrix.orgbugadanihere you go: https://github.com/bugadani/embedded-layout/blob/feature/element-spacing/examples/element_spacing.rs20:41:19
@bugadani:matrix.orgbugadanithe lib needs a lot of love though, the spacing was basically implemented using shotgun surgery 😂20:42:24
@almindor:matrix.orgalmindornice! do you plan to support something like anchors?23:47:29
6 Jul 2020
@bugadani:matrix.orgbugadanidepends on what you exactly mean by anchors :) technically the current alignments seem close enough to me, but at this moment this whole thing is built with fixed size views in mind, for simplicity07:21:02
@charles:typ3.techCharles changed their profile picture.19:39:32
7 Jul 2020
@bugadani:matrix.orgbugadani jamwaffles: I've just noticed a small silly thing, that doesn't deserve opening an issue: the simulator states "Simulate a 128x64 ... display" and then the example code works with 129x129 :) 08:42:15
@jamwaffles:matrix.orgjamwafflesHah oops08:44:13
@jamwaffles:matrix.orgjamwafflesFeel free to open an issue or PR if you like. It's good to track these things08:44:39
@rowan6337:matrix.org@rowan6337:matrix.org joined the room.17:41:31
8 Jul 2020
@rowan6337:matrix.org@rowan6337:matrix.org left the room.00:32:12
11 Jul 2020
@sirhcel:matrix.orgsirhcel joined the room.22:37:49
13 Jul 2020
@bugadani:matrix.orgbugadaniah I keep hitting walls because Drawable is implemented for references of types instead of the actual types... what was the reason for this? Right now I'm working on a piece of UI that would render me an interactable menu and I'm just about to flip my table 😅16:53:05
@jamwaffles:matrix.orgjamwafflesSorry it's frustrating :( it's so the original primitive can be reused IIRC16:55:55
@jamwaffles:matrix.orgjamwafflesI think we did it incorrectly the first time16:56:01
@bugadani:matrix.orgbugadaniI don't mean like it's e-g's fault, the Rust team is slow when it comes to implementing GAT :) 16:56:36
@jamwaffles:matrix.orgjamwafflesThis PR will change how primitives and styles and references interact which might help you: https://github.com/jamwaffles/embedded-graphics/pull/38316:56:58
@jamwaffles:matrix.orgjamwaffles
In reply to @bugadani:matrix.org
I don't mean like it's e-g's fault, the Rust team is slow when it comes to implementing GAT :)
I still feel partially responsible as the library author ;)
16:59:04
@bugadani:matrix.orgbugadanihaha :) it's also my fault since there's embedded-layout for an extra layer of abstraction... I guess things will pop up with that as well as I use it for more complex stuff... right now though I blame mainly Rust for not letting me use generic associated types :)17:01:37
@jamwaffles:matrix.orgjamwaffles bugadani: Would you be able to create a self contained example I could use as a unit test for #383 that doesn't currently work in e-g? 17:02:05
@jamwaffles:matrix.orgjamwafflesNo guarantee that PR will fix it, but it's good to know what kind of patterns people are using e-g around17:03:04
@bugadani:matrix.orgbugadaniright now I don't think I can, since it's not isolated to e-g17:03:35
@bugadani:matrix.orgbugadani

the main issue is that I need something like this:

pub trait MenuItemTrait {
    type V: View where &V: Drawable;
    fn to_view(&self) -> Self::V;
}
17:04:24
@bugadani:matrix.orgbugadani *

the main issue is that I need something like this:

pub trait MenuItemTrait {
    type V: View where &V: Drawable;
    fn to_view(&self) -> Self::V;
}
17:04:29
@bugadani:matrix.orgbugadaniand this is not e-g's fault17:04:43
@bugadani:matrix.orgbugadaniwait I think I'm stupid, I can implement Drawable17:05:36
@bugadani:matrix.orgbugadanithat wasn't clear after hitting compile errors for 3 hours straight 😅17:05:59
@bugadani:matrix.orgbugadanino... no I can't :(17:21:32
15 Jul 2020
@jaxter184:matrix.orgjaxter184 joined the room.04:35:21

There are no newer messages yet.


Back to Room List