[![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url] [![MIT License][license-shield]][license-url]

Display settings library

Small library to manage display settings on Windows
Report Bug ยท Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments
### Built With [![Rust][rust-lang.org]][Rust-url]

(back to top)

## Getting Started ### Installation * cargo ```sh cargo add DisplaySettings ``` * Cargo.toml ```shell DisplaySettings = "0.1.0" ```

(back to top)

## Usage ```rust use DisplaySettings; ``` ```rust use DisplaySettings::get_display_settings; fn main() { let display_settings = get_display_settings(); for setting in display_settings { println!("Width: {}, Height: {}, Refresh Rate: {}", setting.width, setting.height, setting.refresh_rate); } } ``` ```rust use DisplaySettings::{set_display_settings, DisplaySettingsType}; fn main() { let settings = DisplaySettingsType { width: 1920, height: 1080, refresh_rate: 60, }; let result = set_display_settings(settings); if result == 0 { println!("Display settings applied successfully!"); } else { println!("Failed to apply display settings. Error code: {}", result); } } ``` _For more examples, please refer to the [Documentation](https://docs.rs/crate/DisplaySettings/latest)_

(back to top)

## Contributing Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**. If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again! 1. Fork the Project 2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`) 3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`) 4. Push to the Branch (`git push origin feature/AmazingFeature`) 5. Open a Pull Request

(back to top)

## Contact Discord - \_\_blur\_\_ Project Link: [https://github.com/PearuUu/DisplaySettings](https://github.com/PearuUu/DisplaySettings)

(back to top)

[contributors-shield]: https://img.shields.io/github/contributors/PearuUu/DisplaySettings.svg?style=for-the-badge [contributors-url]: https://github.com/PearuUu/DisplaySettings/graphs/contributors [forks-shield]: https://img.shields.io/github/forks/PearuUu/DisplaySettings.svg?style=for-the-badge [forks-url]: https://github.com/PearuUu/DisplaySettings/network/members [stars-shield]: https://img.shields.io/github/stars/PearuUu/DisplaySettings.svg?style=for-the-badge [stars-url]: https://github.com/PearuUu/DisplaySettings/stargazers [issues-shield]: https://img.shields.io/github/issues/PearuUu/DisplaySettings.svg?style=for-the-badge [issues-url]: https://github.com/PearuUu/DisplaySettings/issues [license-shield]: https://img.shields.io/github/license/PearuUu/DisplaySettings.svg?style=for-the-badge [license-url]: https://github.com/PearuUu/DisplaySettings/blob/master/LICENSE [linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge&logo=linkedin&colorB=555 [linkedin-url]: https://linkedin.com/in/linkedin_username [product-screenshot]: images/screenshot.png [rust-lang.org]: https://img.shields.io/badge/rust-%23000000.svg?style=for-the-badge&logo=rust&logoColor=white [Rust-url]: https://www.rust-lang.org/ [Next.js]: https://img.shields.io/badge/next.js-000000?style=for-the-badge&logo=nextdotjs&logoColor=white [Next-url]: https://nextjs.org/ [React.js]: https://img.shields.io/badge/React-20232A?style=for-the-badge&logo=react&logoColor=61DAFB [React-url]: https://reactjs.org/ [Vue.js]: https://img.shields.io/badge/Vue.js-35495E?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D [Vue-url]: https://vuejs.org/ [Angular.io]: https://img.shields.io/badge/Angular-DD0031?style=for-the-badge&logo=angular&logoColor=white [Angular-url]: https://angular.io/ [Svelte.dev]: https://img.shields.io/badge/Svelte-4A4A55?style=for-the-badge&logo=svelte&logoColor=FF3E00 [Svelte-url]: https://svelte.dev/ [Laravel.com]: https://img.shields.io/badge/Laravel-FF2D20?style=for-the-badge&logo=laravel&logoColor=white [Laravel-url]: https://laravel.com [Bootstrap.com]: https://img.shields.io/badge/Bootstrap-563D7C?style=for-the-badge&logo=bootstrap&logoColor=white [Bootstrap-url]: https://getbootstrap.com [JQuery.com]: https://img.shields.io/badge/jQuery-0769AD?style=for-the-badge&logo=jquery&logoColor=white [JQuery-url]: https://jquery.com