1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#ifndef __CLOCK_LOCATION_TILE_H__
#define __CLOCK_LOCATION_TILE_H__
#include <gtk/gtk.h>
#include "clock.h"
#include "clock-face.h"
#include "clock-location.h"
#include "clock-utils.h"
#ifdef __cplusplus
extern "C" {
#endif
#define CLOCK_LOCATION_TILE_TYPE (clock_location_tile_get_type ())
#define CLOCK_LOCATION_TILE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), CLOCK_LOCATION_TILE_TYPE, ClockLocationTile))
#define CLOCK_LOCATION_TILE_CLASS(c) (G_TYPE_CHECK_CLASS_CAST ((c), CLOCK_LOCATION_TILE_TYPE, ClockLocationTileClass))
#define IS_CLOCK_LOCATION_TILE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), CLOCK_LOCATION_TILE_TYPE))
#define IS_CLOCK_LOCATION_TILE_CLASS(c) (G_TYPE_CHECK_CLASS_TYPE ((c), CLOCK_LOCATION_TILE_TYPE))
#define CLOCK_LOCATION_TILE_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CLOCK_LOCATION_TILE_TYPE, ClockLocationTileClass))
typedef struct
{
#if GTK_CHECK_VERSION (3, 0, 0)
GtkBin parent;
#else
GtkAlignment parent;
#endif
} ClockLocationTile;
typedef struct
{
#if GTK_CHECK_VERSION (3, 0, 0)
GtkBinClass parent_class;
#else
GtkAlignmentClass parent_class;
#endif
void (* tile_pressed) (ClockLocationTile *tile);
int (* need_clock_format) (ClockLocationTile *tile);
} ClockLocationTileClass;
GType clock_location_tile_get_type (void);
ClockLocationTile *clock_location_tile_new (ClockLocation *loc,
ClockFaceSize size);
ClockLocation *clock_location_tile_get_location (ClockLocationTile *this);
void weather_info_setup_tooltip (WeatherInfo *info, ClockLocation *location, GtkTooltip *tip,
ClockFormat clock_format);
void clock_location_tile_refresh (ClockLocationTile *this,
gboolean force_refresh);
#ifdef __cplusplus
}
#endif
#endif /* __CLOCK_H__ */
|