mirror of
https://github.com/Bismuth-Forge/bismuth.git
synced 2024-08-14 18:40:35 +03:00
refactor: rename Driver class and interface
This commit is contained in:
parent
dd6b9d81ee
commit
2ed3cb4499
@ -7,7 +7,7 @@ import { Engine, EngineImpl } from "../engine";
|
||||
import { EngineWindow } from "../engine/window";
|
||||
import { WindowState } from "../engine/window";
|
||||
|
||||
import { DriverContext, KWinDriver } from "../driver";
|
||||
import { Driver, DriverImpl } from "../driver";
|
||||
import { DriverSurface } from "../driver/surface";
|
||||
|
||||
import Config from "../config";
|
||||
@ -148,7 +148,7 @@ export interface Controller {
|
||||
|
||||
export class ControllerImpl implements Controller {
|
||||
private engine: Engine;
|
||||
private driver: DriverContext;
|
||||
private driver: Driver;
|
||||
public constructor(
|
||||
qmlObjects: Bismuth.Qml.Main,
|
||||
kwinApi: KWin.Api,
|
||||
@ -156,7 +156,7 @@ export class ControllerImpl implements Controller {
|
||||
private log: Log
|
||||
) {
|
||||
this.engine = new EngineImpl(this, config, log);
|
||||
this.driver = new KWinDriver(qmlObjects, kwinApi, this, config, log);
|
||||
this.driver = new DriverImpl(qmlObjects, kwinApi, this, config, log);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -17,7 +17,7 @@ import { WindowState } from "../engine/window";
|
||||
import Config from "../config";
|
||||
import { Log } from "../util/log";
|
||||
|
||||
export interface DriverContext {
|
||||
export interface Driver {
|
||||
readonly screens: DriverSurface[];
|
||||
|
||||
currentSurface: DriverSurface;
|
||||
@ -37,7 +37,7 @@ export interface DriverContext {
|
||||
* signals (Qt/KDE term for binding events), and providing specific utility
|
||||
* functions.
|
||||
*/
|
||||
export class KWinDriver implements DriverContext {
|
||||
export class DriverImpl implements Driver {
|
||||
public get currentSurface(): DriverSurface {
|
||||
return new DriverSurfaceImpl(
|
||||
this.kwinApi.workspace.activeClient
|
||||
|
Loading…
Reference in New Issue
Block a user