Skip to content

Commit

Permalink
[wx] Add more types
Browse files Browse the repository at this point in the history
The hardcoded records wxMouseState and wxHtmlLinkInfo did have
types as comments. (changes in code gen is in prev commit)
  • Loading branch information
dgud committed Mar 16, 2012
1 parent 37fb668 commit 8d5372d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/wx/include/wx.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,13 @@
-type wxEventType() :: wxAuiManagerEventType() | wxAuiNotebookEventType() | wxCalendarEventType() | wxChildFocusEventType() | wxCloseEventType() | wxColourPickerEventType() | wxCommandEventType() | wxContextMenuEventType() | wxDateEventType() | wxDisplayChangedEventType() | wxEraseEventType() | wxFileDirPickerEventType() | wxFocusEventType() | wxFontPickerEventType() | wxGridEventType() | wxHelpEventType() | wxHtmlLinkEventType() | wxIconizeEventType() | wxIdleEventType() | wxJoystickEventType() | wxKeyEventType() | wxListEventType() | wxMaximizeEventType() | wxMenuEventType() | wxMouseCaptureChangedEventType() | wxMouseEventType() | wxMoveEventType() | wxNavigationKeyEventType() | wxNcPaintEventType() | wxNotebookEventType() | wxPaintEventType() | wxPaletteChangedEventType() | wxQueryNewPaletteEventType() | wxSashEventType() | wxScrollEventType() | wxScrollWinEventType() | wxSetCursorEventType() | wxShowEventType() | wxSizeEventType() | wxSpinEventType() | wxSplitterEventType() | wxStyledTextEventType() | wxSysColourChangedEventType() | wxTaskBarIconEventType() | wxTreeEventType() | wxUpdateUIEventType() | wxWindowCreateEventType() | wxWindowDestroyEventType().

%% Hardcoded Records
-record(wxMouseState, {x, y, %% integer()
leftDown, middleDown, rightDown, %% bool()
controlDown, shiftDown, altDown, metaDown, cmdDown %% bool()
-record(wxMouseState, {x :: integer(), y :: integer(),
leftDown :: boolean(), middleDown :: boolean, rightDown :: boolean,
controlDown :: boolean(), shiftDown :: boolean(),
altDown :: boolean(), metaDown :: boolean(), cmdDown :: boolean()
}).
-record(wxHtmlLinkInfo, {
href, target %% unicode:chardata()
href :: unicode:chardata(), target :: unicode:chardata()
}).

%% Hardcoded Defines
Expand Down

0 comments on commit 8d5372d

Please sign in to comment.