ArticleslgStudy

computer science

FireMonkey

FireMonkey is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand FireMonkey rather than just read about it. In short: FireMonkey (abbreviated FMX) is a cross-platform GUI framework developed by Embarcadero Technologies for use in Delphi, C++Builder or Python, using Object Pascal, C++ or Python to build cross-platform applications for Windows, macOS, iOS, and Android. A third-party library, FMX Linux, enables the building of FireMonkey applications on Linux.

FireMonkey — main illustration
FireMonkey — illustration

Key takeaways

  • FireMonkey belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect FireMonkey to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of FireMonkey from memory before moving on to harder problems.

Reference excerpt

FireMonkey (abbreviated FMX) is a cross-platform GUI framework developed by Embarcadero Technologies for use in Delphi, C++Builder or Python, using Object Pascal, C++ or Python to build cross-platform applications for Windows, macOS, iOS, and Android. A third-party library, FMX Linux, enables the building of FireMonkey applications on Linux.

History FireMonkey is based on VGScene, which was designed by Eugene Kryukov (d. 2024) of KSDev from Ulan-Ude, Russia as a next generation vector-based GUI. In 2011, VGScene was sold to the American company Embarcadero Technologies. Kryukov continued to be involved in the development of FireMonkey. Along with the traditional Windows-only Visual Component Library (VCL), the cross-platform FireMonkey framework is included as part of Delphi, C++Builder and RAD Studio since version XE2. FireMonkey started out as a vector-based UI framework, but evolved to be a bitmap or raster-based UI framework to give greater control of the look to match target platform appearances. In 2021, FireMonkey for Python was released by Embarcadero, which was designed by Lucas Moura Belo. FireMonkey for Python is a natively compiled Python module powered by the Python4Delphi library. It gives Python developers access to the FireMonkey GUI framework and is freely redistributable. It fully supports Windows, MacOS, Linux, and Android GUI development.

Overview FireMonkey is a cross-platform UI framework, and allows developers to create user interfaces that run on Windows, macOS, iOS and Android. It is written to use the GPU where possible, and applications take advantage of the hardware acceleration features available in Direct2D on Windows Vista, Windows 7, Windows 8 and Windows 10, OpenGL on macOS, OpenGL ES on iOS and Android, and on Windows platforms where Direct2D is not available (Windows XP for example) it falls back to GDI+. Applications and interfaces developed with FireMonkey are separated into two categories, HD and 3D. An HD application is a traditional two-dimensional interface; that is, UI elements on the screen. It is referred to as HD because FireMonkey utilizes multi-resolution bitmaps in its dynamic style system to take advantage of high-DPI displays. The second type, a 3D interface, provides a 3D scene environment useful for developing visualisations. The two can be freely mixed, with 2D elements (normal UI controls such as buttons) in a 3D scene, either as an overlay or in the 3D space, and 3D scenes integrated into the normal 2D "HD" interface. The framework has inbuilt support for effects (such as blurs and glows, as well as others) and animation, allowing modern WPF-style fluid interfaces to be easily built. It also supports native themes, so that a FireMonkey application can look very close to native on each platform. Native controls can be used on Windows, macOS, iOS and Android through both third-party libraries and the ControlType property. FireMonkey is not only a visual framework but a full software development framework, and retains many features available with VCL. The major differences are:

Cross-platform compatibility Any visual component can be a child of any other visual component, allowing for creation of hybrid components Built-in styling support (now also available in VCL) Use of single-precision floating-point numbers for position, etc. instead of integers. Support for GPU shader-based visual effects (such as Glow, Inner Glow, Blur for example) and animation of visual components Due to the framework being cross-platform compatible, the same source code and form design can be used to deploy to the various platforms it supports. It natively supports 32-bit and 64-bit executables on Windows, 32-bit executables on macOS, 32-bit and 64-bit executables on iOS, and 32-bit and 64-bit executables on Android. FireMonkey includes platform services that adapt the user interface to the correct behavior and appearance on each target platform. Since its introduction in XE2, there have been numerous improvements in many areas of the framework and it is being actively developed and improved. For example, macOS development is integrated tightly into the IDE, requiring a Mac only for deployment. Numerous components such as sensors, touch and GPS have been added, especially useful for those developing mobile apps. There have been significant performance and underlying technical improvements, too.

Features

Graphics FireMonkey uses hardware acceleration when available on Windows, macOS, iOS, and Android. Direct2D or OpenGL can be used on Windows Vista, Windows 7, Windows 8 and Windows 10. On Windows platforms where Direct2D is not available (Windows XP for example) it falls back to GDI+. OpenGL is used on macOS. OpenGL ES is used on iOS and Android.

Styles All controls in FireMonkey are styleable via the styling system. This is accomplished by attaching a TStyleBook to the form, and a style is loaded and applied to the form. On some platforms certain controls can also be set to use a OS provided control implementation in contrast to the self-drawn Firemonkey version. This sometimes adds further features while removing some features provided by Firemonkey's own implementation.

Platform services In addition to visual components, FireMonkey provides a loosely coupled way of accessing platform specific features independent of the platform. This also shows up as platform default behaviors. For example the TabPosition of the TTabControl has a property value of PlatformDefault that moves the tabs to the top on Android and the bottom on iOS automatically to be in line with the design guidelines for those platforms.

References

Illustrations

FireMonkey illustration
FireMonkey illustration

Worked examples

Example 1 — a first encounter with FireMonkey

Start with the simplest possible case. Write down what FireMonkey claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to FireMonkey before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about FireMonkey ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of FireMonkey

In research
FireMonkey appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses FireMonkey in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
FireMonkey is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer libraries, Graphical user interfaces, Pascal (programming language) libraries, so understanding it makes those chapters shorter.
In everyday life
Look for FireMonkey outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “FireMonkey” →

How to study FireMonkey in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what FireMonkey means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain FireMonkey out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is FireMonkey in simple terms?

FireMonkey (abbreviated FMX) is a cross-platform GUI framework developed by Embarcadero Technologies for use in Delphi, C++Builder or Python, using Object Pascal, C++ or Python to build cross-platform applications for Windows, macOS, iOS, and Android. A third-party library, FMX Linux, enables the b…

Why does FireMonkey matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study FireMonkey?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on FireMonkey.

Tags

  • Computer libraries
  • Graphical user interfaces
  • Pascal (programming language) libraries
  • Software programmed in Pascal

Keep exploring