C# Class Gtk.Tasque.Utilities

Datei anzeigen Open project: GNOME/tasque

Public Methods

Method 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 method

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. ///
return string

CreateDirectoryIfNeeded() public static method

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

EscapeForJavaScript() public static method

public static EscapeForJavaScript ( string text ) : string
text string
return string

GetGravatarUri() public static method

public static GetGravatarUri ( string gravatarID ) : string
gravatarID string
return string

GetIcon() public static method

public static GetIcon ( string iconName, int size ) : Gdk.Pixbuf
iconName string
size int
return Gdk.Pixbuf

GetMd5Sum() public static method

public static GetMd5Sum ( string str ) : string
str string
return string

GetPhotoFromUri() public static method

public static GetPhotoFromUri ( string uri ) : Gdk.Pixbuf
uri string
return Gdk.Pixbuf

GetPrettyPrintDate() public static method

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
return string

ParseNameValuePair() public static method

public static ParseNameValuePair ( string pair, string &name, string &nameValue ) : bool
pair string
name string
nameValue string
return bool

ReplaceString() public static method

public static ReplaceString ( string originalString, string searchString, string replaceString ) : string
originalString string
searchString string
replaceString string
return string

ReplaceString() public static method

public static ReplaceString ( string originalString, string searchString, string replaceString, bool replaceAllOccurrences ) : string
originalString string
searchString string
replaceString string
replaceAllOccurrences bool
return string