C# 클래스 AGS.Editor.Utilities

파일 보기 프로젝트 열기: adventuregamestudio/ags 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
SelectedReligion string

공개 메소드들

메소드 설명
AddAllMatchingFiles ( IList list, string fileMask ) : void
AddAllMatchingFiles ( IList list, string fileMask, bool fullPaths ) : void
CalculateGraphicsProportion ( Control control ) : float

Returns relation between current graphics resolution and default DpiY (96.0). Can be used when arranging controls and resizing forms.

CheckLabelWidthsOnForm ( Control parentControl ) : void
CopyFileAndSetDestinationWritable ( string sourceFileName, string destFileName ) : void

Copies the source to destination, and makes sure that the newly created destination file is not read-only.

CopyFont ( int fromSlot, int toSlot ) : void
CopyMemory ( IntPtr source, IntPtr destination, int numberOfBytes ) : void
CopyTextToClipboard ( string text ) : void
CreateCopyOfBitmapPreservingColourDepth ( Bitmap source ) : Bitmap
CreateHardLink ( string destFileName, string sourceFileName ) : bool
CreateHardLink ( string destFileName, string sourceFileName, bool overwrite ) : bool
DeleteFileIfExists ( string fileName ) : void
DoesFileNameContainOnlyValidCharacters ( string fileName ) : bool
DoesFileNeedRecompile ( string sourceFile, string destinationFile ) : bool

Returns whether the sourceFile is newer than the destinationFile or if the destinationFile doesn't exist.

EnsureStandardSubFoldersExist ( ) : void
FindExistingFont ( string fontNames ) : FontFamily

Iterates given array of font family names and return the first FontFamily object that is installed in the system. If none was found, returns generic Sans-Serif system font.

GetBitmapForSpriteResizedKeepingAspectRatio ( Sprite sprite, int width, int height, bool centreInNewCanvas, bool drawOutline, Color backgroundColour ) : Bitmap
GetControlThatHasFocus ( ) : Control
GetDirectoryFileList ( string directory, string fileMask ) : string[]

Wraps Directory.GetFiles in a handler to deal with an exception erroneously being thrown on Linux network shares if no files match.

GetDirectoryFileList ( string directory, string fileMask, SearchOption searchOption ) : string[]

Wraps Directory.GetFiles in a handler to deal with an exception erroneously being thrown on Linux network shares if no files match.

GetProcessForActiveApplication ( ) : Process
GetRelativeToProjectPath ( string absolutePath ) : string
GetSizeSpriteWillBeRenderedInGame ( int spriteSlot, int &width, int &height ) : void

Gets the size at which the sprite will be rendered in the game. This will be the sprite size, but doubled if it is a 320-res sprite in a 640-res game.

ImageToIcon ( Image image ) : Icon

Converts an image to icon. Code taken from comments section in: http://ryanfarley.com/blog/archive/2004/04/06/507.aspx

IsControlPressed ( ) : bool
IsMonoRunning ( ) : bool
IsShiftPressed ( ) : bool
IsThisApplicationCurrentlyActive ( ) : bool
IsWindowsVistaOrHigher ( ) : bool
IsWindowsXPOrHigher ( ) : bool
OpenAGSRegistryKey ( ) : RegistryKey
SetDirectoryFilesAccess ( string directory ) : void
SetDirectoryFilesAccess ( string directory, System.Security.Principal.SecurityIdentifier sid ) : void
SetDirectoryFilesAccess ( string directory, System.Security.Principal.SecurityIdentifier sid, FileSystemRights rights ) : void
SetDirectoryFilesAccess ( string directory, System.Security.Principal.SecurityIdentifier sid, FileSystemRights rights, AccessControlType type ) : void

Sets security permissions for all files in a directory.

SetFileAccess ( string fileName, System.Security.Principal.SecurityIdentifier sid, FileSystemRights rights, AccessControlType type ) : void

Sets security permissions for a specific file.

비공개 메소드들

메소드 설명
DestroyIcon ( IntPtr hIcon ) : bool
GetFocus ( ) : IntPtr
GetForegroundWindow ( ) : IntPtr
GetWindowThreadProcessId ( IntPtr hWnd, IntPtr &lpdwProcessId ) : IntPtr

메소드 상세

AddAllMatchingFiles() 공개 정적인 메소드

public static AddAllMatchingFiles ( IList list, string fileMask ) : void
list IList
fileMask string
리턴 void

AddAllMatchingFiles() 공개 정적인 메소드

public static AddAllMatchingFiles ( IList list, string fileMask, bool fullPaths ) : void
list IList
fileMask string
fullPaths bool
리턴 void

CalculateGraphicsProportion() 공개 정적인 메소드

Returns relation between current graphics resolution and default DpiY (96.0). Can be used when arranging controls and resizing forms.
public static CalculateGraphicsProportion ( Control control ) : float
control System.Windows.Forms.Control
리턴 float

CheckLabelWidthsOnForm() 공개 정적인 메소드

public static CheckLabelWidthsOnForm ( Control parentControl ) : void
parentControl System.Windows.Forms.Control
리턴 void

CopyFileAndSetDestinationWritable() 공개 정적인 메소드

Copies the source to destination, and makes sure that the newly created destination file is not read-only.
public static CopyFileAndSetDestinationWritable ( string sourceFileName, string destFileName ) : void
sourceFileName string
destFileName string
리턴 void

CopyFont() 공개 정적인 메소드

public static CopyFont ( int fromSlot, int toSlot ) : void
fromSlot int
toSlot int
리턴 void

CopyMemory() 공개 정적인 메소드

public static CopyMemory ( IntPtr source, IntPtr destination, int numberOfBytes ) : void
source System.IntPtr
destination System.IntPtr
numberOfBytes int
리턴 void

CopyTextToClipboard() 공개 정적인 메소드

public static CopyTextToClipboard ( string text ) : void
text string
리턴 void

CreateCopyOfBitmapPreservingColourDepth() 공개 정적인 메소드

public static CreateCopyOfBitmapPreservingColourDepth ( Bitmap source ) : Bitmap
source System.Drawing.Bitmap
리턴 System.Drawing.Bitmap

CreateHardLink() 공개 정적인 메소드

public static CreateHardLink ( string destFileName, string sourceFileName ) : bool
destFileName string
sourceFileName string
리턴 bool

CreateHardLink() 공개 정적인 메소드

public static CreateHardLink ( string destFileName, string sourceFileName, bool overwrite ) : bool
destFileName string
sourceFileName string
overwrite bool
리턴 bool

DeleteFileIfExists() 공개 정적인 메소드

public static DeleteFileIfExists ( string fileName ) : void
fileName string
리턴 void

DoesFileNameContainOnlyValidCharacters() 공개 정적인 메소드

public static DoesFileNameContainOnlyValidCharacters ( string fileName ) : bool
fileName string
리턴 bool

DoesFileNeedRecompile() 공개 정적인 메소드

Returns whether the sourceFile is newer than the destinationFile or if the destinationFile doesn't exist.
public static DoesFileNeedRecompile ( string sourceFile, string destinationFile ) : bool
sourceFile string
destinationFile string
리턴 bool

EnsureStandardSubFoldersExist() 공개 정적인 메소드

public static EnsureStandardSubFoldersExist ( ) : void
리턴 void

FindExistingFont() 공개 정적인 메소드

Iterates given array of font family names and return the first FontFamily object that is installed in the system. If none was found, returns generic Sans-Serif system font.
public static FindExistingFont ( string fontNames ) : FontFamily
fontNames string
리턴 System.Drawing.FontFamily

GetBitmapForSpriteResizedKeepingAspectRatio() 공개 정적인 메소드

public static GetBitmapForSpriteResizedKeepingAspectRatio ( Sprite sprite, int width, int height, bool centreInNewCanvas, bool drawOutline, Color backgroundColour ) : Bitmap
sprite Sprite
width int
height int
centreInNewCanvas bool
drawOutline bool
backgroundColour Color
리턴 System.Drawing.Bitmap

GetControlThatHasFocus() 공개 정적인 메소드

public static GetControlThatHasFocus ( ) : Control
리턴 System.Windows.Forms.Control

GetDirectoryFileList() 공개 정적인 메소드

