C# Class LongoMatch.Gui.Helpers.Misc

Exibir arquivo Open project: GNOME/longomatch Class Usage Examples

Public Properties

Property Type Description
lastFilename string
missingIcons System.Collections.Hashtable

Public Methods

Method Description
ByteToDouble ( byte val ) : double
DiscoverFile ( string filename, object parent ) : System.MediaFile
FillEncodingFormat ( Gtk.ComboBox encodingBox, EncodingProfile def ) : ListStore
FillImageFormat ( Gtk.ComboBox formatBox, List standards, VideoStandard def ) : ListStore
FillQuality ( Gtk.ComboBox qualityBox, EncodingQuality def ) : ListStore
GetFileFilter ( ) : Gtk.FileFilter
LoadIcon ( string name, Gtk size, IconLookupFlags flags = IconLookupFlags.ForceSvg ) : Gdk.Pixbuf

Loads the icon for a given name and size.

LoadIcon ( string name, int size, IconLookupFlags flags = IconLookupFlags.ForceSvg ) : Gdk.Pixbuf

Loads the icon for a given name and size.

LoadMissingIcon ( Gtk size ) : Gdk.Pixbuf

Loads the missing icon for a given Gtk.IconSize.

LoadMissingIcon ( int sz ) : Gdk.Pixbuf

Loads the missing icon for a given size in pixels.

LoadStockIcon ( Gtk widget, string name, Gtk size ) : Gdk.Pixbuf

Loads the stock icon for a given name and size.

OpenFile ( object parent ) : System.MediaFile
OpenImage ( Gtk.Widget widget ) : Gdk.Pixbuf
RightButtonClicked ( Gdk evnt ) : bool
Scale ( Gdk.Pixbuf pixbuf, int max_width, int max_height, bool dispose = true ) : Gdk.Pixbuf
SetFocus ( Gtk.Container w, bool canFocus ) : void
ShortToDouble ( ushort val ) : double
ToGdkColor ( Color color ) : Gdk.Color
ToLgmColor ( Gdk.Color color, ushort alpha = ushort.MaxValue ) : Color

Private Methods

Method Description
IsSkipedType ( Gtk.Widget w, Type skipTypes ) : bool

Method Details

ByteToDouble() public static method

public static ByteToDouble ( byte val ) : double
val byte
return double

DiscoverFile() public static method

public static DiscoverFile ( string filename, object parent ) : System.MediaFile
filename string
parent object
return System.MediaFile

FillEncodingFormat() public static method

public static FillEncodingFormat ( Gtk.ComboBox encodingBox, EncodingProfile def ) : ListStore
encodingBox Gtk.ComboBox
def EncodingProfile
return Gtk.ListStore

FillImageFormat() public static method

public static FillImageFormat ( Gtk.ComboBox formatBox, List standards, VideoStandard def ) : ListStore
formatBox Gtk.ComboBox
standards List
def LongoMatch.Core.Common.VideoStandard
return Gtk.ListStore

FillQuality() public static method

public static FillQuality ( Gtk.ComboBox qualityBox, EncodingQuality def ) : ListStore
qualityBox Gtk.ComboBox
def LongoMatch.Core.Common.EncodingQuality
return Gtk.ListStore

GetFileFilter() public static method

public static GetFileFilter ( ) : Gtk.FileFilter
return Gtk.FileFilter

LoadIcon() public static method

Loads the icon for a given name and size.
public static LoadIcon ( string name, Gtk size, IconLookupFlags flags = IconLookupFlags.ForceSvg ) : Gdk.Pixbuf
name string Icon Name.
size Gtk Icon Size as a Gtk.IconSize.
flags IconLookupFlags Lookup Flags like ForceSVG.
return Gdk.Pixbuf

LoadIcon() public static method

Loads the icon for a given name and size.
public static LoadIcon ( string name, int size, IconLookupFlags flags = IconLookupFlags.ForceSvg ) : Gdk.Pixbuf
name string Icon Name.
size int Icon Size in pixels.
flags IconLookupFlags Lookup Flags like ForceSVG.
return Gdk.Pixbuf

LoadMissingIcon() public static method

Loads the missing icon for a given Gtk.IconSize.
public static LoadMissingIcon ( Gtk size ) : Gdk.Pixbuf
size Gtk Size as a Gtk.IconSize.
return Gdk.Pixbuf

LoadMissingIcon() public static method

Loads the missing icon for a given size in pixels.
public static LoadMissingIcon ( int sz ) : Gdk.Pixbuf
sz int Size in pixels.
return Gdk.Pixbuf

LoadStockIcon() public static method

Loads the stock icon for a given name and size.
public static LoadStockIcon ( Gtk widget, string name, Gtk size ) : Gdk.Pixbuf
widget Gtk Widget to get the icon for. Themes can modify the stock icon for a specific widget.
name string Name.
size Gtk Size as Gtk.IconSize.
return Gdk.Pixbuf

OpenFile() public static method

public static OpenFile ( object parent ) : System.MediaFile
parent object
return System.MediaFile

OpenImage() public static method

public static OpenImage ( Gtk.Widget widget ) : Gdk.Pixbuf
widget Gtk.Widget
return Gdk.Pixbuf

RightButtonClicked() public static method

public static RightButtonClicked ( Gdk evnt ) : bool
evnt Gdk
return bool

Scale() public static method

public static Scale ( Gdk.Pixbuf pixbuf, int max_width, int max_height, bool dispose = true ) : Gdk.Pixbuf
pixbuf Gdk.Pixbuf
max_width int
max_height int
dispose bool
return Gdk.Pixbuf

SetFocus() public static method

public static SetFocus ( Gtk.Container w, bool canFocus ) : void
w Gtk.Container
canFocus bool
return void

ShortToDouble() public static method

public static ShortToDouble ( ushort val ) : double
val ushort
return double

ToGdkColor() public static method

public static ToGdkColor ( Color color ) : Gdk.Color
color LongoMatch.Core.Common.Color
return Gdk.Color

ToLgmColor() public static method

public static ToLgmColor ( Gdk.Color color, ushort alpha = ushort.MaxValue ) : Color
color Gdk.Color
alpha ushort
return LongoMatch.Core.Common.Color

Property Details

lastFilename public_oe static_oe property

public static string lastFilename
return string

missingIcons public_oe static_oe property

public static Hashtable,System.Collections missingIcons
return System.Collections.Hashtable