fltk.types
FLTK High-Level API Common Types
This module provides common types and aliases for the high-level FLTK API. It re-exports and renames types from the low-level bindings to provide a cleaner, more D-idiomatic interface without the Fl prefix.
License
BSD-3-Clause
Copyright
Copyright © 2025 DDN (D Developer Network) Members
Module Initializers 1
shared static this
()Types 5
structRect
Represents a rectangular region with position and size.
This is a convenience type for working with widget geometry.
Fields
int xX coordinate (left edge)int yY coordinate (top edge)int widthWidth in pixelsint heightHeight in pixelsMethods
bool intersects(Rect other) const @safe nothrow @nogcChecks if this rectangle intersects with another.Constructors
this(int x, int y, int width, int height)Creates a rectangle from position and size.structSize
structPoint
Represents a 2D point.
Fields
int xX coordinateint yY coordinateMethods
Constructors
this(int x, int y)Creates a point.aliasCallback = void delegate()
Callback delegate type for widget events.
This is the standard callback signature for widget interactions.
aliasCallbackWithData = void delegate(void * data)
Callback delegate type for widget events with user data.
Parameters
data | User-provided data pointer |
Functions 2
Variables 3
private var
bool _headlessCached = falseprivate var
bool _headlessValue = falseprivate var
bool _fltkInitialized = false