-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79da7b2
commit b5eaefb
Showing
20 changed files
with
181 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use pixels_graphics_lib::dialogs::save_file_dialog::SaveFileDialog; | ||
use pixels_graphics_lib::prelude::FileDialogResults; | ||
use pixels_graphics_lib::ui::styles::UiStyle; | ||
|
||
// This example is used a test to make the dialogs have been correctly written | ||
|
||
fn main() { | ||
let _ = SaveFileDialog::<SR, SN>::new(None, None, 10, 10, &UiStyle::default().dialog); | ||
} | ||
|
||
#[derive(Clone, Debug, PartialEq)] | ||
enum SR {} | ||
|
||
#[derive(Clone, Debug, PartialEq)] | ||
enum SN {} | ||
|
||
impl FileDialogResults<SR> for SR { | ||
fn save_file_result(_: String) -> SR { | ||
todo!() | ||
} | ||
|
||
fn load_file_result(_: String) -> SR { | ||
todo!() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use pixels_graphics_lib::dialogs::save_file_dialog::SaveFileDialog; | ||
use pixels_graphics_lib::dialogs::FileDialogResults; | ||
use pixels_graphics_lib::ui::styles::UiStyle; | ||
|
||
// This example is used a test to make the dialogs with controllers have been correctly written | ||
|
||
fn main() { | ||
let _ = SaveFileDialog::<SR, SN>::new(None, None, 10, 10, &UiStyle::default().dialog); | ||
} | ||
|
||
#[derive(Clone, Debug, PartialEq)] | ||
enum SR {} | ||
|
||
#[derive(Clone, Debug, PartialEq)] | ||
enum SN {} | ||
|
||
impl FileDialogResults<SR> for SR { | ||
fn save_file_result(_: String) -> SR { | ||
todo!() | ||
} | ||
|
||
fn load_file_result(_: String) -> SR { | ||
todo!() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.