IntPtr SceneManager_AddTextSceneNode2(IntPtr scenemanager, IntPtr font, M_STRING text, IntPtr parent, M_DIM2DF size, M_VECT3DF pos, int ID, M_SCOLOR shade_top, M_SCOLOR shade_down) { if (((IGUIFont*)font)->getType() == EGFT_BITMAP) { return GetSceneFromIntPtr(scenemanager)->addBillboardTextSceneNode((IGUIFont *)font, MU_WCHAR(text), (ISceneNode *)parent, MU_DIM2DF(size), MU_VECT3DF(pos), ID, MU_SCOLOR(shade_top), MU_SCOLOR(shade_down)); } else { return ((CGUITTFont*)font)->createBillboard(MU_WCHAR(text), MU_DIM2DF(size), (ISceneManager*)scenemanager, (ISceneNode*)parent, ID ); } }
int GUIFont_GetCharacterFromPos(IntPtr font, M_STRING text, int pixel_x) { return ((IGUIFont*)font)->getCharacterFromPos(MU_WCHAR(text), pixel_x); }
void GUIFont_Draw(IntPtr font, M_STRING text, M_RECT pos, M_SCOLOR color, bool hcenter, bool vcenter, M_RECT clip) { ((IGUIFont*)font)->draw(MU_WCHAR(text), MU_RECT(pos), MU_SCOLOR(color), hcenter, vcenter, clip ? &(MU_RECT(clip)) : 0); }
void GUIContextMenu_SetItemText(IntPtr menu, int index, M_STRING text) { ((IGUIContextMenu*)menu)->setItemText(index, MU_WCHAR(text)); }
IntPtr GuiEnv_AddWindow(IntPtr guienv, M_RECT rectangle, bool modal, M_STRING text, IntPtr parent, int id) { return GetGui(guienv)->addWindow(MU_RECT(rectangle), modal, MU_WCHAR(text), (IGUIElement*)parent, id); }
int GUIContextMenu_AddItem(IntPtr menu, M_STRING text, int commandID, bool enabled, bool hasSubMenu) { return ((IGUIContextMenu*)menu)->addItem(MU_WCHAR(text), commandID, enabled, hasSubMenu); }
IntPtr GUIToolBar_AddButton(IntPtr toolbar, int id, M_STRING text, M_STRING tooltip, IntPtr img, IntPtr pressedimg, bool isPushButton, bool useAlphaChannel) { return ((IGUIToolBar*)toolbar)->addButton(id, MU_WCHAR(text), MU_WCHAR(tooltip), (ITexture*)img, (ITexture*)pressedimg, isPushButton, useAlphaChannel); }
int GUIListBox_AddItemA(IntPtr listb, M_STRING text) { return ((IGUIListBox*)listb)->addItem(MU_WCHAR(text)); }
IntPtr GuiEnv_AddButton(IntPtr guienv, M_RECT rectangle, IntPtr parent, int id, M_STRING text) { return GetGui(guienv)->addButton(MU_RECT(rectangle), (IGUIElement*)parent, id, MU_WCHAR(text)); }
IntPtr GuiEnv_AddImageA(IntPtr guienv, IntPtr image, M_POS2DS pos, bool useAlphaChannel, IntPtr parent, int id, M_STRING text) { return GetGui(guienv)->addImage((ITexture*)image, MU_POS2DS(pos), useAlphaChannel, (IGUIElement*)parent, id, MU_WCHAR(text)); }
IntPtr GuiEnv_AddFileOpenDialog(IntPtr guienv, M_STRING title, bool model, IntPtr parent, int id) { return GetGui(guienv)->addFileOpenDialog(MU_WCHAR(title), model, (IGUIElement*)parent, id); }
IntPtr GuiEnv_AddEditBox(IntPtr guienv, M_STRING text, M_RECT rectangle, bool border, IntPtr parent, int id) { return GetGui(guienv)->addEditBox(MU_WCHAR(text), MU_RECT(rectangle), border, (IGUIElement*)parent, id); }
void GuiSkin_SetDefaultText(IntPtr gskin, EGUI_DEFAULT_TEXT which, M_STRING text) { ((IGUISkin*)gskin)->setDefaultText(which, MU_WCHAR(text)); }
IntPtr GuiEnv_AddCheckBox(IntPtr guienv, bool checked, M_RECT rectangle, IntPtr parent, int id, M_STRING text) { return GetGui(guienv)->addCheckBox(checked, MU_RECT(rectangle), (IGUIElement*)parent, id, MU_WCHAR(text)); }
void GUIFont_GetDimension(IntPtr font, M_STRING text, M_DIM2DS dim) { UM_DIM2DS(((IGUIFont*)font)->getDimension(MU_WCHAR(text)), dim); }
int GUIListBox_AddItem(IntPtr listb, M_STRING text, int icon) { return ((IGUIListBox*)listb)->addItem(MU_WCHAR(text), icon); }
IntPtr GuiEnv_AddMessageBox(IntPtr guienv, M_STRING caption, M_STRING text, bool modal, EMESSAGE_BOX_FLAG flags, IntPtr parent, int id) { return GetGui(guienv)->addMessageBox(MU_WCHAR(caption), MU_WCHAR(text), modal, flags, (IGUIElement*)parent, id); }
IntPtr GUITabControl_AddTab(IntPtr tabc, M_STRING caption, int id) { return ((IGUITabControl*)tabc)->addTab(MU_WCHAR(caption), id); }
IntPtr GuiEnv_AddStaticText(IntPtr guienv, M_STRING text, M_RECT rectangle, bool border, bool wordWrap, IntPtr parent, int id, bool fillBack) { return GetGui(guienv)->addStaticText(MU_WCHAR(text), MU_RECT(rectangle), border, wordWrap, (IGUIElement*)parent, id, fillBack); }
int GUIComboBox_AddItem(IntPtr combo, M_STRING text) { return ((IGUIComboBox*)combo)->addItem(MU_WCHAR(text)); }
IntPtr SceneManager_AddTextSceneNode(IntPtr scenemanager, IntPtr font, M_STRING text, M_SCOLOR color, IntPtr parent) { return GetSceneFromIntPtr(scenemanager)->addTextSceneNode((IGUIFont*) font, MU_WCHAR(text), MU_SCOLOR(color), (ISceneNode*) parent); }
M_STRING Event_GetLogString(IntPtr event) { return UM_STRING(MU_WCHAR(GetEventFromIntPtr(event)->LogEvent.Text)); }
void TextSceneNode_SetText(IntPtr text, M_STRING ctext) { ((ITextSceneNode*)text)->setText(MU_WCHAR(ctext)); }