edgesnap.library is what EdgeSnap does, window snapping in the style of
Windows and macOS, offered to any program: the EdgeSnap commodity is
only its first client. This archive is what a program needs to use it,
on AmigaOS 4, MorphOS and AROS. The library itself comes with EdgeSnap
(util/cdity on Aminet).
include/edgesnap.h the API, documented function by function
include/edgesnap_types.h error codes, zones and the revision history
include/interfaces/ AmigaOS 4: the interface (IEdgeSnap)
include/ppcinline/ MorphOS: the inline calls
include/aros/ AROS: proto, clib, defines and inline
fd/edgesnap_lib.fd the jump table, with registers
autodocs/edgesnap.doc the same documentation, laid out as an
autodoc
examples/sidebyside.c a small layout client, one source for the
three systems, with a build of it for each
(os4, mos, aros64, aarch64, i386)
The example opens two windows of its own, puts them side by side as a
group with a gap between them, and moves the seam between them with the
cursor keys; Esc or a close gadget quits. It shows the order a client
follows: open the library and check its revision, register a role, make
a group, place its windows, move a seam by its token, and let everything
go again. Its first lines say how to build it on each system.
This SDK describes edgesnap.library 2.27, API version 2. A program
built against it runs on every later 2.x; a call that came with a later
revision than the program checks for must be guarded by the library's
revision, as the example does, since OpenLibrary() checks the version
only. The revision each call came with is in its NAME line, (V2.n).
The source of the library, the commodity and this SDK is at
https://github.com/kaffeine1/edgesnap
|