1wxGridEvent(3) Erlang Module Definition wxGridEvent(3)
2
3
4
6 wxGridEvent - Functions for wxGridEvent class
7
9 This event class contains information about various grid events.
10
11 Notice that all grid event table macros are available in two versions:
12 EVT_GRID_XXX and EVT_GRID_CMD_XXX. The only difference between the two
13 is that the former doesn't allow to specify the grid window identifier
14 and so takes a single parameter, the event handler, but is not suitable
15 if there is more than one grid control in the window where the event
16 table is used (as it would catch the events from all the grids). The
17 version with CMD takes the id as first argument and the event handler
18 as the second one and so can be used with multiple grids as well. Oth‐
19 erwise there are no difference between the two and only the versions
20 without the id are documented below for brevity.
21
22 This class is derived (and can use functions) from: wxNotifyEvent wx‐
23 CommandEvent wxEvent
24
25 wxWidgets docs: wxGridEvent
26
28 Use wxEvtHandler:connect/3 with wxGridEventType to subscribe to events
29 of this type.
30
32 wxGridEvent() = wx:wx_object()
33
34 wxGrid() =
35 #wxGrid{type = wxGridEvent:wxGridEventType(),
36 row = integer(),
37 col = integer(),
38 pos = {X :: integer(), Y :: integer()},
39 selecting = boolean(),
40 control = boolean(),
41 meta = boolean(),
42 shift = boolean(),
43 alt = boolean()}
44
45 wxGridEventType() =
46 grid_cell_left_click | grid_cell_right_click |
47 grid_cell_left_dclick | grid_cell_right_dclick |
48 grid_label_left_click | grid_label_right_click |
49 grid_label_left_dclick | grid_label_right_dclick |
50 grid_cell_changed | grid_select_cell | grid_cell_begin_drag |
51 grid_editor_shown | grid_editor_hidden | grid_col_move |
52 grid_col_sort | grid_tabbing
53
55 altDown(This) -> boolean()
56
57 Types:
58
59 This = wxGridEvent()
60
61 Returns true if the Alt key was down at the time of the event.
62
63 controlDown(This) -> boolean()
64
65 Types:
66
67 This = wxGridEvent()
68
69 Returns true if the Control key was down at the time of the
70 event.
71
72 getCol(This) -> integer()
73
74 Types:
75
76 This = wxGridEvent()
77
78 Column at which the event occurred.
79
80 Notice that for a wxEVT_GRID_SELECT_CELL event this column is
81 the column of the newly selected cell while the previously se‐
82 lected cell can be retrieved using wxGrid:getGridCursorCol/1.
83
84 getPosition(This) -> {X :: integer(), Y :: integer()}
85
86 Types:
87
88 This = wxGridEvent()
89
90 Position in pixels at which the event occurred.
91
92 getRow(This) -> integer()
93
94 Types:
95
96 This = wxGridEvent()
97
98 Row at which the event occurred.
99
100 Notice that for a wxEVT_GRID_SELECT_CELL event this row is the
101 row of the newly selected cell while the previously selected
102 cell can be retrieved using wxGrid:getGridCursorRow/1.
103
104 metaDown(This) -> boolean()
105
106 Types:
107
108 This = wxGridEvent()
109
110 Returns true if the Meta key was down at the time of the event.
111
112 selecting(This) -> boolean()
113
114 Types:
115
116 This = wxGridEvent()
117
118 Returns true if the user is selecting grid cells, or false if
119 deselecting.
120
121 shiftDown(This) -> boolean()
122
123 Types:
124
125 This = wxGridEvent()
126
127 Returns true if the Shift key was down at the time of the event.
128
129
130
131wxWidgets team. wx 2.1.4 wxGridEvent(3)