Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Magic User Interface
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Application theory== UI development is done at source-code level without the aid of GUI builders. In MUI application the programmer only defines logical structure of the GUI and the layout is determined at run time depending on user configuration. Unlike on other GUI toolkits developer does not determine exact coordinates for UI objects but only their relative placement to each other using object groups. In traditional [[Intuition (Amiga)|Intuition]]-based UI coding programmer had to calculate placement of gadgets relative to font and border sizes. By default all UI elements are resizable and change their size to match window size. It can also automatically switch into smaller font or hide UI elements if there is not enough space on screen to display window with full contents. This makes it very easy to build UI which adapts well to tiny and large displays as well.<ref>{{cite web|url=http://www.sasg.com/mui/concepts.html |title=MUI Concepts |website=Sasg.com |access-date=2016-07-17}}</ref><ref>{{cite web|url=http://amigaworld.net/modules/faq/index.php?cat_id=2#15 |title=The Amiga Computer Community Portal Website |website=Amigaworld.net |access-date=2016-07-17}}</ref><ref>Stuntzi, S: MUI Programmer Documentation. 1997</ref> There are over 50 built-in MUI classes today and various third-party MUI classes. ===Example=== <syntaxhighlight lang="c"> // Complete MUI application #include <libraries/mui.h> #include <proto/muimaster.h> // Sample application: ApplicationObject, SubWindow, WindowObject, WindowContents, VGroup, Child, TextObject, MUIA_Text_Contents, "Hello World!", End, End, End, End; </syntaxhighlight> This example code creates a small MUI application with the text "Hello World!" displayed on it. It is also possible to embed other [[BOOPSI]] based GUI toolkit objects inside a MUI application.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)