public WallpaperManager(WebWallpaper wallpaper) { Wallpaper = wallpaper; MouseMovementEnabled = true; MouseInteractionEnabled = false; KeyboardEnabled = false; PopupRedirect = true; HandlerEnabled = false; }
public WallpaperController(WebWallpaper wallpaper) { Wallpaper = wallpaper; Icon = new NotifyIcon(); Menu = new ControlMenu(); Shown = false; Icon.Icon = SystemIcons.Application; Menu.Hook(Icon); Icon.ContextMenu.Popup += OnMenuOpen; SetupMenu(); }
public WallpaperRenderer(WebWallpaper webWallpaper) { Initialized = false; Running = false; WebWallpaper = webWallpaper; ScreenManager = new ScreenManager(); Logger.Log("Screen Info: [size=" + ScreenManager.WallpaperSize.Width + " * " + ScreenManager.WallpaperSize.Height + ", refresh_rate=" + ScreenManager.WallpaperRefreshRate + "]"); RenderTarget = WebWallpaper.BrowserManager.RenderTarget; RenderEnabled = webWallpaper.ConfigManager.CurrentConfig.RenderEnabled; VSyncEnabled = webWallpaper.ConfigManager.CurrentConfig.VSyncMode; RenderEnabled.OnChange += OnRenderModeChange; }