C# Класс GnomeSubtitles.Core.Util

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

Открытые свойства

Свойство Тип Описание
SpinButtonTimeWidthChars int

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

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

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

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

public static ColumnWidth ( Gtk.Widget widget, string text ) : int
widget Gtk.Widget
text string
Результат int

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

public static CreateTreeViewColumn ( string title, int width, Gtk.CellRenderer cell, TreeCellDataFunc dataFunction ) : Gtk.TreeViewColumn
title string
width int
cell Gtk.CellRenderer
dataFunction TreeCellDataFunc
Результат Gtk.TreeViewColumn

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

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

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

public static GetSystemNewlineType ( ) : NewlineType
Результат NewlineType

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

Returns a TreePath corresponding to the specified index.
public static IntToPath ( int index ) : Gtk.TreePath
index int
Результат Gtk.TreePath

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

Returns an array of TreePath from an array of ints.
public static IntsToPaths ( int indices ) : Gtk.TreePath[]
indices int
Результат Gtk.TreePath[]

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

public static IsPathValid ( Gtk.TreePath path ) : bool
path Gtk.TreePath
Результат bool

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

public static MillisecondsToTimeText ( int milliseconds ) : string
milliseconds int
Результат string

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

public static OnTimeInput ( object o, Gtk.InputArgs args ) : void
o object
args Gtk.InputArgs
Результат void

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

public static OnTimeOutput ( object o, OutputArgs args ) : void
o object
args OutputArgs
Результат void

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

public static OpenBugReport ( ) : void
Результат void

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

public static OpenSendEmail ( string email ) : void
email string
Результат void

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

public static OpenUrl ( string url ) : void
url string
Результат void

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

Returns the path that succeeds the specified path.
public static PathNext ( Gtk.TreePath path ) : Gtk.TreePath
path Gtk.TreePath
Результат Gtk.TreePath

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

Returns the path that precedes the specified path.
public static PathPrevious ( Gtk.TreePath path ) : Gtk.TreePath
path Gtk.TreePath
Результат Gtk.TreePath

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

Returns the index of a TreePath.
public static PathToInt ( Gtk.TreePath path ) : int
path Gtk.TreePath
Результат int

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

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

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

Quotes a filename.
public static QuoteFilename ( string filename ) : string
filename string
Результат string

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

public static SecondsToTimeText ( double seconds ) : string
seconds double
Результат string

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

public static SetSpinButtonAdjustment ( Gtk.SpinButton spinButton, System.TimeSpan upperLimit, bool canNegate ) : void
spinButton Gtk.SpinButton
upperLimit System.TimeSpan
canNegate bool
Результат void

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

public static SetSpinButtonAdjustment ( Gtk.SpinButton spinButton, int upperLimit, bool canNegate ) : void
spinButton Gtk.SpinButton
upperLimit int
canNegate bool
Результат void

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

public static SetSpinButtonMaxAdjustment ( Gtk.SpinButton spinButton, TimingMode timingMode, bool toNegate ) : void
spinButton Gtk.SpinButton
timingMode TimingMode
toNegate bool
Результат void

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

public static SetSpinButtonTimingMode ( Gtk.SpinButton spinButton, TimingMode timingMode ) : void
spinButton Gtk.SpinButton
timingMode TimingMode
Результат void

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

public static TextWidth ( Gtk.Widget widget, string text, int margins ) : int
widget Gtk.Widget
text string
margins int
Результат int

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

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

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

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

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

Returns the invariant culture string of a number.
public static ToString ( float number ) : string
number float
Результат string

Описание свойств

SpinButtonTimeWidthChars публичное статическое свойство

public static int SpinButtonTimeWidthChars
Результат int