summaryrefslogtreecommitdiff
path: root/endless/eosenums.h
blob: d9b396acf9dcecf7de7fbfd44b763786fdf7624b (plain)
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
60
61
62
63
64
65
66
67
68
/* Copyright 2013 Endless Mobile, Inc. */

#ifndef EOS_ENUMS_H
#define EOS_ENUMS_H

#if !(defined(_EOS_SDK_INSIDE_ENDLESS_H) || defined(COMPILING_EOS_SDK))
#error "Please do not include this header file directly."
#endif

#include <glib-object.h>

G_BEGIN_DECLS

/* Shared typedefs for enumerations */

/*
 * SECTION:enums
 * @Short_description: Public enumerated types used throughout the Endless SDK
 * @Title: Standard Enumerations
 *
 * Public enumerated types used throughout the Endless SDK.
 */

/**
 * EosActionButtonSize:
 * @EOS_ACTION_BUTTON_SIZE_PRIMARY: size for primary buttons
 * @EOS_ACTION_BUTTON_SIZE_SECONDARY: size for secondary buttons
 * @EOS_ACTION_BUTTON_SIZE_TERTIARY: size for tertiary buttons
 * @EOS_ACTION_BUTTON_SIZE_QUATERNARY: size for quaternary buttons
 * @EOS_ACTION_BUTTON_SIZE_NUM_SIZES: total number of sizes
 *
 * Built-in sizes for internal action buttons.
 */
typedef enum
{
  EOS_ACTION_BUTTON_SIZE_PRIMARY = 0,
  EOS_ACTION_BUTTON_SIZE_SECONDARY,
  EOS_ACTION_BUTTON_SIZE_TERTIARY,
  EOS_ACTION_BUTTON_SIZE_QUATERNARY,
  EOS_ACTION_BUTTON_SIZE_NUM_SIZES
} EosActionButtonSize;

#define EOS_TYPE_FLEXY_SHAPE		(eos_flexy_shape_get_type ())

/**
 * EosFlexyShape:
 * @EOS_FLEXY_SHAPE_SMALL: 1x1 shape for small cells
 * @EOS_FLEXY_SHAPE_MEDIUM_HORIZONTAL: 2x1 <quote>landscape</quote> shape for
 * medium cells
 * @EOS_FLEXY_SHAPE_MEDIUM_VERTICAL: 1x2 <quote>portrait</quote> shape for
 * medium cells
 * @EOS_FLEXY_SHAPE_LARGE: 2x2 shape for large cells
 *
 * Sizes for flexible-layout cells in `EosFlexyGrid`.
 */
typedef enum
{
  EOS_FLEXY_SHAPE_SMALL,
  EOS_FLEXY_SHAPE_MEDIUM_HORIZONTAL,
  EOS_FLEXY_SHAPE_MEDIUM_VERTICAL,
  EOS_FLEXY_SHAPE_LARGE
} EosFlexyShape;

GType eos_flexy_shape_get_type (void) G_GNUC_CONST;

G_END_DECLS

#endif /* EOS_ENUMS_H */