blob: 2259c296277e4d5e0973cf4a5242eb3183f12859 [file] [log] [blame]
/*
* Twin - A Tiny Window System
* Copyright © 2004 Keith Packard <keithp@keithp.com>
* All rights reserved.
*
* This Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This Library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with the Gnome Library; see the file COPYING.LIB. If not,
* write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
#ifndef _TWIN_CLOCK_H_
#define _TWIN_CLOCK_H_
#include <twin.h>
typedef struct _twin_clock {
twin_widget_t widget;
twin_timeout_t *timeout;
} twin_clock_t;
void
_twin_clock_paint (twin_clock_t *clock);
twin_dispatch_result_t
_twin_clock_dispatch (twin_widget_t *widget, twin_event_t *event);
void
_twin_clock_init (twin_clock_t *clock,
twin_box_t *parent,
twin_dispatch_proc_t dispatch);
twin_clock_t *
twin_clock_create (twin_box_t *parent);
void
twin_clock_start (twin_screen_t *screen, const char *name, int x, int y, int w, int h);
#endif /* _TWIN_CLOCK_H_ */