C# Class Screensavers.Screensaver

Provides initialization, timing and windowing facilities for screensavers.
Datei anzeigen Open project: wmhilton/lock-screen Class Usage Examples

Private Properties

Property Type Description
DoUpdate void
Form_FormClosing void
GetClientRect System.Drawing.Rectangle
GetClientRect bool
GetVirtualScreenRect System.Drawing.Rectangle
InitializeAndStart void
IsWindowVisible bool
LockWorkStation bool
OnKeyboardInput void
OnMouseClick void
OnMouseMove void
ProcessCommandLine ScreensaverMode
RunNormal void
RunNormalMultipleWindows void
RunNormalSingleWindow void
RunPreview void
RunWindowed void
StartUpdating void
StopUpdating void
TimerCallback void
framerateTimer_Elapsed void
timeGetTime int
timeKillEvent int
timeSetEvent int

Public Methods

Method Description
Run ( ) : void

Start the screensaver in windowed mode if the file extension is not scr, unless a mode is specified in the command line. Otherwise, if the file extension is scr, start the screensaver in config mode.

Run ( ScreensaverMode mode ) : void

Start the screensaver in the specified mode unless one is specified in the command line.

Protected Methods

Method Description
Screensaver ( ) : System

Creates a new Screensaver that runs one window per screen.

Screensaver ( FullscreenMode fullscreenMode ) : System

Creates a new Screensaver with the given fullscreen mode.

ShowSettingsDialog ( ) : void

Shows the settings dialog, or, by default, shows a message box indicating the assembly name, version and copyright information.

Private Methods

Method Description
DoUpdate ( ) : void
Form_FormClosing ( object sender, FormClosingEventArgs e ) : void
GetClientRect ( IntPtr handle ) : Rectangle
GetClientRect ( IntPtr handle, System.Windows.Forms.RECT &rect ) : bool
GetVirtualScreenRect ( ) : Rectangle
InitializeAndStart ( ) : void
IsWindowVisible ( IntPtr handle ) : bool
LockWorkStation ( ) : bool
OnKeyboardInput ( ) : void
OnMouseClick ( ) : void
OnMouseMove ( ) : void
ProcessCommandLine ( ) : ScreensaverMode
RunNormal ( ) : void
RunNormalMultipleWindows ( ) : void
RunNormalSingleWindow ( ) : void
RunPreview ( ) : void
RunWindowed ( ) : void
StartUpdating ( ) : void
StopUpdating ( ) : void
TimerCallback ( uint id, uint msg, IntPtr user, IntPtr param1, IntPtr param2 ) : void
framerateTimer_Elapsed ( object sender, System e ) : void
timeGetTime ( ) : int
timeKillEvent ( int id ) : int
timeSetEvent ( int delay, int resolution, TimeCallback callback, int user, int mode ) : int

Method Details

Run() public method

Start the screensaver in windowed mode if the file extension is not scr, unless a mode is specified in the command line. Otherwise, if the file extension is scr, start the screensaver in config mode.
public Run ( ) : void
return void

Run() public method

Start the screensaver in the specified mode unless one is specified in the command line.
public Run ( ScreensaverMode mode ) : void
mode ScreensaverMode The mode in which to run the screensaver. This value cannot be .
return void

Screensaver() protected method

Creates a new Screensaver that runs one window per screen.
protected Screensaver ( ) : System
return System

Screensaver() protected method

Creates a new Screensaver with the given fullscreen mode.
protected Screensaver ( FullscreenMode fullscreenMode ) : System
fullscreenMode FullscreenMode A value indicating the fullscreen windowing mode.
return System

ShowSettingsDialog() protected method

Shows the settings dialog, or, by default, shows a message box indicating the assembly name, version and copyright information.
protected ShowSettingsDialog ( ) : void
return void