mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-09-17 11:37:10 +03:00
refactor: rename visible to visibleOn
This commit is contained in:
parent
cd1b5026b2
commit
033fb19570
@ -86,7 +86,7 @@ export interface DriverWindow {
|
|||||||
* Whether the window is visible on the specified surface
|
* Whether the window is visible on the specified surface
|
||||||
* @param surf the surface to check against
|
* @param surf the surface to check against
|
||||||
*/
|
*/
|
||||||
visible(surf: DriverSurface): boolean;
|
visibleOn(surf: DriverSurface): boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export class DriverWindowImpl implements DriverWindow {
|
export class DriverWindowImpl implements DriverWindow {
|
||||||
@ -294,7 +294,7 @@ export class DriverWindowImpl implements DriverWindow {
|
|||||||
})`;
|
})`;
|
||||||
}
|
}
|
||||||
|
|
||||||
public visible(surf: DriverSurface): boolean {
|
public visibleOn(surf: DriverSurface): boolean {
|
||||||
const surfImpl = surf as DriverSurfaceImpl;
|
const surfImpl = surf as DriverSurfaceImpl;
|
||||||
return (
|
return (
|
||||||
!this.client.minimized &&
|
!this.client.minimized &&
|
||||||
|
@ -143,7 +143,7 @@ export interface EngineWindow {
|
|||||||
* Whether the window is visible on concrete surface
|
* Whether the window is visible on concrete surface
|
||||||
* @param surface the surface visibility on which is checked
|
* @param surface the surface visibility on which is checked
|
||||||
*/
|
*/
|
||||||
visible(surface: DriverSurface): boolean;
|
visibleOn(surface: DriverSurface): boolean;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Force apply the geometry *immediately*.
|
* Force apply the geometry *immediately*.
|
||||||
@ -376,8 +376,8 @@ export class EngineWindowImpl implements EngineWindow {
|
|||||||
this.window.commit(geometry);
|
this.window.commit(geometry);
|
||||||
}
|
}
|
||||||
|
|
||||||
public visible(srf: DriverSurface): boolean {
|
public visibleOn(srf: DriverSurface): boolean {
|
||||||
return this.window.visible(srf);
|
return this.window.visibleOn(srf);
|
||||||
}
|
}
|
||||||
|
|
||||||
public toString(): string {
|
public toString(): string {
|
||||||
|
@ -83,12 +83,12 @@ export default class WindowStore {
|
|||||||
|
|
||||||
/** Returns all visible windows on the given surface. */
|
/** Returns all visible windows on the given surface. */
|
||||||
public getVisibleWindows(srf: DriverSurface): EngineWindow[] {
|
public getVisibleWindows(srf: DriverSurface): EngineWindow[] {
|
||||||
return this.list.filter((win) => win.visible(srf));
|
return this.list.filter((win) => win.visibleOn(srf));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Return all visible "Tile" windows on the given surface. */
|
/** Return all visible "Tile" windows on the given surface. */
|
||||||
public getVisibleTiles(srf: DriverSurface): EngineWindow[] {
|
public getVisibleTiles(srf: DriverSurface): EngineWindow[] {
|
||||||
return this.list.filter((win) => win.tiled && win.visible(srf));
|
return this.list.filter((win) => win.tiled && win.visibleOn(srf));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -96,7 +96,7 @@ export default class WindowStore {
|
|||||||
* @see Window#tileable
|
* @see Window#tileable
|
||||||
*/
|
*/
|
||||||
public getVisibleTileables(srf: DriverSurface): EngineWindow[] {
|
public getVisibleTileables(srf: DriverSurface): EngineWindow[] {
|
||||||
return this.list.filter((win) => win.tileable && win.visible(srf));
|
return this.list.filter((win) => win.tileable && win.visibleOn(srf));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user