Divide Framework 0.1
A free and open-source 3D Framework under heavy development
Loading...
Searching...
No Matches
Divide::EditorComponentField Struct Reference

#include <EditorComponent.h>

Public Member Functions

template<typename T >
T * getPtr () const
 
template<typename T >
get () const
 
template<typename T >
void get (T &dataOut) const
 
template<typename T >
void set (const T &dataIn)
 
const char * getDisplayName (const U8 index) const
 
bool supportsByteCount () const noexcept
 
bool isMatrix () const noexcept
 

Public Attributes

DELEGATE_STD< void, void * > _dataGetter = {}
 
DELEGATE_STD< void, const void * > _dataSetter = {}
 
DELEGATE_STD< const char *, U8_displayNameGetter = {}
 
Str< 128 > _tooltip = ""
 
void * _data = nullptr
 
vec2< F32_range = { 0.0f, 0.0f }
 Used by slider_type as a min / max range or dropdown as selected_index / count.
 
Str< 32 > _name = ""
 
F32 _step = 0.0f
 0.0f == no +- buttons
 
F32 _resetValue = 0.f
 
const char * _format = ""
 
const char *const * _labels = nullptr
 
PushConstantType _basicType = PushConstantType::COUNT
 
EditorComponentFieldType _type = EditorComponentFieldType::COUNT
 
PushConstantSize _basicTypeSize = PushConstantSize::DWORD
 
bool _readOnly = false
 
bool _serialise = true
 
bool _hexadecimal = false
 

Detailed Description

Definition at line 119 of file EditorComponent.h.

Member Function Documentation

◆ get() [1/2]

template<typename T >
T Divide::EditorComponentField::get

Definition at line 50 of file EditorComponent.inl.

◆ get() [2/2]

template<typename T >
void Divide::EditorComponentField::get ( T &  dataOut) const

Definition at line 63 of file EditorComponent.inl.

◆ getDisplayName()

const char * Divide::EditorComponentField::getDisplayName ( const U8  index) const
inline

Definition at line 97 of file EditorComponent.inl.

◆ getPtr()

template<typename T >
T * Divide::EditorComponentField::getPtr

Definition at line 38 of file EditorComponent.inl.

◆ isMatrix()

bool Divide::EditorComponentField::isMatrix ( ) const
inlinenoexcept

Definition at line 124 of file EditorComponent.inl.

◆ set()

template<typename T >
void Divide::EditorComponentField::set ( const T &  dataIn)

Definition at line 76 of file EditorComponent.inl.

◆ supportsByteCount()

bool Divide::EditorComponentField::supportsByteCount ( ) const
inlinenoexcept

Definition at line 106 of file EditorComponent.inl.

Member Data Documentation

◆ _basicType

PushConstantType Divide::EditorComponentField::_basicType = PushConstantType::COUNT

Definition at line 133 of file EditorComponent.h.

◆ _basicTypeSize

PushConstantSize Divide::EditorComponentField::_basicTypeSize = PushConstantSize::DWORD

Definition at line 140 of file EditorComponent.h.

◆ _data

void* Divide::EditorComponentField::_data = nullptr

Definition at line 126 of file EditorComponent.h.

◆ _dataGetter

DELEGATE_STD<void, void*> Divide::EditorComponentField::_dataGetter = {}

Definition at line 121 of file EditorComponent.h.

◆ _dataSetter

DELEGATE_STD<void, const void*> Divide::EditorComponentField::_dataSetter = {}

Definition at line 122 of file EditorComponent.h.

◆ _displayNameGetter

DELEGATE_STD<const char*, U8> Divide::EditorComponentField::_displayNameGetter = {}

Definition at line 123 of file EditorComponent.h.

◆ _format

const char* Divide::EditorComponentField::_format = ""

Definition at line 131 of file EditorComponent.h.

◆ _hexadecimal

bool Divide::EditorComponentField::_hexadecimal = false

Definition at line 144 of file EditorComponent.h.

◆ _labels

const char* const* Divide::EditorComponentField::_labels = nullptr

Definition at line 132 of file EditorComponent.h.

◆ _name

Str<32> Divide::EditorComponentField::_name = ""

Definition at line 128 of file EditorComponent.h.

◆ _range

vec2<F32> Divide::EditorComponentField::_range = { 0.0f, 0.0f }

Used by slider_type as a min / max range or dropdown as selected_index / count.

Definition at line 127 of file EditorComponent.h.

◆ _readOnly

bool Divide::EditorComponentField::_readOnly = false

Definition at line 142 of file EditorComponent.h.

◆ _resetValue

F32 Divide::EditorComponentField::_resetValue = 0.f

Definition at line 130 of file EditorComponent.h.

◆ _serialise

bool Divide::EditorComponentField::_serialise = true

Definition at line 143 of file EditorComponent.h.

◆ _step

F32 Divide::EditorComponentField::_step = 0.0f

0.0f == no +- buttons

Definition at line 129 of file EditorComponent.h.

◆ _tooltip

Str<128> Divide::EditorComponentField::_tooltip = ""

Definition at line 125 of file EditorComponent.h.

◆ _type

EditorComponentFieldType Divide::EditorComponentField::_type = EditorComponentFieldType::COUNT

Definition at line 134 of file EditorComponent.h.


The documentation for this struct was generated from the following files: