summaryrefslogtreecommitdiffstats
path: root/src/model/state/selection_info.h (plain)
blob: 73a1c34fc939d3f72710b3c62e668568e57e458f
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
#ifndef SELECTION_INFO_H
#define SELECTION_INFO_H

#include "selection_purposes.h"
#include <stdbool.h>

typedef struct
{

  /*
   * Selection list.
   */
  bool *set;

  /*
   * A selection is being performed.
   */
  bool active;

  /*
   * Indicate if the user is currently defining a selection.
   */
  SELECTION_PURPOSES purpose;

  /*
   * X coordinate of mouse when selection mode initiated.
   */
  int x;

  /*
   * Y coordinate of mouse when selection mode initiated.
   */
  int y;

} SELECTION_INFO;

#endif // SELECTION_INFO_H

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.