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
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!
{{Short description|Widget toolkit for AmigaOS}} {{Infobox Software | name = Magic User Interface | logo = Magic-user-interface-logo.png | screenshot = AmbientDesktop.png | caption = A screenshot of the MUI-based [[Ambient (desktop environment)|Ambient]] desktop. | developer = Stefan Stuntz | released = {{Start date and age|1993}} | latest_release_version = 5.0 | latest_release_date = {{Start date and age|2015|6|19}} | operating_system = [[AmigaOS]], [[MorphOS]] | platform = [[Amiga]] | genre = [[Widget toolkit]] | licence = [[Proprietary software|Proprietary]]/[[Shareware]] | website = {{URL|www.sasg.com/mui/}} }} The '''Magic User Interface''' ('''MUI''' in short) is an [[Object-oriented programming|object-oriented]] system by Stefan Stuntz to generate and maintain [[graphical user interface]]s. With the aid of a preferences program, the user of an application has the ability to customize the system according to personal taste. The Magic User Interface was written for [[AmigaOS]] and gained popularity amongst both programmers and users. It has been ported to [[PowerPC]] processors and adopted as the default GUI toolkit of the [[MorphOS]] operating system. The MUI application programmer interface has been cloned by the [[Zune (GUI toolkit)|Zune]] toolkit used in the [[AROS|AROS Research Operating System]].<ref>{{cite web |url=http://aros.sourceforge.net/documentation/developers/zune-application-development.php |title=AROS Research Operating System |website=Aros.sourceforge.net |access-date=2016-07-17 |url-status=dead |archive-url=https://web.archive.org/web/20160325022444/http://aros.sourceforge.net/documentation/developers/zune-application-development.php |archive-date=2016-03-25 }}</ref> ==History== Creating GUI applications on Amiga was difficult for a very long time, mainly because the programmer got only a minuscule amount of support from the operating system. Beginning with Kickstart 2.0, the gadtools.library was a step in the right direction, however, even using this library to generate complex and flexible interfaces remained difficult and still required a great deal of patience. The largest problem in existing tools for the creation of user interfaces was the inflexible output. Most of the programs were still using built-in fonts and window sizes, thus making the use of new high resolution graphics hardware adapters nearly unbearable. Even the preference programs on the Workbench were still only using the default fixed-width font. In 1992 Stefan Stuntz started developing a new object-oriented GUI toolkit for Amiga. Main goals for new GUI toolkit were: * ''Font sensitivity:'' Possible for the font to be set in every application. * ''Changeable window sizes:'' Windows have a sizing gadget which allows users to change the window size until it suits their needs * ''Flexibility:'' Elements can be changed by the user regarding their own personal tastes. * ''Controlling by keyboard:'' Widgets can be controlled by the keyboard as well as by the mouse. * ''System integration:'' Every program has an [[ARexx]] port and can be iconified or uniconified by pushing a gadget or by using the Commodities exchange program. * ''Adjusting to its environment:'' Every application can be made to open on any screen and adapts itself to its environment.<ref>Stuntzi, S: MUI User Documentation. 1997</ref> MUI was released as [[shareware]]. Starting from MUI 3.9 an unrestricted version is integrated with MorphOS, but a shareware key is still required to activate all user configuration options in AmigaOS. ==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. ==Applications== Some notable applications that use MUI as a widget toolkit include: * [[Aladdin4D]] - 3D rendering/animation application * [[Ambient (desktop environment)|Ambient]] - desktop environment * [[AmIRC]] - IRC client * [[Digital Universe]] - desktop planetarium * [[IBrowse]] - web browser * [[Origyn Web Browser]] - web browser * [[PageStream]] - desktop publishing * SimpleMail - email client * [[Voyager_(web_browser)|Voyager]] - web browser * [[YAM (Yet Another Mailer)|YAM]] - email client ==Other GUI toolkits== Currently there are two main widget toolkits in the Amiga world, which are competing with each other. The most widely used is MUI (adopted into [[AROS]], [[MorphOS]] and in most Amiga programs), the other one is [[ReAction GUI|ReAction]] which was adopted in AmigaOS 3.5. There is in development a GTK MUI wrapper and it will allow the porting of various [[GTK]] based software.<ref>{{cite web|url=http://sourceforge.net/projects/gtk-mui/ |title=GTK-MUI download |website=SourceForge.net |access-date=2016-07-17}}</ref> There is also modern interfaces based on XML, [http://www.feelin.fr/ Feelin]. ==Palette extension to Workbench defaults== MUI extended [[Workbench (AmigaOS)|Workbench]]'s four-colour [[Palette (computing)|palette]] with four additional colours, allowing smoother [[Image gradient|gradient]]s with less noticeable [[dither]]ing. The [[MagicWB]] companion to MUI made use of this extended palette to provide more attractive icons to replace the dated Workbench defaults. MUI 4 added support for [[alpha blending]] and support for user defined widget shapes. {| class="wikitable" style="margin-left:auto;margin-right:auto;" ! !! colspan="8" | MUI eight-colour palette |- ! Colour | style="background:rgb(149,149,149);"| | style="background:rgb(000,000,000);"| | style="background:rgb(255,255,255);"| | style="background:rgb(59,103,162);"| | style="background:rgb(123,123,123);"| | style="background:rgb(175,175,175);"| | style="background:rgb(170,144,124);"| | style="background:rgb(255,169,151);"| |- ! Red | 149 || 000 || 255 || 59 || 123 || 175 || 170 || 255 |- ! Green | 149 || 000 || 255 || 103 || 123 || 175 || 144 || 169 |- ! Blue | 149 || 000 || 255 || 162 || 123 || 175 || 124 || 151 |} ==See also== {{Portal|Amiga}} * [[ReAction GUI]] (ClassAct) * [[Zune (widget toolkit)|Zune]] ==References== {{Reflist}} ==External links== * [http://www.sasg.com/mui/ MUI homepage] * [http://nightly.muidev.de Unofficial MUI nightly build directory] * [http://www.pjhutchison.org/tutorial/mui_howitworks.html Tutorial] {{AmigaOS}} {{MorphOS}} {{Widget toolkits}} [[Category:Widget toolkits]] [[Category:Amiga APIs]] [[Category:Amiga software]] [[Category:AmigaOS]] [[Category:AmigaOS 4 software]] [[Category:MorphOS]]
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)
Pages transcluded onto the current version of this page
(
help
)
:
Template:AmigaOS
(
edit
)
Template:Cite web
(
edit
)
Template:Infobox Software
(
edit
)
Template:MorphOS
(
edit
)
Template:Portal
(
edit
)
Template:Reflist
(
edit
)
Template:Short description
(
edit
)
Template:Widget toolkits
(
edit
)