C# Класс Gtk.Tasque.Utilities

Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

ColorGetHex() публичный статический Метод

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. ///
Результат string

CreateDirectoryIfNeeded() публичный статический Метод

Create the specified path if needed The path to create if it does not exist
public static CreateDirectoryIfNeeded ( string path ) : void
path string
Результат void

EscapeForJavaScript() публичный статический Метод

public static EscapeForJavaScript ( string text ) : string
text string
Результат string

GetGravatarUri() публичный статический Метод

public static GetGravatarUri ( string gravatarID ) : string
gravatarID string
Результат string

GetIcon() публичный статический Метод

public static GetIcon ( string iconName, int size ) : Gdk.Pixbuf
iconName string
size int
Результат Gdk.Pixbuf

GetMd5Sum() публичный статический Метод

public static GetMd5Sum ( string str ) : string
str string
Результат string

GetPhotoFromUri() публичный статический Метод

public static GetPhotoFromUri ( string uri ) : Gdk.Pixbuf
uri string
Результат Gdk.Pixbuf

GetPrettyPrintDate() публичный статический Метод

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
Результат string

ParseNameValuePair() публичный статический Метод

public static ParseNameValuePair ( string pair, string &name, string &nameValue ) : bool
pair string
name string
nameValue string
Результат bool

ReplaceString() публичный статический Метод

public static ReplaceString ( string originalString, string searchString, string replaceString ) : string
originalString string
searchString string
replaceString string
Результат string

ReplaceString() публичный статический Метод

public static ReplaceString ( string originalString, string searchString, string replaceString, bool replaceAllOccurrences ) : string
originalString string
searchString string
replaceString string
replaceAllOccurrences bool
Результат string