C# Class RPS.Constants

显示文件 Open project: marijnkampf/Random-Photo-Screensaver Class Usage Examples

Public Properties

Property Type Description
FileNodesDefinition DBTableDefinition
MetadataDefinition DBTableDefinition
SettingsDefinition DBTableDefinition

Public Methods

Method Description
FitIntoBounds ( Rectangle image, Rectangle boundingBox, bool stretchSmall, bool cover ) : Rectangle
getDataFolder ( string filename ) : string
getDesktopBounds ( ) : Rectangle
getLocalAppDataFolder ( ) : string
getNiceVersion ( ) : string
getProgramDataFolder ( ) : string
getUpdateFolder ( ) : string
ratioFitIntoBounds ( Rectangle image, Rectangle boundingBox, bool stretchSmall, bool cover ) : double
requireFile ( string path ) : bool
requireFile ( string path, bool exitOnNotFound ) : bool
selectProgramAppDataFolder ( string filename ) : string

Method Details

FitIntoBounds() public static method

public static FitIntoBounds ( Rectangle image, Rectangle boundingBox, bool stretchSmall, bool cover ) : Rectangle
image System.Drawing.Rectangle
boundingBox System.Drawing.Rectangle
stretchSmall bool
cover bool
return System.Drawing.Rectangle

getDataFolder() public static method

public static getDataFolder ( string filename ) : string
filename string
return string

getDesktopBounds() public static method

public static getDesktopBounds ( ) : Rectangle
return Rectangle

getLocalAppDataFolder() public static method

public static getLocalAppDataFolder ( ) : string
return string

getNiceVersion() public static method

public static getNiceVersion ( ) : string
return string

getProgramDataFolder() public static method

public static getProgramDataFolder ( ) : string
return string

getUpdateFolder() public static method

public static getUpdateFolder ( ) : string
return string

ratioFitIntoBounds() public static method

public static ratioFitIntoBounds ( Rectangle image, Rectangle boundingBox, bool stretchSmall, bool cover ) : double
image Rectangle
boundingBox Rectangle
stretchSmall bool
cover bool
return double

requireFile() public static method

public static requireFile ( string path ) : bool
path string
return bool

requireFile() public static method

public static requireFile ( string path, bool exitOnNotFound ) : bool
path string
exitOnNotFound bool
return bool

selectProgramAppDataFolder() public static method

public static selectProgramAppDataFolder ( string filename ) : string
filename string
return string

Property Details

FileNodesDefinition public_oe static_oe property

public static DBTableDefinition,RPS FileNodesDefinition
return DBTableDefinition

MetadataDefinition public_oe static_oe property

public static DBTableDefinition,RPS MetadataDefinition
return DBTableDefinition

SettingsDefinition public_oe static_oe property

public static DBTableDefinition SettingsDefinition
return DBTableDefinition