C# Class Gtk.Tasque.Utilities

Afficher le fichier Open project: GNOME/tasque

Méthodes publiques

Méthode Description
ColorGetHex ( Gdk color ) : string

This returns the hexadecimal value of an GDK color.

CreateDirectoryIfNeeded ( string path ) : void

Create the specified path if needed The path to create if it does not exist

EscapeForJavaScript ( string text ) : string
GetGravatarUri ( string gravatarID ) : string
GetIcon ( string iconName, int size ) : Gdk.Pixbuf
GetMd5Sum ( string str ) : string
GetPhotoFromUri ( string uri ) : Gdk.Pixbuf
GetPrettyPrintDate ( System.DateTime date, bool show_time ) : string

Get a string that is more friendly/pretty for the specified date. For example, "Today, 3:00 PM", "4 days ago, 9:20 AM". The DateTime to evaluate If true, output the time along with the date

ParseNameValuePair ( string pair, string &name, string &nameValue ) : bool
ReplaceString ( string originalString, string searchString, string replaceString ) : string
ReplaceString ( string originalString, string searchString, string replaceString, bool replaceAllOccurrences ) : string

Method Details

ColorGetHex() public static méthode

This returns the hexadecimal value of an GDK color.
public static ColorGetHex ( Gdk color ) : string
color Gdk /// The color to convert to a hex string. ///
Résultat string

CreateDirectoryIfNeeded() public static méthode

Create the specified path if needed The path to create if it does not exist
public static CreateDirectoryIfNeeded ( string path ) : void
path string
Résultat void

EscapeForJavaScript() public static méthode

public static EscapeForJavaScript ( string text ) : string
text string
Résultat string

GetGravatarUri() public static méthode

public static GetGravatarUri ( string gravatarID ) : string
gravatarID string
Résultat string

GetIcon() public static méthode

public static GetIcon ( string iconName, int size ) : Gdk.Pixbuf
iconName string
size int
Résultat Gdk.Pixbuf

GetMd5Sum() public static méthode

public static GetMd5Sum ( string str ) : string
str string
Résultat string

GetPhotoFromUri() public static méthode

public static GetPhotoFromUri ( string uri ) : Gdk.Pixbuf
uri string
Résultat Gdk.Pixbuf

GetPrettyPrintDate() public static méthode

Get a string that is more friendly/pretty for the specified date. For example, "Today, 3:00 PM", "4 days ago, 9:20 AM". The DateTime to evaluate If true, output the time along with the date
public static GetPrettyPrintDate ( System.DateTime date, bool show_time ) : string
date System.DateTime
show_time bool
Résultat string

ParseNameValuePair() public static méthode

public static ParseNameValuePair ( string pair, string &name, string &nameValue ) : bool
pair string
name string
nameValue string
Résultat bool

ReplaceString() public static méthode

public static ReplaceString ( string originalString, string searchString, string replaceString ) : string
originalString string
searchString string
replaceString string
Résultat string

ReplaceString() public static méthode

public static ReplaceString ( string originalString, string searchString, string replaceString, bool replaceAllOccurrences ) : string
originalString string
searchString string
replaceString string
replaceAllOccurrences bool
Résultat string