iv::Rectangle_LumaButton Class Reference
Simple rectangular button. More...
#include <Rectangle_LumaButton.hpp>
Public Attributes | |
ClientMarker | cm |
Public Attributes inherited from iv::LumaButton | |
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 |
Public Attributes inherited from iv::PickableSlot | |
ClientMarker | cm |
Position_InputNode | input |
Public Attributes inherited from iv::Slot | |
ClientMarker | cm |
Public Attributes inherited from iv::VectorChildrenElem< SlotChild > | |
ClientMarker | cm |
Public Attributes inherited from iv::Elem | |
ClientMarker | cm |
DirtyAttr< bool > | attr_enabled |
DirtyAttr< float4x4 > | modelTransform |
DirtyAttr< ShaderScissor > | scissor |
Public Attributes inherited from iv::InputNode | |
ClientMarker | cm |
Public Attributes inherited from iv::SlotChild | |
ClientMarker | cm |
DirtyAttr< float3 > | expectedSize |
DirtyAttr< float3 > | preferredSize |
DirtyAttr< float3 > | size |
Public Attributes inherited from iv::Pickable | |
ClientMarker | cm |
Public Attributes inherited from iv::LumaListener | |
ClientMarker | cm |
Public Attributes inherited from iv::TranslucentElem | |
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 |
Protected Member Functions inherited from iv::LumaButton | |
virtual void | first_pass_impl (ElementRenderer *) override |
void | CallColorsChanged () |
virtual void | LumaStyleChanged (LumaStyle const &) override |
Protected Member Functions inherited from iv::PickableSlot | |
virtual bool | position_test (int2 input_pos) override |
Protected Member Functions inherited from iv::Slot | |
virtual void | second_pass_impl (ElementRenderer *) override |
Protected Member Functions inherited from iv::VectorChildrenElem< SlotChild > | |
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 |
Protected Member Functions inherited from iv::InputNode | |
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 Public Attributes inherited from iv::LumaButton | |
static const constexpr int | DefaultShadowHeightPx = 2 |
Protected Attributes inherited from iv::LumaButton | |
Slot | surface_slot |
Protected Attributes inherited from iv::PickableSlot | |
Pickable * | pickable |
Protected Attributes inherited from iv::VectorChildrenElem< SlotChild > | |
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