iv::Rectangle_LumaButton Class Reference
Simple rectangular button. More...
#include <Rectangle_LumaButton.hpp>
Public Attributes | |
ClientMarker | cm |
![]() | |
ClientMarker | cm |
DirtyAttr< std::optional< float4 > > | attr_sufraceNeutralColor |
DirtyAttr< std::optional< float4 > > | attr_overlayNeutralColor |
DirtyAttr< FlatShader::ResizeStage > | attr_resizeStage |
DirtyAttr< ResourcePath > | attr_surface |
DirtyAttr< ResourcePath > | attr_overlay |
DirtyAttr< ResourcePath > | attr_hot |
![]() | |
ClientMarker | cm |
Position_InputNode | input |
![]() | |
ClientMarker | cm |
![]() | |
ClientMarker | cm |
![]() | |
ClientMarker | cm |
DirtyAttr< bool > | attr_enabled |
DirtyAttr< float4x4 > | modelTransform |
DirtyAttr< ShaderScissor > | scissor |
![]() | |
ClientMarker | cm |
![]() | |
ClientMarker | cm |
DirtyAttr< float3 > | expectedSize |
DirtyAttr< float3 > | preferredSize |
DirtyAttr< float3 > | size |
![]() | |
ClientMarker | cm |
![]() | |
ClientMarker | cm |
![]() | |
ClientMarker | cm |
DirtyAttr< float4 > | attr_preblend |
Enables blending in fragment shader - blends into a fixed color rather than into the current content of framebuffer. This allows us to emulate blending in static scenes without requiring specific draw order. More... | |
DirtyAttr< bool > | attr_translucent |
Item will be drawn as translucent - enables blending and draws after all opaque elements sorted by depth with other translucent objects. More... | |
Protected Member Functions | |
virtual void | ColorsChanged (float4 surface, float4 on_surface) override |
![]() | |
virtual void | first_pass_impl (ElementRenderer *) override |
void | CallColorsChanged () |
virtual void | LumaStyleChanged (LumaStyle const &) override |
![]() | |
virtual bool | position_test (int2 input_pos) override |
![]() | |
virtual void | second_pass_impl (ElementRenderer *) override |
![]() | |
virtual void | elem_eachChild (std::function< void(Elem *) > const &) override |
virtual void | elem_childDisconnect (Elem *) override |
virtual void | input_eachChild (std::function< void(InputNode *) > const &f) override |
virtual void | input_childDisconnect (InputNode *child) override |
![]() | |
virtual bool | input_trigger_process (InputRoot *root, Input::DeviceKey key) |
virtual void | input_process (InputRoot *root, Input::DeviceKey key, bool &press, bool &real, bool &offspace) |
Additional Inherited Members | |
![]() | |
static const constexpr int | DefaultShadowHeightPx = 2 |
![]() | |
Slot | surface_slot |
![]() | |
Pickable * | pickable |
![]() | |
std::vector< SlotChild * > | children |
bool | children_dirty |
Detailed Description
Simple rectangular button.
Input events are generated in PickableSlot::input (Rectangle_LumaButton indirectly inherits PickableSlot).
Definition at line 14 of file Rectangle_LumaButton.hpp.
Constructor & Destructor Documentation
◆ Rectangle_LumaButton()
iv::Rectangle_LumaButton::Rectangle_LumaButton | ( | iv::Instance * | inst, |
ResourcePath const & | icon, | ||
char const * | label, | ||
LumaStyleId | style_id = LumaStyleId() |
||
) |
Definition at line 7 of file Rectangle_LumaButton.cpp.
Member Function Documentation
◆ ColorsChanged()
|
overrideprotectedvirtual |
Useful when inheriting LumaButton, adding specifically animated graphics on top of it. This tells us about the color shheme currently in use by LumaButton, so that the extra graphics can sync with that.
Reimplemented from iv::LumaButton.
Definition at line 63 of file Rectangle_LumaButton.cpp.
Member Data Documentation
◆ cm
ClientMarker iv::Rectangle_LumaButton::cm |
Definition at line 17 of file Rectangle_LumaButton.hpp.
The documentation for this class was generated from the following files:
- ivorium_UI/Rectangle_LumaButton.hpp
- ivorium_UI/Rectangle_LumaButton.cpp