Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Expose wlr_edges enum from wlroots #198

Open
acrisci opened this issue Jun 11, 2018 · 1 comment
Open

Expose wlr_edges enum from wlroots #198

acrisci opened this issue Jun 11, 2018 · 1 comment

Comments

@acrisci
Copy link

acrisci commented Jun 11, 2018

This enum is for the edges of things in wlroots here.

enum wlr_edges {
	WLR_EDGE_NONE = 0,
	WLR_EDGE_TOP = 1,
	WLR_EDGE_BOTTOM = 2,
	WLR_EDGE_LEFT = 4,
	WLR_EDGE_RIGHT = 8,
};

Needed for resize operations and other things.

Do you want to expose it directly as a C enum or wrap it with bitflags?

@Timidger
Copy link
Member

Let's expose it as bitflags, since that's more ergonomic for the end user to work with. Repr(c) enums are for FFI and but are less ergonomic/rustic to work with

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants