NAP
Public Member Functions | Public Attributes | List of all members
IMGuiServiceConfiguration Class Reference

#include <imguiservice.h>

Public Member Functions

virtual rtti::TypeInfo getServiceType () const override
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual bool init (utility::ErrorState &errorState)
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 

Public Attributes

gui::EColorScheme mColorScheme = gui::EColorScheme::Dark
 Property: 'Color Scheme' The color scheme to use (dark, light, custom etc.) More...
 
float mFontSize = 17.0f
 Property: 'Font Size' Gui font size. More...
 
float mScale = 1.0f
 Property: 'Scale' Overall gui multiplication factor. Applies to the font and all other gui elements. More...
 
std::string mFontFile = ""
 Property: 'FontFile' Path to a '.ttf' font file. If left empty the default NAP font will be used. More...
 
glm::ivec2 mFontOversampling = { 5, 3 }
 Property: 'FontSampling' Horizontal and vertical font oversampling, higher values result in sharper text in exchange for more memory. More...
 
float mFontSpacing = 0.25f
 Property: 'FontSpacing' Extra horizontal spacing (in pixels) between glyphs. More...
 
gui::ColorPalette mCustomColors
 Property: 'Colors' Color overrides if scheme is set to custom. More...
 
gui::Style mStyle
 Property: 'Style' Configurable style elements. More...
 
- Public Attributes inherited from Object
std::string mID
 Property: 'mID' unique name of the object. Used as an identifier by the system. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 

Description

GUI configuration options

Inheritance diagram for IMGuiServiceConfiguration:
[legend]
Collaboration diagram for IMGuiServiceConfiguration:
[legend]

Member Function Documentation

◆ getServiceType()

virtual rtti::TypeInfo getServiceType ( ) const
overridevirtual
Returns
The Service type associated with this configuration.

Implements ServiceConfiguration.

Member Data Documentation

◆ mColorScheme

Property: 'Color Scheme' The color scheme to use (dark, light, custom etc.)

◆ mCustomColors

gui::ColorPalette mCustomColors

Property: 'Colors' Color overrides if scheme is set to custom.

◆ mFontFile

std::string mFontFile = ""

Property: 'FontFile' Path to a '.ttf' font file. If left empty the default NAP font will be used.

◆ mFontOversampling

glm::ivec2 mFontOversampling = { 5, 3 }

Property: 'FontSampling' Horizontal and vertical font oversampling, higher values result in sharper text in exchange for more memory.

◆ mFontSize

float mFontSize = 17.0f

Property: 'Font Size' Gui font size.

◆ mFontSpacing

float mFontSpacing = 0.25f

Property: 'FontSpacing' Extra horizontal spacing (in pixels) between glyphs.

◆ mScale

float mScale = 1.0f

Property: 'Scale' Overall gui multiplication factor. Applies to the font and all other gui elements.

◆ mStyle

gui::Style mStyle

Property: 'Style' Configurable style elements.