Prefsize.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include "Elem.hpp"
4 #include "Slot.hpp"
5 #include "OneChildElem.hpp"
6 
7 namespace iv
8 {
9 
16 class Prefsize : public OneChildElem< SlotChild >, public SlotChild
17 {
18 public:
20 using Elem::instance;
21  Prefsize( Instance * );
22 
23 // initialization parameters
27 
29 
30 // utility methods
31  // Elem
32  Prefsize * enabled( bool );
33 
34  // Prefsize
36  Prefsize * prefsizeX( std::optional< float > );
37  Prefsize * prefsizeY( std::optional< float > );
38  Prefsize * prefsizeZ( std::optional< float > );
40 
41 protected:
42  // Elem
43  virtual void first_pass_impl( ElementRenderer * ) override;
44  virtual void second_pass_impl( ElementRenderer * ) override;
45 };
46 
47 }