C# Class LitDev.LDUtilities

Exibir arquivo Open project: litdev1/LitDev

Public Properties

Property Type Description
showPreview bool

Private Properties

Property Type Description
ExitButtonMode void
GWCapture void
GWPrint void
PauseUpdates void
RegexMatch Primitive
RegexReplace Primitive
ResumeUpdates void
TWCapture void
TWPrint void
TopMostGW void
TransparentGW void
UnZip Primitive
Zip Primitive
ZipList Primitive

Public Methods

Method Description
CleanTemp ( ) : Primitive

Delete all Small Basic related files from the temp folder. These are files with extensions tmp, pdb and dll. Other applications may also use these, so best to use with no other apps running.

ColourList ( ) : Primitive

Get an array of available colour names.

FixFlickr ( ) : void

Fix the Flickr object (Version 1.0).

FontList ( ) : Primitive

Get an array of available font names.

GetCultureInvariantNumber ( Primitive input ) : Primitive

Get a number expressed in the culture invariant form. A number must be culture invariant in order to be treated as a number in calculations. A current culture number is how it is input or output. For example "3.14" is culture invariant, while "3,14" is French culture.

GetCurrentCultureNumber ( Primitive input ) : Primitive

Get a number expressed in the current culture. A number must be culture invariant in order to be treated as a number in calculations. A current culture number is how it is input or output. For example "3.14" is culture invariant, while "3,14" is French culture.

GetNextMapIndex ( Primitive listName ) : Primitive

Get the next integer for object names. For example Buttons are labeled "Button1", "Button2" etc. This method returns the integer index that would be used for the next object added.

IsNumber ( Primitive input ) : Primitive

Test if the input will be treated by SmallBasic as a number. This is a culture invariant number, e.g. "3.14", but not "3,14" or "24x".

KeyDown ( Primitive key ) : Primitive

Get if a key is down. Useful for simplified keyboard game control.

Version ( ) : Primitive

Gets the current version of the extension and displays a window with this information and a changelog.

Private Methods

Method Description
ExitButtonMode ( Primitive window, Primitive mode ) : void
GWCapture ( Primitive fileName, Primitive border ) : void
GWPrint ( Primitive border ) : void
PauseUpdates ( ) : void
RegexMatch ( Primitive input, Primitive pattern, Primitive caseSensitive ) : Primitive
RegexReplace ( Primitive input, Primitive pattern, Primitive replacement, Primitive caseSensitive ) : Primitive
ResumeUpdates ( ) : void
TWCapture ( Primitive fileName, Primitive border ) : void
TWPrint ( Primitive border ) : void
TopMostGW ( Primitive top ) : void
TransparentGW ( ) : void
UnZip ( Primitive zipFile, Primitive directory ) : Primitive
Zip ( Primitive zipFile, Primitive files ) : Primitive
ZipList ( Primitive zipFile ) : Primitive

Method Details

CleanTemp() public static method

Delete all Small Basic related files from the temp folder. These are files with extensions tmp, pdb and dll. Other applications may also use these, so best to use with no other apps running.
public static CleanTemp ( ) : Primitive
return Primitive

ColourList() public static method

Get an array of available colour names.
public static ColourList ( ) : Primitive
return Primitive

FixFlickr() public static method

Fix the Flickr object (Version 1.0).
public static FixFlickr ( ) : void
return void

FontList() public static method

Get an array of available font names.
public static FontList ( ) : Primitive
return Primitive

GetCultureInvariantNumber() public static method

Get a number expressed in the culture invariant form. A number must be culture invariant in order to be treated as a number in calculations. A current culture number is how it is input or output. For example "3.14" is culture invariant, while "3,14" is French culture.
public static GetCultureInvariantNumber ( Primitive input ) : Primitive
input Primitive A number expressed in the current culture.
return Primitive

GetCurrentCultureNumber() public static method

Get a number expressed in the current culture. A number must be culture invariant in order to be treated as a number in calculations. A current culture number is how it is input or output. For example "3.14" is culture invariant, while "3,14" is French culture.
public static GetCurrentCultureNumber ( Primitive input ) : Primitive
input Primitive A culture invariant number.
return Primitive

GetNextMapIndex() public static method

Get the next integer for object names. For example Buttons are labeled "Button1", "Button2" etc. This method returns the integer index that would be used for the next object added.
public static GetNextMapIndex ( Primitive listName ) : Primitive
listName Primitive /// The map (list) type, valid listNames (Case sensitive) are: /// "Button" /// "TextBox" /// "ImageList" /// "Ellipse" /// "Image" /// "Line" /// "Rectangle" /// "Text" /// "Triangle" /// "Polygon" /// "Control" ///
return Primitive

IsNumber() public static method

Test if the input will be treated by SmallBasic as a number. This is a culture invariant number, e.g. "3.14", but not "3,14" or "24x".
public static IsNumber ( Primitive input ) : Primitive
input Primitive The input to test.
return Primitive

KeyDown() public static method

Get if a key is down. Useful for simplified keyboard game control.
public static KeyDown ( Primitive key ) : Primitive
key Primitive The key to get down state, eg "Space".
return Primitive

Version() public static method

Gets the current version of the extension and displays a window with this information and a changelog.
public static Version ( ) : Primitive
return Primitive

Property Details

showPreview public_oe static_oe property

public static bool showPreview
return bool