fluid.showcase

This showcase is a set of examples and tutorials designed to illustrate core features of Fluid and provide a quick start guide to developing applications using Fluid.

This module is the central piece of the showcase, gluing it together. It loads and parses each module to display it as a document. It's not trivial; other modules from this package are designed to offer better guidance on Fluid usage, but it might also be useful to people intending to implement similar functionality.

To get started with the showcase, use dub run fluid:showcase, which should compile and run the showcase. The program explains different components of the library and provides code examples, but you're free to browse through its files if you like! introduction.d might be a good start. I hope this directory proves as a useful learning resource.

Modules

buttons
module fluid.showcase.buttons
Undocumented in source.
frames
module fluid.showcase.frames
Undocumented in source.
introduction
module fluid.showcase.introduction
Undocumented in source.
slots
module fluid.showcase.slots
Undocumented in source.
themes
module fluid.showcase.themes
Undocumented in source.

Members

Classes

FunctionVisitor
class FunctionVisitor
Undocumented in source.

Functions

createUI
Space createUI(string initialChapter)
Undocumented in source. Be warned that the author may not have intended to support it.
exampleList
Space exampleList(void delegate(Chapter) @(safe) changeChapter)
Undocumented in source. Be warned that the author may not have intended to support it.
main
void main(string[] args)

The entrypoint prepares themes and the window. The UI is build in createUI().

render
Space render(Chapter query)
Space render()

Render the given chapter.

showcaseCode
Space showcaseCode(string code)

Create a code block

showcaseCode
Space showcaseCode(string code, Node node, Theme theme)

Showcase code and its result.

startWindow
void startWindow(Node ui)

Raylib entrypoint.

startWindow
void startWindow(Node ui)
Undocumented in source. Be warned that the author may not have intended to support it.
title
string title(Chapter query)

Get the title of the given chapter.

Manifest constants

contentSize
enum contentSize;

Reduced content width, used for document text.

maxContentSize
enum maxContentSize;

Maximum content width, used for code samples, since they require more space.

Variables

codeTheme
Theme codeTheme;
Undocumented in source.
exampleListTheme
Theme exampleListTheme;
Undocumented in source.
headingTheme
Theme headingTheme;
Undocumented in source.
highlightBoxTheme
Theme highlightBoxTheme;
Undocumented in source.
mainTheme
Theme mainTheme;
Undocumented in source.
previewWrapperTheme
Theme previewWrapperTheme;
Undocumented in source.
subheadingTheme
Theme subheadingTheme;
Undocumented in source.
warningTheme
Theme warningTheme;
Undocumented in source.

Meta