diff options
author | Dan Gudmundsson <[email protected]> | 2016-05-30 14:16:43 +0200 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2016-05-30 14:16:43 +0200 |
commit | bf46ff0561ee64cc99f30da30a52ca5268af134e (patch) | |
tree | 136b0bc5fc8da156f86d27688f2b55815a6d25c5 /lib/wx/src/gen/wxTextDataObject.erl | |
parent | 5e316eca0302c1664b9076284f38cd9b98a88dea (diff) | |
parent | 8e865e3b99cf70765bceafd84e9c38914e7306c2 (diff) | |
download | otp-bf46ff0561ee64cc99f30da30a52ca5268af134e.tar.gz otp-bf46ff0561ee64cc99f30da30a52ca5268af134e.tar.bz2 otp-bf46ff0561ee64cc99f30da30a52ca5268af134e.zip |
Merge branch 'dgud/wx/quote-atoms-in-specs'
* dgud/wx/quote-atoms-in-specs:
wx: Quote atoms in types and specs
Diffstat (limited to 'lib/wx/src/gen/wxTextDataObject.erl')
-rw-r--r-- | lib/wx/src/gen/wxTextDataObject.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/wx/src/gen/wxTextDataObject.erl b/lib/wx/src/gen/wxTextDataObject.erl index a1893eed1c..eb3e1f4bff 100644 --- a/lib/wx/src/gen/wxTextDataObject.erl +++ b/lib/wx/src/gen/wxTextDataObject.erl @@ -47,7 +47,7 @@ new() -> %% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxtextdataobject.html#wxtextdataobjectwxtextdataobject">external documentation</a>. -spec new([Option]) -> wxTextDataObject() when - Option :: {text, unicode:chardata()}. + Option :: {'text', unicode:chardata()}. new(Options) when is_list(Options) -> MOpts = fun({text, Text}, Acc) -> Text_UC = unicode:characters_to_binary([Text,0]),[<<1:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>|Acc]; @@ -73,7 +73,7 @@ getText(#wx_ref{type=ThisT,ref=ThisRef}) -> <<ThisRef:32/?UI>>). %% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxtextdataobject.html#wxtextdataobjectsettext">external documentation</a>. --spec setText(This, Text) -> ok when +-spec setText(This, Text) -> 'ok' when This::wxTextDataObject(), Text::unicode:chardata(). setText(#wx_ref{type=ThisT,ref=ThisRef},Text) when is_list(Text) -> @@ -83,7 +83,7 @@ setText(#wx_ref{type=ThisT,ref=ThisRef},Text) <<ThisRef:32/?UI,(byte_size(Text_UC)):32/?UI,(Text_UC)/binary, 0:(((8- ((0+byte_size(Text_UC)) band 16#7)) band 16#7))/unit:8>>). %% @doc Destroys this object, do not use object again --spec destroy(This::wxTextDataObject()) -> ok. +-spec destroy(This::wxTextDataObject()) -> 'ok'. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxTextDataObject), wxe_util:destroy(?wxTextDataObject_destroy,Obj), |