tinychip/apis/libs/
sfml.rs1use crate::{
2 models::{api::Api, audio::Audio},
3 event::{
4 Input
5 },
6 properties::{
7 rectangle::Rectangle,
8 color::Color
9 }
10};
11
12pub struct SfmlApi {
13
14}
15
16impl SfmlApi {
17 pub fn new(_title: String, _w: u32, _h: u32) -> Self {
18 todo!()
19 }
20}
21
22impl Api for SfmlApi {
23 fn clear(&mut self) {
24 todo!()
25 }
26
27 fn draw_rect(&mut self, _rect: Rectangle, _color: Color) {
28 todo!()
29 }
30
31 fn is_window_open(&self) -> bool {
32 todo!()
33 }
34
35 fn display(&mut self) {
36 todo!()
37 }
38
39 fn events(&mut self) -> Vec<Input> {
40 todo!()
41 }
42
43 fn window_size(&self) -> (u32, u32) {
44 todo!()
45 }
46}
47
48impl Audio for SfmlApi {
49 fn resume_beep(&mut self) {
50 todo!()
51 }
52
53 fn pause_beep(&mut self) {
54 todo!()
55 }
56}