BsScriptGUIElementStyle.cpp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. #include "BsScriptGUIElementStyle.h"
  2. #include "BsScriptMeta.h"
  3. #include "BsMonoField.h"
  4. #include "BsMonoClass.h"
  5. #include "BsMonoManager.h"
  6. #include "BsScriptFont.h"
  7. #include "BsException.h"
  8. #include "BsGUIElementStyle.h"
  9. #include "BsScriptGUIElementStateStyle.h"
  10. #include "BsMonoUtil.h"
  11. namespace BansheeEngine
  12. {
  13. ScriptGUIElementStyle::ScriptGUIElementStyle(MonoObject* instance, const String& name)
  14. :ScriptObject(instance), mName(name), mFont(nullptr), mNormal(nullptr), mHover(nullptr),
  15. mActive(nullptr), mFocused(nullptr), mNormalOn(nullptr), mHoverOn(nullptr), mActiveOn(nullptr), mFocusedOn(nullptr)
  16. {
  17. }
  18. ScriptGUIElementStyle::ScriptGUIElementStyle(MonoObject* instance, const String& name, const GUIElementStyle& externalStyle)
  19. :ScriptObject(instance), mName(name), mElementStyle(externalStyle), mFont(nullptr), mNormal(nullptr), mHover(nullptr),
  20. mActive(nullptr), mFocused(nullptr), mNormalOn(nullptr), mHoverOn(nullptr), mActiveOn(nullptr), mFocusedOn(nullptr)
  21. {
  22. }
  23. ScriptGUIElementStyle::~ScriptGUIElementStyle()
  24. {
  25. }
  26. void ScriptGUIElementStyle::initRuntimeData()
  27. {
  28. metaData.scriptClass->addInternalCall("Internal_CreateInstance", &ScriptGUIElementStyle::internal_createInstance);
  29. metaData.scriptClass->addInternalCall("Internal_AddSubStyle", &ScriptGUIElementStyle::internal_addSubStyle);
  30. metaData.scriptClass->addInternalCall("Internal_GetFont", &ScriptGUIElementStyle::internal_GetFont);
  31. metaData.scriptClass->addInternalCall("Internal_SetFont", &ScriptGUIElementStyle::internal_SetFont);
  32. metaData.scriptClass->addInternalCall("Internal_GetFontSize", &ScriptGUIElementStyle::internal_GetFontSize);
  33. metaData.scriptClass->addInternalCall("Internal_SetFontSize", &ScriptGUIElementStyle::internal_SetFontSize);
  34. metaData.scriptClass->addInternalCall("Internal_GetTextHorzAlign", &ScriptGUIElementStyle::internal_GetTextHorzAlign);
  35. metaData.scriptClass->addInternalCall("Internal_SetTextHorzAlign", &ScriptGUIElementStyle::internal_SetTextHorzAlign);
  36. metaData.scriptClass->addInternalCall("Internal_GetTextVertAlign", &ScriptGUIElementStyle::internal_GetTextVertAlign);
  37. metaData.scriptClass->addInternalCall("Internal_SetTextVertAlign", &ScriptGUIElementStyle::internal_SetTextVertAlign);
  38. metaData.scriptClass->addInternalCall("Internal_GetImagePosition", &ScriptGUIElementStyle::internal_GetImagePosition);
  39. metaData.scriptClass->addInternalCall("Internal_SetImagePosition", &ScriptGUIElementStyle::internal_SetImagePosition);
  40. metaData.scriptClass->addInternalCall("Internal_GetWordWrap", &ScriptGUIElementStyle::internal_GetWordWrap);
  41. metaData.scriptClass->addInternalCall("Internal_SetWordWrap", &ScriptGUIElementStyle::internal_SetWordWrap);
  42. metaData.scriptClass->addInternalCall("Internal_GetNormal", &ScriptGUIElementStyle::internal_GetNormal);
  43. metaData.scriptClass->addInternalCall("Internal_SetNormal", &ScriptGUIElementStyle::internal_SetNormal);
  44. metaData.scriptClass->addInternalCall("Internal_GetHover", &ScriptGUIElementStyle::internal_GetHover);
  45. metaData.scriptClass->addInternalCall("Internal_SetHover", &ScriptGUIElementStyle::internal_SetHover);
  46. metaData.scriptClass->addInternalCall("Internal_GetActive", &ScriptGUIElementStyle::internal_GetActive);
  47. metaData.scriptClass->addInternalCall("Internal_SetActive", &ScriptGUIElementStyle::internal_SetActive);
  48. metaData.scriptClass->addInternalCall("Internal_GetFocused", &ScriptGUIElementStyle::internal_GetFocused);
  49. metaData.scriptClass->addInternalCall("Internal_SetFocused", &ScriptGUIElementStyle::internal_SetFocused);
  50. metaData.scriptClass->addInternalCall("Internal_GetNormalOn", &ScriptGUIElementStyle::internal_GetNormalOn);
  51. metaData.scriptClass->addInternalCall("Internal_SetNormalOn", &ScriptGUIElementStyle::internal_SetNormalOn);
  52. metaData.scriptClass->addInternalCall("Internal_GetHoverOn", &ScriptGUIElementStyle::internal_GetHoverOn);
  53. metaData.scriptClass->addInternalCall("Internal_SetHoverOn", &ScriptGUIElementStyle::internal_SetHoverOn);
  54. metaData.scriptClass->addInternalCall("Internal_GetActiveOn", &ScriptGUIElementStyle::internal_GetActiveOn);
  55. metaData.scriptClass->addInternalCall("Internal_SetActiveOn", &ScriptGUIElementStyle::internal_SetActiveOn);
  56. metaData.scriptClass->addInternalCall("Internal_GetFocusedOn", &ScriptGUIElementStyle::internal_GetFocusedOn);
  57. metaData.scriptClass->addInternalCall("Internal_SetFocusedOn", &ScriptGUIElementStyle::internal_SetFocusedOn);
  58. metaData.scriptClass->addInternalCall("Internal_GetBorder", &ScriptGUIElementStyle::internal_GetBorder);
  59. metaData.scriptClass->addInternalCall("Internal_SetBorder", &ScriptGUIElementStyle::internal_SetBorder);
  60. metaData.scriptClass->addInternalCall("Internal_GetMargins", &ScriptGUIElementStyle::internal_GetMargins);
  61. metaData.scriptClass->addInternalCall("Internal_SetMargins", &ScriptGUIElementStyle::internal_SetMargins);
  62. metaData.scriptClass->addInternalCall("Internal_GetContentOffset", &ScriptGUIElementStyle::internal_GetContentOffset);
  63. metaData.scriptClass->addInternalCall("Internal_SetContentOffset", &ScriptGUIElementStyle::internal_SetContentOffset);
  64. metaData.scriptClass->addInternalCall("Internal_GetWidth", &ScriptGUIElementStyle::internal_GetWidth);
  65. metaData.scriptClass->addInternalCall("Internal_SetWidth", &ScriptGUIElementStyle::internal_SetWidth);
  66. metaData.scriptClass->addInternalCall("Internal_GetHeight", &ScriptGUIElementStyle::internal_GetHeight);
  67. metaData.scriptClass->addInternalCall("Internal_SetHeight", &ScriptGUIElementStyle::internal_SetHeight);
  68. metaData.scriptClass->addInternalCall("Internal_GetMinWidth", &ScriptGUIElementStyle::internal_GetMinWidth);
  69. metaData.scriptClass->addInternalCall("Internal_SetMinWidth", &ScriptGUIElementStyle::internal_SetMinWidth);
  70. metaData.scriptClass->addInternalCall("Internal_GetMaxWidth", &ScriptGUIElementStyle::internal_GetMaxWidth);
  71. metaData.scriptClass->addInternalCall("Internal_SetMaxWidth", &ScriptGUIElementStyle::internal_SetMaxWidth);
  72. metaData.scriptClass->addInternalCall("Internal_GetMinHeight", &ScriptGUIElementStyle::internal_GetMinHeight);
  73. metaData.scriptClass->addInternalCall("Internal_SetMinHeight", &ScriptGUIElementStyle::internal_SetMinHeight);
  74. metaData.scriptClass->addInternalCall("Internal_GetMaxHeight", &ScriptGUIElementStyle::internal_GetMaxHeight);
  75. metaData.scriptClass->addInternalCall("Internal_SetMaxHeight", &ScriptGUIElementStyle::internal_SetMaxHeight);
  76. metaData.scriptClass->addInternalCall("Internal_GetFixedWidth", &ScriptGUIElementStyle::internal_GetFixedWidth);
  77. metaData.scriptClass->addInternalCall("Internal_SetFixedWidth", &ScriptGUIElementStyle::internal_SetFixedWidth);
  78. metaData.scriptClass->addInternalCall("Internal_GetFixedHeight", &ScriptGUIElementStyle::internal_GetFixedHeight);
  79. metaData.scriptClass->addInternalCall("Internal_SetFixedHeight", &ScriptGUIElementStyle::internal_SetFixedHeight);
  80. }
  81. MonoObject* ScriptGUIElementStyle::create(const String& name, const GUIElementStyle& style)
  82. {
  83. bool dummy = false;
  84. void* params[1];
  85. params[0] = &dummy;;
  86. MonoObject* instance = metaData.scriptClass->createInstance(params, true);
  87. ScriptGUIElementStyle* nativeInstance = new (bs_alloc<ScriptGUIElementStyle>()) ScriptGUIElementStyle(instance, name, style);
  88. return instance;
  89. }
  90. void ScriptGUIElementStyle::internal_createInstance(MonoObject* instance, MonoString* name)
  91. {
  92. char* nativeName = mono_string_to_utf8(name);
  93. String styleName(nativeName);
  94. free(nativeName);
  95. ScriptGUIElementStyle* nativeInstance = new (bs_alloc<ScriptGUIElementStyle>()) ScriptGUIElementStyle(instance, styleName);
  96. }
  97. void ScriptGUIElementStyle::internal_addSubStyle(ScriptGUIElementStyle* nativeInstance, MonoString* guiType, MonoString* styleName)
  98. {
  99. String guiTypeStr = MonoUtil::monoToString(guiType);
  100. String styleNameStr = MonoUtil::monoToString(styleName);
  101. nativeInstance->getInternalValue().subStyles[guiTypeStr] = styleNameStr;
  102. }
  103. void ScriptGUIElementStyle::internal_GetFont(ScriptGUIElementStyle* nativeInstance, MonoObject** value)
  104. {
  105. if (nativeInstance->mFont != nullptr)
  106. {
  107. *value = nativeInstance->mFont->getManagedInstance();
  108. return;
  109. }
  110. *value = nullptr;
  111. }
  112. void ScriptGUIElementStyle::internal_SetFont(ScriptGUIElementStyle* nativeInstance, MonoObject* value)
  113. {
  114. ScriptFont* nativeValue = ScriptFont::toNative(value);
  115. nativeInstance->mElementStyle.font = static_resource_cast<Font>(nativeValue->getNativeHandle());
  116. nativeInstance->mFont = nativeValue;
  117. }
  118. void ScriptGUIElementStyle::internal_GetFontSize(ScriptGUIElementStyle* nativeInstance, UINT32* value)
  119. {
  120. *value = nativeInstance->mElementStyle.fontSize;
  121. }
  122. void ScriptGUIElementStyle::internal_SetFontSize(ScriptGUIElementStyle* nativeInstance, UINT32 value)
  123. {
  124. nativeInstance->mElementStyle.fontSize = value;
  125. }
  126. void ScriptGUIElementStyle::internal_GetTextHorzAlign(ScriptGUIElementStyle* nativeInstance, TextHorzAlign*value)
  127. {
  128. *value = nativeInstance->mElementStyle.textHorzAlign;
  129. }
  130. void ScriptGUIElementStyle::internal_SetTextHorzAlign(ScriptGUIElementStyle* nativeInstance, TextHorzAlign value)
  131. {
  132. nativeInstance->mElementStyle.textHorzAlign = value;
  133. }
  134. void ScriptGUIElementStyle::internal_GetTextVertAlign(ScriptGUIElementStyle* nativeInstance, TextVertAlign* value)
  135. {
  136. *value = nativeInstance->mElementStyle.textVertAlign;
  137. }
  138. void ScriptGUIElementStyle::internal_SetTextVertAlign(ScriptGUIElementStyle* nativeInstance, TextVertAlign value)
  139. {
  140. nativeInstance->mElementStyle.textVertAlign = value;
  141. }
  142. void ScriptGUIElementStyle::internal_GetImagePosition(ScriptGUIElementStyle* nativeInstance, GUIImagePosition* value)
  143. {
  144. *value = nativeInstance->mElementStyle.imagePosition;
  145. }
  146. void ScriptGUIElementStyle::internal_SetImagePosition(ScriptGUIElementStyle* nativeInstance, GUIImagePosition value)
  147. {
  148. nativeInstance->mElementStyle.imagePosition = value;
  149. }
  150. void ScriptGUIElementStyle::internal_GetWordWrap(ScriptGUIElementStyle* nativeInstance, bool* value)
  151. {
  152. *value = nativeInstance->mElementStyle.wordWrap;
  153. }
  154. void ScriptGUIElementStyle::internal_SetWordWrap(ScriptGUIElementStyle* nativeInstance, bool value)
  155. {
  156. nativeInstance->mElementStyle.wordWrap = value;
  157. }
  158. void ScriptGUIElementStyle::internal_GetNormal(ScriptGUIElementStyle* nativeInstance, MonoObject** value)
  159. {
  160. if (nativeInstance->mNormal != nullptr)
  161. {
  162. *value = nativeInstance->mNormal->getManagedInstance();
  163. return;
  164. }
  165. *value = nullptr;
  166. }
  167. void ScriptGUIElementStyle::internal_SetNormal(ScriptGUIElementStyle* nativeInstance, MonoObject* value)
  168. {
  169. ScriptGUIElementStateStyle* nativeValue = ScriptGUIElementStateStyle::toNative(value);
  170. nativeInstance->mElementStyle.normal = nativeValue->getInternalValue();
  171. nativeInstance->mNormal = nativeValue;
  172. }
  173. void ScriptGUIElementStyle::internal_GetHover(ScriptGUIElementStyle* nativeInstance, MonoObject** value)
  174. {
  175. if (nativeInstance->mHover != nullptr)
  176. {
  177. *value = nativeInstance->mHover->getManagedInstance();
  178. return;
  179. }
  180. *value = nullptr;
  181. }
  182. void ScriptGUIElementStyle::internal_SetHover(ScriptGUIElementStyle* nativeInstance, MonoObject* value)
  183. {
  184. ScriptGUIElementStateStyle* nativeValue = ScriptGUIElementStateStyle::toNative(value);
  185. nativeInstance->mElementStyle.hover = nativeValue->getInternalValue();
  186. nativeInstance->mHover = nativeValue;
  187. }
  188. void ScriptGUIElementStyle::internal_GetActive(ScriptGUIElementStyle* nativeInstance, MonoObject** value)
  189. {
  190. if (nativeInstance->mActive != nullptr)
  191. {
  192. *value = nativeInstance->mActive->getManagedInstance();
  193. return;
  194. }
  195. *value = nullptr;
  196. }
  197. void ScriptGUIElementStyle::internal_SetActive(ScriptGUIElementStyle* nativeInstance, MonoObject* value)
  198. {
  199. ScriptGUIElementStateStyle* nativeValue = ScriptGUIElementStateStyle::toNative(value);
  200. nativeInstance->mElementStyle.active = nativeValue->getInternalValue();
  201. nativeInstance->mActive = nativeValue;
  202. }
  203. void ScriptGUIElementStyle::internal_GetFocused(ScriptGUIElementStyle* nativeInstance, MonoObject** value)
  204. {
  205. if (nativeInstance->mFocused != nullptr)
  206. {
  207. *value = nativeInstance->mFocused->getManagedInstance();
  208. return;
  209. }
  210. *value = nullptr;
  211. }
  212. void ScriptGUIElementStyle::internal_SetFocused(ScriptGUIElementStyle* nativeInstance, MonoObject* value)
  213. {
  214. ScriptGUIElementStateStyle* nativeValue = ScriptGUIElementStateStyle::toNative(value);
  215. nativeInstance->mElementStyle.focused = nativeValue->getInternalValue();
  216. nativeInstance->mFocused = nativeValue;
  217. }
  218. void ScriptGUIElementStyle::internal_GetNormalOn(ScriptGUIElementStyle* nativeInstance, MonoObject** value)
  219. {
  220. if (nativeInstance->mNormalOn != nullptr)
  221. {
  222. *value = nativeInstance->mNormalOn->getManagedInstance();
  223. return;
  224. }
  225. *value = nullptr;
  226. }
  227. void ScriptGUIElementStyle::internal_SetNormalOn(ScriptGUIElementStyle* nativeInstance, MonoObject* value)
  228. {
  229. ScriptGUIElementStateStyle* nativeValue = ScriptGUIElementStateStyle::toNative(value);
  230. nativeInstance->mElementStyle.normalOn = nativeValue->getInternalValue();
  231. nativeInstance->mNormalOn = nativeValue;
  232. }
  233. void ScriptGUIElementStyle::internal_GetHoverOn(ScriptGUIElementStyle* nativeInstance, MonoObject** value)
  234. {
  235. if (nativeInstance->mHoverOn != nullptr)
  236. {
  237. *value = nativeInstance->mHoverOn->getManagedInstance();
  238. return;
  239. }
  240. *value = nullptr;
  241. }
  242. void ScriptGUIElementStyle::internal_SetHoverOn(ScriptGUIElementStyle* nativeInstance, MonoObject* value)
  243. {
  244. ScriptGUIElementStateStyle* nativeValue = ScriptGUIElementStateStyle::toNative(value);
  245. nativeInstance->mElementStyle.hoverOn = nativeValue->getInternalValue();
  246. nativeInstance->mHoverOn = nativeValue;
  247. }
  248. void ScriptGUIElementStyle::internal_GetActiveOn(ScriptGUIElementStyle* nativeInstance, MonoObject** value)
  249. {
  250. if (nativeInstance->mActiveOn != nullptr)
  251. {
  252. *value = nativeInstance->mActiveOn->getManagedInstance();
  253. return;
  254. }
  255. *value = nullptr;
  256. }
  257. void ScriptGUIElementStyle::internal_SetActiveOn(ScriptGUIElementStyle* nativeInstance, MonoObject* value)
  258. {
  259. ScriptGUIElementStateStyle* nativeValue = ScriptGUIElementStateStyle::toNative(value);
  260. nativeInstance->mElementStyle.activeOn = nativeValue->getInternalValue();
  261. nativeInstance->mActiveOn = nativeValue;
  262. }
  263. void ScriptGUIElementStyle::internal_GetFocusedOn(ScriptGUIElementStyle* nativeInstance, MonoObject** value)
  264. {
  265. if (nativeInstance->mFocusedOn != nullptr)
  266. {
  267. *value = nativeInstance->mFocusedOn->getManagedInstance();
  268. return;
  269. }
  270. *value = nullptr;
  271. }
  272. void ScriptGUIElementStyle::internal_SetFocusedOn(ScriptGUIElementStyle* nativeInstance, MonoObject* value)
  273. {
  274. ScriptGUIElementStateStyle* nativeValue = ScriptGUIElementStateStyle::toNative(value);
  275. nativeInstance->mElementStyle.focusedOn = nativeValue->getInternalValue();
  276. nativeInstance->mFocusedOn = nativeValue;
  277. }
  278. void ScriptGUIElementStyle::internal_GetBorder(ScriptGUIElementStyle* nativeInstance, RectOffset* value)
  279. {
  280. *value = nativeInstance->mElementStyle.border;
  281. }
  282. void ScriptGUIElementStyle::internal_SetBorder(ScriptGUIElementStyle* nativeInstance, RectOffset* value)
  283. {
  284. nativeInstance->mElementStyle.border = *value;
  285. }
  286. void ScriptGUIElementStyle::internal_GetMargins(ScriptGUIElementStyle* nativeInstance, RectOffset* value)
  287. {
  288. *value = nativeInstance->mElementStyle.margins;
  289. }
  290. void ScriptGUIElementStyle::internal_SetMargins(ScriptGUIElementStyle* nativeInstance, RectOffset* value)
  291. {
  292. nativeInstance->mElementStyle.margins = *value;
  293. }
  294. void ScriptGUIElementStyle::internal_GetContentOffset(ScriptGUIElementStyle* nativeInstance, RectOffset* value)
  295. {
  296. *value = nativeInstance->mElementStyle.contentOffset;
  297. }
  298. void ScriptGUIElementStyle::internal_SetContentOffset(ScriptGUIElementStyle* nativeInstance, RectOffset* value)
  299. {
  300. nativeInstance->mElementStyle.contentOffset = *value;
  301. }
  302. void ScriptGUIElementStyle::internal_GetWidth(ScriptGUIElementStyle* nativeInstance, UINT32* value)
  303. {
  304. *value = nativeInstance->mElementStyle.width;
  305. }
  306. void ScriptGUIElementStyle::internal_SetWidth(ScriptGUIElementStyle* nativeInstance, UINT32 value)
  307. {
  308. nativeInstance->mElementStyle.width = value;
  309. }
  310. void ScriptGUIElementStyle::internal_GetHeight(ScriptGUIElementStyle* nativeInstance, UINT32* value)
  311. {
  312. *value = nativeInstance->mElementStyle.height;
  313. }
  314. void ScriptGUIElementStyle::internal_SetHeight(ScriptGUIElementStyle* nativeInstance, UINT32 value)
  315. {
  316. nativeInstance->mElementStyle.height = value;
  317. }
  318. void ScriptGUIElementStyle::internal_GetMinWidth(ScriptGUIElementStyle* nativeInstance, UINT32* value)
  319. {
  320. *value = nativeInstance->mElementStyle.minWidth;
  321. }
  322. void ScriptGUIElementStyle::internal_SetMinWidth(ScriptGUIElementStyle* nativeInstance, UINT32 value)
  323. {
  324. nativeInstance->mElementStyle.minWidth = value;
  325. }
  326. void ScriptGUIElementStyle::internal_GetMaxWidth(ScriptGUIElementStyle* nativeInstance, UINT32* value)
  327. {
  328. *value = nativeInstance->mElementStyle.maxWidth;
  329. }
  330. void ScriptGUIElementStyle::internal_SetMaxWidth(ScriptGUIElementStyle* nativeInstance, UINT32 value)
  331. {
  332. nativeInstance->mElementStyle.maxWidth = value;
  333. }
  334. void ScriptGUIElementStyle::internal_GetMinHeight(ScriptGUIElementStyle* nativeInstance, UINT32* value)
  335. {
  336. *value = nativeInstance->mElementStyle.minHeight;
  337. }
  338. void ScriptGUIElementStyle::internal_SetMinHeight(ScriptGUIElementStyle* nativeInstance, UINT32 value)
  339. {
  340. nativeInstance->mElementStyle.minHeight = value;
  341. }
  342. void ScriptGUIElementStyle::internal_GetMaxHeight(ScriptGUIElementStyle* nativeInstance, UINT32* value)
  343. {
  344. *value = nativeInstance->mElementStyle.maxHeight;
  345. }
  346. void ScriptGUIElementStyle::internal_SetMaxHeight(ScriptGUIElementStyle* nativeInstance, UINT32 value)
  347. {
  348. nativeInstance->mElementStyle.maxHeight = value;
  349. }
  350. void ScriptGUIElementStyle::internal_GetFixedWidth(ScriptGUIElementStyle* nativeInstance, bool* value)
  351. {
  352. *value = nativeInstance->mElementStyle.fixedWidth;
  353. }
  354. void ScriptGUIElementStyle::internal_SetFixedWidth(ScriptGUIElementStyle* nativeInstance, bool value)
  355. {
  356. nativeInstance->mElementStyle.fixedWidth = value;
  357. }
  358. void ScriptGUIElementStyle::internal_GetFixedHeight(ScriptGUIElementStyle* nativeInstance, bool* value)
  359. {
  360. *value = nativeInstance->mElementStyle.fixedHeight;
  361. }
  362. void ScriptGUIElementStyle::internal_SetFixedHeight(ScriptGUIElementStyle* nativeInstance, bool value)
  363. {
  364. nativeInstance->mElementStyle.fixedHeight = value;
  365. }
  366. }