#include <CoreStyle.h>
|
| static SLATECORE_API TSharedRef< class ISlateStyle > | Create (const FName &InStyleSetName="CoreStyle") |
| |
| static const ISlateStyle & | Get () |
| |
| static const ISlateStyle & | GetCoreStyle () |
| |
| static SLATECORE_API TSharedRef< const FCompositeFont > | GetDefaultFont () |
| |
| static SLATECORE_API TSharedRef< const FCompositeFont > | GetIconFont () |
| |
| static SLATECORE_API FSlateFontInfo | GetDefaultFontStyle (const FName InTypefaceFontName, const float InSize, const FFontOutlineSettings &InOutlineSettings=FFontOutlineSettings()) |
| |
| static SLATECORE_API FSlateFontInfo | GetRegularIconFontStyle (const float InSize, const FFontOutlineSettings &InOutlineSettings=FFontOutlineSettings()) |
| |
| static SLATECORE_API void | ResetToDefault () |
| |
| static SLATECORE_API void | SetSelectorColor (const FLinearColor &NewColor) |
| |
| static SLATECORE_API void | SetSelectionColor (const FLinearColor &NewColor) |
| |
| static SLATECORE_API void | SetInactiveSelectionColor (const FLinearColor &NewColor) |
| |
| static SLATECORE_API void | SetPressedSelectionColor (const FLinearColor &NewColor) |
| |
| static SLATECORE_API void | SetFocusBrush (FSlateBrush *NewBrush) |
| |
| static SLATECORE_API const TSharedPtr< FSlateDynamicImageBrush > | GetDynamicImageBrush (FName BrushTemplate, FName TextureName, const ANSICHAR *Specifier=nullptr) |
| |
| static SLATECORE_API const TSharedPtr< FSlateDynamicImageBrush > | GetDynamicImageBrush (FName BrushTemplate, const ANSICHAR *Specifier, class UTexture2D *TextureResource, FName TextureName) |
| |
| static SLATECORE_API const TSharedPtr< FSlateDynamicImageBrush > | GetDynamicImageBrush (FName BrushTemplate, class UTexture2D *TextureResource, FName TextureName) |
| |
| static constexpr bool | IsStarshipStyle () |
| |
| static bool | IsInitialized () |
| |
◆ Create()
◆ Get()
- Returns
- the Application Style
NOTE: Until the Editor can be fully updated, calling FCoreStyle::Get() will return the AppStyle instead of the style definied in this class.
Using the AppStyle is preferred in most cases as it allows the style to be changed and restyled more easily.
In cases requiring explicit use of the CoreStyle where a Slate Widget should not take on the appearance of the rest of the application, use FCoreStyle::GetCoreStyle().
◆ GetCoreStyle()
- Returns
- the singleton instance of the style created in .
◆ GetDefaultFont()
Get the default font for Slate
◆ GetDefaultFontStyle()
Get a font style using the default font for Slate
◆ GetDynamicImageBrush() [1/3]
◆ GetDynamicImageBrush() [2/3]
◆ GetDynamicImageBrush() [3/3]
◆ GetIconFont()
Get the icon font for Slate (works only in Editor, otherwise the DefaultFont is returned)
◆ GetRegularIconFontStyle()
Get a font style using the icon font for Slate (always using "Regular" typeface
◆ IsInitialized()
◆ IsStarshipStyle()
◆ ResetToDefault()
| void FCoreStyle::ResetToDefault |
( |
| ) |
|
|
static |
◆ SetFocusBrush()
◆ SetInactiveSelectionColor()
◆ SetPressedSelectionColor()
◆ SetSelectionColor()
◆ SetSelectorColor()
Used to override the default selection colors
◆ RegularTextSize
| const int32 FCoreStyle::RegularTextSize = 9 |
|
static |
◆ SmallTextSize
| const int32 FCoreStyle::SmallTextSize = 8 |
|
static |
The documentation for this class was generated from the following files:
- Engine/Source/Runtime/SlateCore/Public/Styling/CoreStyle.h
- Engine/Source/Runtime/SlateCore/Private/Styling/CoreStyle.cpp