Skip to content

Conversation

AethanFoot
Copy link
Member

Tag @VuiMuich, @mautamu, @lex148, @hertg. Opening now as have some questions. I was going to organise all the getters together and setters together, etc (and maybe some refactoring to reduce code). However I think maybe splitting them into different files would make it easier to find and understand what you want easier (which is the goal of this PR, to make the xlib side easier for new users tackle), which would all be in a new directory called xwrap (where xwrap.rs is currently).

This is part of a string of documentation I hoping to tackle (anyone can help), where I am following https://doc.rust-lang.org/rust-by-example/hello/comment.html. We should also try and add as many links to relevant documentation that new users can go to to understand that thing better. E.g. I thinking of putting a link to the xlib documentation for each given function called in xwrap.

Many Thanks.

@AethanFoot AethanFoot marked this pull request as draft October 7, 2021 12:48
@AethanFoot
Copy link
Member Author

I have order the xwrap in the way Im thinking the files should be set.
With the top functions being in the mod.rs,
then Getters being in getters.rs,
then Setters being in setters.rs,
then Window being in window.rs,
then Keyboard being in keyboard.rs,
then Mouse being in mouse.rs.

I you think some functions should come under a different category let me know.

@VuiMuich
Copy link
Member

VuiMuich commented Oct 8, 2021

This some great endeavour and it looks really nice!

@AethanFoot AethanFoot mentioned this pull request Oct 8, 2021
@AethanFoot AethanFoot marked this pull request as ready for review October 8, 2021 14:52
@AethanFoot
Copy link
Member Author

I feel this is ready now, however if there are any addition/change suggestions please let me know. I would suggest some extra testing in case of regression if I made an error reducing the functions.
Thanks!

@lex148 lex148 merged commit a0bda97 into leftwm:master Oct 10, 2021
@AethanFoot AethanFoot deleted the document_xwrap branch November 25, 2021 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants