Skip to content

Commit

Permalink
chore: adjust function name
Browse files Browse the repository at this point in the history
  • Loading branch information
Decodetalkers committed Oct 6, 2024
1 parent 5a621d8 commit 96b22af
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion layershellev/examples/simplelayer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use layershellev::*;

fn main() {
let ev: WindowState<()> = WindowState::new("Hello")
.with_allscreen()
.with_allscreens()
.with_size((0, 400))
.with_layer(Layer::Top)
.with_margin((20, 20, 100, 20))
Expand Down
10 changes: 5 additions & 5 deletions layershellev/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
//!
//! fn main() {
//! let mut ev: WindowState<()> = WindowState::new("Hello")
//! .with_allscreen()
//! .with_allscreens()
//! .with_size((0, 400))
//! .with_layer(Layer::Top)
//! .with_margin((20, 20, 100, 20))
Expand Down Expand Up @@ -806,10 +806,10 @@ impl<T> WindowState<T> {
}
}

pub fn with_allscreen_or_xdg_output_name(self, binded_output_name: Option<String>) -> Self {
pub fn with_allscreens_or_xdg_output_name(self, binded_output_name: Option<String>) -> Self {
match binded_output_name {
Some(binded_output_name) => self.with_xdg_output_name(binded_output_name),
None => self.with_allscreen(),
None => self.with_allscreens(),
}
}
pub fn with_xdg_output_name_or_not(self, binded_output_name: Option<String>) -> Self {
Expand All @@ -819,7 +819,7 @@ impl<T> WindowState<T> {
self.with_xdg_output_name(binded_output_name)
}

pub fn with_allscreen_or_active(mut self, allscreen: bool) -> Self {
pub fn with_allscreens_or_active(mut self, allscreen: bool) -> Self {
if allscreen {
self.start_mode = StartMode::AllScreens;
} else {
Expand All @@ -828,7 +828,7 @@ impl<T> WindowState<T> {
self
}

pub fn with_allscreen(mut self) -> Self {
pub fn with_allscreens(mut self) -> Self {
self.start_mode = StartMode::AllScreens;
self
}
Expand Down
2 changes: 1 addition & 1 deletion starcolorkeyboard/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub fn get_keymap_as_file() -> (File, u32) {

fn main() {
let ev: WindowState<PangoUi> = WindowState::new("precure")
.with_allscreen()
.with_allscreens()
.with_size((0, 300))
.with_layer(Layer::Top)
.with_anchor(Anchor::Bottom | Anchor::Left | Anchor::Right)
Expand Down

0 comments on commit 96b22af

Please sign in to comment.