C# Class Screensavers.Screensaver

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

Private Properties

Свойство 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

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode 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 méthode

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
Résultat void

Run() public méthode

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 .
Résultat void

Screensaver() protected méthode

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

Screensaver() protected méthode

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

ShowSettingsDialog() protected méthode

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