Wraps Directory.GetFiles in a handler to deal with an exception erroneously being thrown on Linux network shares if no files match.
public static GetDirectoryFileList ( string directory, string fileMask ) : string[]
directory string
fileMask string
리턴 string[]

GetDirectoryFileList() 공개 정적인 메소드

Wraps Directory.GetFiles in a handler to deal with an exception erroneously being thrown on Linux network shares if no files match.
public static GetDirectoryFileList ( string directory, string fileMask, SearchOption searchOption ) : string[]
directory string
fileMask string
searchOption SearchOption
리턴 string[]

GetProcessForActiveApplication() 공개 정적인 메소드

public static GetProcessForActiveApplication ( ) : Process
리턴 System.Diagnostics.Process

GetRelativeToProjectPath() 공개 정적인 메소드

public static GetRelativeToProjectPath ( string absolutePath ) : string
absolutePath string
리턴 string

GetSizeSpriteWillBeRenderedInGame() 공개 정적인 메소드

Gets the size at which the sprite will be rendered in the game. This will be the sprite size, but doubled if it is a 320-res sprite in a 640-res game.
public static GetSizeSpriteWillBeRenderedInGame ( int spriteSlot, int &width, int &height ) : void
spriteSlot int
width int
height int
리턴 void

ImageToIcon() 공개 정적인 메소드

Converts an image to icon. Code taken from comments section in: http://ryanfarley.com/blog/archive/2004/04/06/507.aspx
public static ImageToIcon ( Image image ) : Icon
image Image The image
리턴 System.Drawing.Icon

IsControlPressed() 공개 정적인 메소드

public static IsControlPressed ( ) : bool
리턴 bool

IsMonoRunning() 공개 정적인 메소드

public static IsMonoRunning ( ) : bool
리턴 bool

IsShiftPressed() 공개 정적인 메소드

public static IsShiftPressed ( ) : bool
리턴 bool

IsThisApplicationCurrentlyActive() 공개 정적인 메소드

public static IsThisApplicationCurrentlyActive ( ) : bool
리턴 bool

IsWindowsVistaOrHigher() 공개 정적인 메소드

public static IsWindowsVistaOrHigher ( ) : bool
리턴 bool

IsWindowsXPOrHigher() 공개 정적인 메소드

public static IsWindowsXPOrHigher ( ) : bool
리턴 bool

OpenAGSRegistryKey() 공개 정적인 메소드

public static OpenAGSRegistryKey ( ) : RegistryKey
리턴 Microsoft.Win32.RegistryKey

SetDirectoryFilesAccess() 공개 정적인 메소드

public static SetDirectoryFilesAccess ( string directory ) : void
directory string
리턴 void

SetDirectoryFilesAccess() 공개 정적인 메소드

public static SetDirectoryFilesAccess ( string directory, System.Security.Principal.SecurityIdentifier sid ) : void
directory string
sid System.Security.Principal.SecurityIdentifier
리턴 void

SetDirectoryFilesAccess() 공개 정적인 메소드

public static SetDirectoryFilesAccess ( string directory, System.Security.Principal.SecurityIdentifier sid, FileSystemRights rights ) : void
directory string
sid System.Security.Principal.SecurityIdentifier
rights FileSystemRights
리턴 void

SetDirectoryFilesAccess() 공개 정적인 메소드

Sets security permissions for all files in a directory.
public static SetDirectoryFilesAccess ( string directory, System.Security.Principal.SecurityIdentifier sid, FileSystemRights rights, AccessControlType type ) : void
directory string
sid System.Security.Principal.SecurityIdentifier
rights FileSystemRights
type AccessControlType
리턴 void

SetFileAccess() 공개 정적인 메소드

Sets security permissions for a specific file.
public static SetFileAccess ( string fileName, System.Security.Principal.SecurityIdentifier sid, FileSystemRights rights, AccessControlType type ) : void
fileName string
sid System.Security.Principal.SecurityIdentifier
rights FileSystemRights
type AccessControlType
리턴 void

프로퍼티 상세

SelectedReligion 공개적으로 정적으로 프로퍼티

public static string SelectedReligion
리턴 string