C# Class GnomeSubtitles.Core.Util

Afficher le fichier Open project: GNOME/gnome-subtitles

Méthodes publiques

Свойство Type Description
SpinButtonTimeWidthChars int

Méthodes publiques

Méthode Description
ColumnWidth ( Gtk.Widget widget, string text ) : int
CreateTreeViewColumn ( string title, int width, Gtk.CellRenderer cell, TreeCellDataFunc dataFunction ) : Gtk.TreeViewColumn
GetFormattedText ( string text ) : string
GetSystemNewlineType ( ) : NewlineType
IntToPath ( int index ) : Gtk.TreePath

Returns a TreePath corresponding to the specified index.

IntsToPaths ( int indices ) : Gtk.TreePath[]

Returns an array of TreePath from an array of ints.

IsPathValid ( Gtk.TreePath path ) : bool
MillisecondsToTimeText ( int milliseconds ) : string
OnTimeInput ( object o, Gtk.InputArgs args ) : void
OnTimeOutput ( object o, OutputArgs args ) : void
OpenBugReport ( ) : void
OpenSendEmail ( string email ) : void
OpenUrl ( string url ) : void
PathNext ( Gtk.TreePath path ) : Gtk.TreePath

Returns the path that succeeds the specified path.

PathPrevious ( Gtk.TreePath path ) : Gtk.TreePath

Returns the path that precedes the specified path.

PathToInt ( Gtk.TreePath path ) : int

Returns the index of a TreePath.

PathsAreEqual ( Gtk.TreePath path1, Gtk.TreePath path2 ) : bool

Checks whether two path are equal. They are considered equal if they have the same indice.

QuoteFilename ( string filename ) : string

Quotes a filename.

SecondsToTimeText ( double seconds ) : string
SetSpinButtonAdjustment ( Gtk.SpinButton spinButton, System.TimeSpan upperLimit, bool canNegate ) : void
SetSpinButtonAdjustment ( Gtk.SpinButton spinButton, int upperLimit, bool canNegate ) : void
SetSpinButtonMaxAdjustment ( Gtk.SpinButton spinButton, TimingMode timingMode, bool toNegate ) : void
SetSpinButtonTimingMode ( Gtk.SpinButton spinButton, TimingMode timingMode ) : void
TextWidth ( Gtk.Widget widget, string text, int margins ) : int
TimeSpanToText ( System.TimeSpan time ) : string

Converts a timespan to a text representation.

The resulting string is in the format [-]hh:mm:ss.fff. This format is accepted by TimeSpan.Parse.

TimeTextToMilliseconds ( string text ) : int
ToString ( float number ) : string

Returns the invariant culture string of a number.

Method Details

ColumnWidth() public static méthode

public static ColumnWidth ( Gtk.Widget widget, string text ) : int
widget Gtk.Widget
text string
Résultat int

CreateTreeViewColumn() public static méthode

public static CreateTreeViewColumn ( string title, int width, Gtk.CellRenderer cell, TreeCellDataFunc dataFunction ) : Gtk.TreeViewColumn
title string
width int
cell Gtk.CellRenderer
dataFunction TreeCellDataFunc
Résultat Gtk.TreeViewColumn

GetFormattedText() public static méthode

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

GetSystemNewlineType() public static méthode

public static GetSystemNewlineType ( ) : NewlineType
Résultat NewlineType

IntToPath() public static méthode

Returns a TreePath corresponding to the specified index.
public static IntToPath ( int index ) : Gtk.TreePath
index int
Résultat Gtk.TreePath

IntsToPaths() public static méthode

Returns an array of TreePath from an array of ints.
public static IntsToPaths ( int indices ) : Gtk.TreePath[]
indices int
Résultat Gtk.TreePath[]

IsPathValid() public static méthode

public static IsPathValid ( Gtk.TreePath path ) : bool
path Gtk.TreePath
Résultat bool

MillisecondsToTimeText() public static méthode

public static MillisecondsToTimeText ( int milliseconds ) : string
milliseconds int
Résultat string

OnTimeInput() public static méthode

public static OnTimeInput ( object o, Gtk.InputArgs args ) : void
o object
args Gtk.InputArgs
Résultat void

OnTimeOutput() public static méthode

public static OnTimeOutput ( object o, OutputArgs args ) : void
o object
args OutputArgs
Résultat void

OpenBugReport() public static méthode

public static OpenBugReport ( ) : void
Résultat void

OpenSendEmail() public static méthode

public static OpenSendEmail ( string email ) : void
email string
Résultat void

OpenUrl() public static méthode

public static OpenUrl ( string url ) : void
url string
Résultat void

PathNext() public static méthode

Returns the path that succeeds the specified path.
public static PathNext ( Gtk.TreePath path ) : Gtk.TreePath
path Gtk.TreePath
Résultat Gtk.TreePath

PathPrevious() public static méthode

Returns the path that precedes the specified path.
public static PathPrevious ( Gtk.TreePath path ) : Gtk.TreePath
path Gtk.TreePath
Résultat Gtk.TreePath

PathToInt() public static méthode

Returns the index of a TreePath.
public static PathToInt ( Gtk.TreePath path ) : int
path Gtk.TreePath
Résultat int

PathsAreEqual() public static méthode

Checks whether two path are equal. They are considered equal if they have the same indice.
public static PathsAreEqual ( Gtk.TreePath path1, Gtk.TreePath path2 ) : bool
path1 Gtk.TreePath
path2 Gtk.TreePath
Résultat bool

QuoteFilename() public static méthode

Quotes a filename.
public static QuoteFilename ( string filename ) : string
filename string
Résultat string

SecondsToTimeText() public static méthode

public static SecondsToTimeText ( double seconds ) : string
seconds double
Résultat string

SetSpinButtonAdjustment() public static méthode

public static SetSpinButtonAdjustment ( Gtk.SpinButton spinButton, System.TimeSpan upperLimit, bool canNegate ) : void
spinButton Gtk.SpinButton
upperLimit System.TimeSpan
canNegate bool
Résultat void

SetSpinButtonAdjustment() public static méthode

public static SetSpinButtonAdjustment ( Gtk.SpinButton spinButton, int upperLimit, bool canNegate ) : void
spinButton Gtk.SpinButton
upperLimit int
canNegate bool
Résultat void

SetSpinButtonMaxAdjustment() public static méthode

public static SetSpinButtonMaxAdjustment ( Gtk.SpinButton spinButton, TimingMode timingMode, bool toNegate ) : void
spinButton Gtk.SpinButton
timingMode TimingMode
toNegate bool
Résultat void

SetSpinButtonTimingMode() public static méthode

public static SetSpinButtonTimingMode ( Gtk.SpinButton spinButton, TimingMode timingMode ) : void
spinButton Gtk.SpinButton
timingMode TimingMode
Résultat void

TextWidth() public static méthode

public static TextWidth ( Gtk.Widget widget, string text, int margins ) : int
widget Gtk.Widget
text string
margins int
Résultat int

TimeSpanToText() public static méthode

Converts a timespan to a text representation.
The resulting string is in the format [-]hh:mm:ss.fff. This format is accepted by TimeSpan.Parse.
public static TimeSpanToText ( System.TimeSpan time ) : string
time System.TimeSpan The time to convert to text.
Résultat string

TimeTextToMilliseconds() public static méthode

public static TimeTextToMilliseconds ( string text ) : int
text string
Résultat int

ToString() public static méthode

Returns the invariant culture string of a number.
public static ToString ( float number ) : string
number float
Résultat string

Property Details

SpinButtonTimeWidthChars public_oe static_oe property

public static int SpinButtonTimeWidthChars
Résultat int