MCPcopy Create free account
hub / github.com/aseprite/laf

github.com/aseprite/laf @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
2,118 symbols 4,475 edges 356 files 142 documented · 7% updated 15d ago★ 34314 open issues

Browse by type

Functions 1,752 Types & classes 366
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

LAF: The Lost Application Framework

build MIT Licensed

A library to create Windows, macOS, and Linux applications.

This library is under active development so we don't provide API or ABI compatibility at this moment.

Dependencies

laf can be compiled with two back-ends (LAF_BACKEND): skia or none.

When LAF_BACKEND=skia, laf requires a compiled version of the Skia library from branch aseprite-m124. You can check the aseprite/skia fork which includes a release with pre-built versions, or the check the instructions to compile skia from scratch.

When LAF_BACKEND=none, the Pixman library can be used as an alternative implementation of the gfx::Region class (generally if you're using laf-os you will link it with Skia, so there is no need for Pixman at all).

Compile

To compile laf with Skia as backend you have to specify some variables pointing to a valid compiled version of Skia in your disk. In the following example /skiadir is the absolute path to a directory where the Skia source code + compiled version is, or just where you've uncompressed a pre-built package of Skia (note that in this case /skiadir/out/Release-x64 should contain the Skia library files, i.e. skia.lib on Windows or libskia.a on other platforms):

git clone --recursive https://github.com/aseprite/laf.git
cd laf
cmake -G Ninja -S . -B build \
  -DLAF_BACKEND=skia \
  -DSKIA_DIR=/skiadir \
  -DSKIA_LIBRARY_DIR=/skiadir/out/Release-x64
cmake --build build
build/examples/helloworld

To compile only the library (without examples and tests) you can disable the LAF_WITH_EXAMPLES/LAF_WITH_TESTS options:

cmake -DLAF_WITH_EXAMPLES=OFF -DLAF_WITH_TESTS=OFF ...

Running Tests

You can use ctest to run all tests:

cd build
ninja
ctest

License

laf is distributed under the terms of the MIT license.

Some functions in laf depends on third party libraries (you should include these license notices when you distribute your software):

Core symbols most depended-on inside this repo

Shape

Method 1,378
Function 374
Class 312
Enum 54

Languages

C++100%
C1%

Modules by API surface

os/win/window.cpp64 symbols
os/skia/skia_surface.cpp53 symbols
os/x11/window.cpp49 symbols
text/empty_font_mgr.cpp38 symbols
os/event.h34 symbols
os/common/system.h33 symbols
os/win/system.cpp32 symbols
os/win/dnd.cpp31 symbols
dlgs/win/file_dialog_win.cpp28 symbols
gfx/rect.h24 symbols
ft/face.h24 symbols
base/ref.h23 symbols

For agents

$ claude mcp add laf \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page