cancandan / mhuikit Goto Github PK
View Code? Open in Web Editor NEWThis project forked from gideros-open-source-contrib/mhuikit
A UIKit example for Gideros Studio
License: Other
This project forked from gideros-open-source-contrib/mhuikit
A UIKit example for Gideros Studio
License: Other
***** UIKit for Gideros Studio **** ********************************** The original work for this was done by Michael Hartlef. For the original code and license see this thread in the Gideros Forum: http://www.giderosmobile.com/forum/discussion/578/uikit-plugin-example UIKit for Gideros Studio is a plugin for iOS that allows usage of UIView, UIButton, UITextField, UIAlertView, UIWebView, UIScrollView, UILabel, UISwitch, UISlider, UIToolbar, UIPickerView. Events are dispatched to Gideros Studio. Known issues: 1. Not all methods and properties are implemented. Gideros UIKit Plugin API To use the plugin: Copy uikit.mm to Xcode project "plugins" directory and then add to Xcode project. In lua file: require "ui" Lua API int hideStatusBar(bool show) int addToRootView(view v) int removeFromRootView(view v) NSArray luaTableToArray(table t) View : GEventDispatcherProxy new() void addView(view childView) void removeFromParent() void setPosition(int x, int y) void setSize(int width, int height) Button : View new() void setTitle(string title) void setTitleColor(float r, float g, float b) void setBGColor(float r, float g, float b) void setFont(string fontname, float s) void setImage(string imagefile) void setBGImage(string imagefile) Generated event: "onButtonClick" Label : View new() void setText(string text) void setTextColor(float r, float g, float b) void setBGColor(float r, float g, float b) void setFont(string fontname, float s) AlertView : GEventDispatcherProxy new(string title, string message, string button) void show() void addButton(string title) Generated event: "complete" Switch : View new() void setState(bool state) bool getState() Generated event: "onSwitchClick" Slider : View new(float min, float max) void setValue(float value) int getValue() void setThumbImage(string imagefile) Generated event: "onSliderChange" TextField2 : View void create(string text) void setText(string text) string getText() void setTextColor(float r, float g, float b) void setBGColor(float r, float g, float b) void showKeyboard() Generated events: "onTextFieldEdit", "onTextFieldReturn" WebView : View new(string url) void loadLocalFile(string filename) Generated events: "onWebViewNavigation" PickerView : View new(table items) virtual int getRowCount() virtual void setRow(int row) virtual int getPickedRow() virtual string getPickedItem() Generated event: "onPickerRows" Toolbar : View new() void addButton() void addTextButton(string caption) void add(view xview) //void setValue(float value) //void setThumbImage(string imagefile) Generated event: "onToolbarClick" ScrollView : View new(float x, float y, float w, float h, float cw, float ch) void add(view v) Generated event: onScrollViewClick TableView : View new() void setData(NSArray data) -- use luaTableToArray() void setCellText(string text) setPosition(x, y) setSize(width, height) Generated events: "cellForRowAtIndexPath", "didSelectRowAtIndexPath" event table includes the additional field: "Row" (event.Row)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.