;;; Starling Game Engine ;;; Copyright © 2019 David Thompson ;;; ;;; This program is free software: you can redistribute it and/or ;;; modify it under the terms of the GNU General Public License as ;;; published by the Free Software Foundation, either version 3 of the ;;; License, or (at your option) any later version. ;;; ;;; This program is distributed in the hope that it will be useful, ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;;; General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with Starling. If not, see . ;;; Commentary: ;; ;; 2D Graphical User Interface ;; ;;; Code: (define-module (starling gui) #:use-module (chickadee config) #:use-module (chickadee graphics color) #:use-module (chickadee graphics font) #:use-module (chickadee graphics texture) #:use-module (chickadee math vector) #:use-module (ice-9 match) #:use-module (oop goops) #:use-module (srfi srfi-1) #:use-module (starling asset) #:use-module (starling config) #:use-module (starling node) #:use-module (starling node-2d) #:use-module (starling scene) #:export ( settings theme-ref define-theme current-theme apply-theme focused? hover? left-pressed? right-pressed? middle-pressed? add-listener remove-listener notify mouse-enter mouse-exit mouse-press mouse-click left-margin right-margin bottom-margin top-margin