struct new in Git master
#include <Magnum/Ui/TextLayer.h>
TextLayerStyleUniform TextLayer style uniform
Instances of this class together with TextLayerCommonStyleUniform contain style properties that are used by the TextLayer shaders to draw the layer data, packed in a form that allows direct usage in uniform buffers. Total count of styles is specified with the TextLayer::
Constructors, destructors, conversion operators
- TextLayerStyleUniform(DefaultInitT = DefaultInit) explicit constexpr noexcept
- Construct with default values.
- TextLayerStyleUniform(const Color4& color) constexpr
- Constructor.
- TextLayerStyleUniform(NoInitT) explicit noexcept
- Construct without initializing the contents.
Public variables
Convenience setters
Provided to allow the use of method chaining for populating a structure in a single expression, otherwise equivalent to accessing the fields directly. Also guaranteed to provide backwards compatibility when packing of the actual fields changes.
- auto setColor(const Color4& color) -> TextLayerStyleUniform& constexpr
- Set the color field.
Function documentation
TextLayerStyleUniform& Magnum:: Ui:: TextLayerStyleUniform:: setColor(const Color4& color) constexpr
Set the color field.
Returns | Reference to self (for method chaining) |
---|