2 #include "oxygine-include.h" 12 template<
typename value,
typename valueRef,
typename C,
void (C::*SetF)(valueRef)>
19 argT(): _init(
false) {}
21 argT& operator = (valueRef v)
35 void apply(C* c)
const 39 return (c->*SetF)(_v);
86 animFrame(
bool managed,
int col,
int row): _col(col), _row(row), _resAnim(0), _useResAnim(
true), _managed(managed) {}
102 void apply(
Sprite* s)
const 111 void apply(
Button* b)
const 113 OX_ASSERT(_useResAnim);
114 b->setResAnim(_resAnim);
119 #define arg_position args::position() 120 #define arg_pos arg_position 121 #define arg_x args::x() 122 #define arg_y args::y() 124 #define arg_anchor args::anchor() 126 #define arg_rotation args::rotation() 127 #define arg_rot arg_rotation 129 #define arg_visible args::visible() 130 #define arg_vis args::visible() 132 #define arg_width args::width() 133 #define arg_w arg_width 134 #define arg_height args::height() 135 #define arg_h arg_height 136 #define arg_size args::size() 138 #define arg_scale args::scale() 139 #define arg_scale2 args::scale2() 140 #define arg_scaleX args::scaleX() 141 #define arg_scaleY args::scaleY() 143 #define arg_name args::name() 145 #define arg_alpha args::alpha() 146 #define arg_color args::color() 147 #define arg_blend args::blend() 149 #define arg_input args::input() 150 #define arg_attachTo args::attachTo() 151 #define arg_priority args::priority() 152 #define arg_userData args::userData() 154 #define arg_extendedClickArea args::extendedClickArea() 159 #define arg_animFrame args::animFrame(false, 0, 0) 160 #define arg_resAnim args::animFrame(false, 0, 0) 161 #define arg_managedResAnim args::animFrame(true, 0, 0) 164 #define arg_style args::style() 165 #define arg_text args::text() 166 #define arg_htmlText args::htmlText() 167 #define arg_hAlign args::hAlign() 168 #define arg_vAlign args::vAlign() 169 #define arg_fontSize args::fontSize() 170 #define arg_font args::font() 171 #define arg_multiline args::multiline() 172 #define arg_tcolor args::color() 174 #define arg_onClick args::onClick() 185 template<
class T,
class A1>
186 T initActor(T actor,
const A1& arg1)
194 template<
class T,
class A1,
class A2>
195 T initActor(T actor,
const A1& arg1,
const A2& arg2)
197 initActor(actor, arg1);
202 template<
class T,
class A1,
class A2,
class A3>
203 T initActor(T actor,
const A1& arg1,
const A2& arg2,
const A3& arg3)
205 initActor(actor, arg1, arg2);
210 template<
class T,
class A1,
class A2,
class A3,
class A4>
211 T initActor(T actor,
const A1& arg1,
const A2& arg2,
const A3& arg3,
const A4& arg4)
213 initActor(actor, arg1, arg2, arg3);
218 template<
class T,
class A1,
class A2,
class A3,
class A4,
class A5>
219 T initActor(T actor,
const A1& arg1,
const A2& arg2,
const A3& arg3,
const A4& arg4,
const A5& arg5)
221 initActor(actor, arg1, arg2, arg3, arg4);
226 template<
class T,
class A1,
class A2,
class A3,
class A4,
class A5,
class A6>
227 T initActor(T actor,
const A1& arg1,
const A2& arg2,
const A3& arg3,
const A4& arg4,
const A5& arg5,
const A6& arg6)
229 initActor(actor, arg1, arg2, arg3, arg4, arg5);
234 template<
class T,
class A1,
class A2,
class A3,
class A4,
class A5,
class A6,
class A7>
235 T initActor(T actor,
const A1& arg1,
const A2& arg2,
const A3& arg3,
const A4& arg4,
const A5& arg5,
const A6& arg6,
const A7& arg7)
237 initActor(actor, arg1, arg2, arg3, arg4, arg5, arg6);
242 template<
class T,
class A1,
class A2,
class A3,
class A4,
class A5,
class A6,
class A7,
class A8>
243 T initActor(T actor,
const A1& arg1,
const A2& arg2,
const A3& arg3,
const A4& arg4,
const A5& arg5,
const A6& arg6,
const A7& arg7,
const A8& arg8)
245 initActor(actor, arg1, arg2, arg3, arg4, arg5, arg6, arg7);
250 template<
class T,
class A1,
class A2,
class A3,
class A4,
class A5,
class A6,
class A7,
class A8,
class A9>
251 T initActor(T actor,
const A1& arg1,
const A2& arg2,
const A3& arg3,
const A4& arg4,
const A5& arg5,
const A6& arg6,
const A7& arg7,
const A8& arg8,
const A9& arg9)
253 initActor(actor, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8);
Definition: initActor.h:13
Definition: intrusive_ptr.h:12
Definition: AnimationFrame.h:28
–oxgl-end–!
Definition: Actor.h:14
void setAnimFrame(const AnimationFrame &f)
Definition: initActor.h:76
void setManageResAnim(bool manage)