Reference for .Net version of SpaceVIL  0.3.5.8
SpaceVIL (Space of Visual Items Layout) is a cross-platform and multilingual framework for creating GUI client applications for .NET Standard, .NET Core and JVM. SpaceVIL is based on OpenGL graphic technology and GLFW. Using this framework in conjunction with .Net Core or with a JVM, you can work and create graphical client applications on Linux, Mac OS X and Windows.
SpaceVIL.Common.DefaultsService Class Reference

DefaultsService is static class providing methods to getting SpaceVIL default common values such as font, mouse cursor, icon images. More...

Static Public Member Functions

static void SetDefaultCursor (CursorImage cursor)
 Setting default cursor image the current application. More...
 
static CursorImage GetDefaultCursor ()
 Getting the current default mouse cursor image. More...
 
static ThemeStyle GetDefaultTheme ()
 Getting the default theme. More...
 
static void SetDefaultTheme (ThemeStyle theme)
 Setting the default theme for the current application. More...
 
static Style GetDefaultStyle (Type type)
 Getting the default item style from the current default theme by its type. More...
 
static Font GetDefaultFont ()
 Getting the current default font for the current application. More...
 
static Font GetDefaultFont (int size)
 Getting the current default font with the specified font size for the current application. More...
 
static Font GetDefaultFont (FontStyle style, int size)
 Getting the current default font with the specified font size and font style for the current application. More...
 
static void SetDefaultFont (Font font)
 Setting the default font for the current application. More...
 
static Bitmap GetDefaultImage (EmbeddedImage image, EmbeddedImageSize size)
 Getting the specified image by the type and size of the image, which is stored in the SpaceVIL framework. More...
 

Detailed Description

DefaultsService is static class providing methods to getting SpaceVIL default common values such as font, mouse cursor, icon images.

Member Function Documentation

◆ GetDefaultCursor()

static CursorImage SpaceVIL.Common.DefaultsService.GetDefaultCursor ( )
static

Getting the current default mouse cursor image.

Returns
The mouse cursor image as SpaceVIL.Decorations.CursorImage

◆ GetDefaultFont() [1/3]

static Font SpaceVIL.Common.DefaultsService.GetDefaultFont ( )
static

Getting the current default font for the current application.

Returns
The current default font as System.Drawing.Font

◆ GetDefaultFont() [2/3]

static Font SpaceVIL.Common.DefaultsService.GetDefaultFont ( FontStyle  style,
int  size 
)
static

Getting the current default font with the specified font size and font style for the current application.

Parameters
styleA font style as System.Drawing.FontStyle
sizeA font size as System.Int32
Returns
The current default font with changed font size and font style as System.Drawing.Font

◆ GetDefaultFont() [3/3]

static Font SpaceVIL.Common.DefaultsService.GetDefaultFont ( int  size)
static

Getting the current default font with the specified font size for the current application.

Parameters
sizeA font size as System.Int32
Returns
The current default font with changed font size as System.Drawing.Font

◆ GetDefaultImage()

static Bitmap SpaceVIL.Common.DefaultsService.GetDefaultImage ( EmbeddedImage  image,
EmbeddedImageSize  size 
)
static

Getting the specified image by the type and size of the image, which is stored in the SpaceVIL framework.

Parameters
imageAn image type as SpaceVIL.Core.EmbeddedImage

Example: SpaceVIL.Core.EmbeddedImage.Gear (to get gear icon)

Parameters
sizeAn image size as SpaceVIL.Core.EmbeddedImageSize (only 32x32 or 64x64)

Example: SpaceVIL.Core.EmbeddedImage.Size32x32 (to get an image in 32x32 pixels)

Returns
Copy of image icon as System.Drawing.Bitmap

◆ GetDefaultStyle()

static Style SpaceVIL.Common.DefaultsService.GetDefaultStyle ( Type  type)
static

Getting the default item style from the current default theme by its type.

Parameters
typeItem type as System.Type

Example: typeof(SpaceVIL.ButtonCore)

Returns
Style as SpaceVIL.Decorations.Style

◆ GetDefaultTheme()

static ThemeStyle SpaceVIL.Common.DefaultsService.GetDefaultTheme ( )
static

Getting the default theme.

Returns
The theme as SpaceVIL.Decorations.ThemeStyle

◆ SetDefaultCursor()

static void SpaceVIL.Common.DefaultsService.SetDefaultCursor ( CursorImage  cursor)
static

Setting default cursor image the current application.

Parameters
cursorThe mouse cursor image as SpaceVIL.Decorations.CursorImage

◆ SetDefaultFont()

static void SpaceVIL.Common.DefaultsService.SetDefaultFont ( Font  font)
static

Setting the default font for the current application.

Parameters
fontA font as System.Drawing.Font

◆ SetDefaultTheme()

static void SpaceVIL.Common.DefaultsService.SetDefaultTheme ( ThemeStyle  theme)
static

Setting the default theme for the current application.

Parameters
themeThe theme as SpaceVIL.Decorations.ThemeStyle

The documentation for this class was generated from the following file: