C# 클래스 Gtk.Tasque.Utilities

파일 보기 프로젝트 열기: GNOME/tasque

공개 메소드들

메소드 설명
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