|
PatchworkOS
10941b4
A non-POSIX operating system.
|
#include <libpatchwork/patchwork.h>#include <math.h>#include <stdint.h>#include <stdlib.h>#include <string.h>#include <sys/defs.h>#include <time.h>Go to the source code of this file.
Macros | |
| #define | WINDOW_WIDTH 500 |
| #define | WINDOW_HEIGHT 500 |
Functions | |
| static void | draw_marker (drawable_t *draw, point_t center, int64_t radius, const point_t *markerPoints, uint64_t pointCount, double angle, pixel_t pixel) |
| static void | draw_hand (drawable_t *draw, point_t center, const point_t *handPoints, uint64_t pointCount, double angle, pixel_t pixel) |
| static uint64_t | procedure (window_t *win, element_t *elem, const event_t *event) |
| int | main (void) |
Variables | |
| static point_t | hourMarker [] = {{-3, 0}, {3, 0}, {2, -30}, {-2, -30}} |
| static point_t | minuteMarker [] = {{-1, 0}, {1, 0}, {1, -15}, {-1, -15}} |
| static point_t | hourHand [] = {{-8, 15}, {8, 15}, {6, -50}, {3, -75}, {0, -85}, {-3, -75}, {-6, -50}} |
| static point_t | minuteHand [] = {{-6, 15}, {6, 15}, {4, -120}, {2, -145}, {0, -155}, {-2, -145}, {-4, -120}} |
| static point_t | secondHand [] = {{-2, 30}, {2, 30}, {2, 0}, {1, -165}, {0, -175}, {-1, -165}, {-2, 0}} |
|
static |
|
static |
|
static |
|
static |