From b8339d7edf63c8745be4be092e63f46bc4e63b91 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Wed, 28 Sep 2016 13:13:20 +0200 Subject: wx: add wxWindowDragAcceptFiles Enable window to handle drop file events. --- lib/wx/src/gen/wxWindow.erl | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'lib/wx/src/gen/wxWindow.erl') diff --git a/lib/wx/src/gen/wxWindow.erl b/lib/wx/src/gen/wxWindow.erl index 4ac7cc5d75..7f706c84b1 100644 --- a/lib/wx/src/gen/wxWindow.erl +++ b/lib/wx/src/gen/wxWindow.erl @@ -32,15 +32,15 @@ center/2,centerOnParent/1,centerOnParent/2,centre/1,centre/2,centreOnParent/1, centreOnParent/2,clearBackground/1,clientToScreen/2,clientToScreen/3, close/1,close/2,convertDialogToPixels/2,convertPixelsToDialog/2,destroy/1, - destroyChildren/1,disable/1,enable/1,enable/2,findFocus/0,findWindow/2, - findWindowById/1,findWindowById/2,findWindowByLabel/1,findWindowByLabel/2, - findWindowByName/1,findWindowByName/2,fit/1,fitInside/1,freeze/1,getAcceleratorTable/1, - getBackgroundColour/1,getBackgroundStyle/1,getBestSize/1,getCapture/0, - getCaret/1,getCharHeight/1,getCharWidth/1,getChildren/1,getClientSize/1, - getContainingSizer/1,getCursor/1,getDropTarget/1,getEventHandler/1, - getExtraStyle/1,getFont/1,getForegroundColour/1,getGrandParent/1, - getHandle/1,getHelpText/1,getId/1,getLabel/1,getMaxSize/1,getMinSize/1, - getName/1,getParent/1,getPosition/1,getRect/1,getScreenPosition/1, + destroyChildren/1,disable/1,dragAcceptFiles/2,enable/1,enable/2,findFocus/0, + findWindow/2,findWindowById/1,findWindowById/2,findWindowByLabel/1, + findWindowByLabel/2,findWindowByName/1,findWindowByName/2,fit/1,fitInside/1, + freeze/1,getAcceleratorTable/1,getBackgroundColour/1,getBackgroundStyle/1, + getBestSize/1,getCapture/0,getCaret/1,getCharHeight/1,getCharWidth/1, + getChildren/1,getClientSize/1,getContainingSizer/1,getCursor/1,getDropTarget/1, + getEventHandler/1,getExtraStyle/1,getFont/1,getForegroundColour/1, + getGrandParent/1,getHandle/1,getHelpText/1,getId/1,getLabel/1,getMaxSize/1, + getMinSize/1,getName/1,getParent/1,getPosition/1,getRect/1,getScreenPosition/1, getScreenRect/1,getScrollPos/2,getScrollRange/2,getScrollThumb/2, getSize/1,getSizer/1,getTextExtent/2,getTextExtent/3,getToolTip/1, getUpdateRegion/1,getVirtualSize/1,getWindowStyleFlag/1,getWindowVariant/1, @@ -297,6 +297,15 @@ disable(#wx_ref{type=ThisT,ref=ThisRef}) -> wxe_util:call(?wxWindow_Disable, <>). +%% @doc See external documentation. +-spec dragAcceptFiles(This, Accept) -> 'ok' when + This::wxWindow(), Accept::boolean(). +dragAcceptFiles(#wx_ref{type=ThisT,ref=ThisRef},Accept) + when is_boolean(Accept) -> + ?CLASS(ThisT,wxWindow), + wxe_util:cast(?wxWindow_DragAcceptFiles, + <>). + %% @equiv enable(This, []) -spec enable(This) -> boolean() when This::wxWindow(). -- cgit v1.2.3