From a181c06152a3c935fdf63659322020fb7625b577 Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Thu, 16 Feb 2012 11:04:18 +0100 Subject: [wx] Generated types for all wx classes --- lib/wx/src/gen/wxHtmlWindow.erl | 92 +++++++++++++++++++++++++++-------------- 1 file changed, 62 insertions(+), 30 deletions(-) (limited to 'lib/wx/src/gen/wxHtmlWindow.erl') diff --git a/lib/wx/src/gen/wxHtmlWindow.erl b/lib/wx/src/gen/wxHtmlWindow.erl index 891e5481fb..c8237ec31d 100644 --- a/lib/wx/src/gen/wxHtmlWindow.erl +++ b/lib/wx/src/gen/wxHtmlWindow.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2009-2011. All Rights Reserved. +%% Copyright Ericsson AB 2009-2012. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -79,6 +79,7 @@ transferDataToWindow/1,update/1,updateWindowUI/1,updateWindowUI/2, validate/1,warpPointer/3]). +-export_type([wxHtmlWindow/0]). %% @hidden parent_class(wxScrolledWindow) -> true; parent_class(wxPanel) -> true; @@ -86,21 +87,28 @@ parent_class(wxWindow) -> true; parent_class(wxEvtHandler) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec () -> wxHtmlWindow() +-type wxHtmlWindow() :: wx:wx_object(). %% @doc See external documentation. +-spec new() -> wxHtmlWindow(). new() -> wxe_util:construct(?wxHtmlWindow_new_0, <<>>). -%% @spec (Parent::wxWindow:wxWindow()) -> wxHtmlWindow() %% @equiv new(Parent, []) +-spec new(Parent) -> wxHtmlWindow() when + Parent::wxWindow:wxWindow(). + new(Parent) when is_record(Parent, wx_ref) -> new(Parent, []). -%% @spec (Parent::wxWindow:wxWindow(), [Option]) -> wxHtmlWindow() -%% Option = {id, integer()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} %% @doc See external documentation. +-spec new(Parent, [Option]) -> wxHtmlWindow() when + Parent::wxWindow:wxWindow(), + Option :: {id, integer()} + | {pos, {X::integer(), Y::integer()}} + | {size, {W::integer(), H::integer()}} + | {style, integer()}. new(#wx_ref{type=ParentT,ref=ParentRef}, Options) when is_list(Options) -> ?CLASS(ParentT,wxWindow), @@ -113,8 +121,9 @@ new(#wx_ref{type=ParentT,ref=ParentRef}, Options) wxe_util:construct(?wxHtmlWindow_new_2, <>). -%% @spec (This::wxHtmlWindow(), Source::string()) -> bool() %% @doc See external documentation. +-spec appendToPage(This, Source) -> boolean() when + This::wxHtmlWindow(), Source::string(). appendToPage(#wx_ref{type=ThisT,ref=ThisRef},Source) when is_list(Source) -> ?CLASS(ThisT,wxHtmlWindow), @@ -122,71 +131,81 @@ appendToPage(#wx_ref{type=ThisT,ref=ThisRef},Source) wxe_util:call(?wxHtmlWindow_AppendToPage, <>). -%% @spec (This::wxHtmlWindow()) -> string() %% @doc See external documentation. +-spec getOpenedAnchor(This) -> string() when + This::wxHtmlWindow(). getOpenedAnchor(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:call(?wxHtmlWindow_GetOpenedAnchor, <>). -%% @spec (This::wxHtmlWindow()) -> string() %% @doc See external documentation. +-spec getOpenedPage(This) -> string() when + This::wxHtmlWindow(). getOpenedPage(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:call(?wxHtmlWindow_GetOpenedPage, <>). -%% @spec (This::wxHtmlWindow()) -> string() %% @doc See external documentation. +-spec getOpenedPageTitle(This) -> string() when + This::wxHtmlWindow(). getOpenedPageTitle(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:call(?wxHtmlWindow_GetOpenedPageTitle, <>). -%% @spec (This::wxHtmlWindow()) -> wxFrame:wxFrame() %% @doc See external documentation. +-spec getRelatedFrame(This) -> wxFrame:wxFrame() when + This::wxHtmlWindow(). getRelatedFrame(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:call(?wxHtmlWindow_GetRelatedFrame, <>). -%% @spec (This::wxHtmlWindow()) -> bool() %% @doc See external documentation. +-spec historyBack(This) -> boolean() when + This::wxHtmlWindow(). historyBack(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:call(?wxHtmlWindow_HistoryBack, <>). -%% @spec (This::wxHtmlWindow()) -> bool() %% @doc See external documentation. +-spec historyCanBack(This) -> boolean() when + This::wxHtmlWindow(). historyCanBack(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:call(?wxHtmlWindow_HistoryCanBack, <>). -%% @spec (This::wxHtmlWindow()) -> bool() %% @doc See external documentation. +-spec historyCanForward(This) -> boolean() when + This::wxHtmlWindow(). historyCanForward(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:call(?wxHtmlWindow_HistoryCanForward, <>). -%% @spec (This::wxHtmlWindow()) -> ok %% @doc See external documentation. +-spec historyClear(This) -> ok when + This::wxHtmlWindow(). historyClear(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:cast(?wxHtmlWindow_HistoryClear, <>). -%% @spec (This::wxHtmlWindow()) -> bool() %% @doc See external documentation. +-spec historyForward(This) -> boolean() when + This::wxHtmlWindow(). historyForward(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:call(?wxHtmlWindow_HistoryForward, <>). -%% @spec (This::wxHtmlWindow(), Filename::string()) -> bool() %% @doc See external documentation. +-spec loadFile(This, Filename) -> boolean() when + This::wxHtmlWindow(), Filename::string(). loadFile(#wx_ref{type=ThisT,ref=ThisRef},Filename) when is_list(Filename) -> ?CLASS(ThisT,wxHtmlWindow), @@ -194,8 +213,9 @@ loadFile(#wx_ref{type=ThisT,ref=ThisRef},Filename) wxe_util:call(?wxHtmlWindow_LoadFile, <>). -%% @spec (This::wxHtmlWindow(), Location::string()) -> bool() %% @doc See external documentation. +-spec loadPage(This, Location) -> boolean() when + This::wxHtmlWindow(), Location::string(). loadPage(#wx_ref{type=ThisT,ref=ThisRef},Location) when is_list(Location) -> ?CLASS(ThisT,wxHtmlWindow), @@ -203,53 +223,61 @@ loadPage(#wx_ref{type=ThisT,ref=ThisRef},Location) wxe_util:call(?wxHtmlWindow_LoadPage, <>). -%% @spec (This::wxHtmlWindow()) -> ok %% @doc See external documentation. +-spec selectAll(This) -> ok when + This::wxHtmlWindow(). selectAll(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:cast(?wxHtmlWindow_SelectAll, <>). -%% @spec (This::wxHtmlWindow()) -> string() %% @doc See external documentation. +-spec selectionToText(This) -> string() when + This::wxHtmlWindow(). selectionToText(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:call(?wxHtmlWindow_SelectionToText, <>). -%% @spec (This::wxHtmlWindow(), Pos::{X::integer(), Y::integer()}) -> ok %% @doc See external documentation. +-spec selectLine(This, Pos) -> ok when + This::wxHtmlWindow(), Pos::{X::integer(), Y::integer()}. selectLine(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY}) when is_integer(PosX),is_integer(PosY) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:cast(?wxHtmlWindow_SelectLine, <>). -%% @spec (This::wxHtmlWindow(), Pos::{X::integer(), Y::integer()}) -> ok %% @doc See external documentation. +-spec selectWord(This, Pos) -> ok when + This::wxHtmlWindow(), Pos::{X::integer(), Y::integer()}. selectWord(#wx_ref{type=ThisT,ref=ThisRef},{PosX,PosY}) when is_integer(PosX),is_integer(PosY) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:cast(?wxHtmlWindow_SelectWord, <>). -%% @spec (This::wxHtmlWindow(), B::integer()) -> ok %% @doc See external documentation. +-spec setBorders(This, B) -> ok when + This::wxHtmlWindow(), B::integer(). setBorders(#wx_ref{type=ThisT,ref=ThisRef},B) when is_integer(B) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:cast(?wxHtmlWindow_SetBorders, <>). -%% @spec (This::wxHtmlWindow(), Normal_face::string(), Fixed_face::string()) -> ok %% @equiv setFonts(This,Normal_face,Fixed_face, []) +-spec setFonts(This, Normal_face, Fixed_face) -> ok when + This::wxHtmlWindow(), Normal_face::string(), Fixed_face::string(). + setFonts(This,Normal_face,Fixed_face) when is_record(This, wx_ref),is_list(Normal_face),is_list(Fixed_face) -> setFonts(This,Normal_face,Fixed_face, []). -%% @spec (This::wxHtmlWindow(), Normal_face::string(), Fixed_face::string(), [Option]) -> ok -%% Option = {sizes, integer()} %% @doc See external documentation. +-spec setFonts(This, Normal_face, Fixed_face, [Option]) -> ok when + This::wxHtmlWindow(), Normal_face::string(), Fixed_face::string(), + Option :: {sizes, integer()}. setFonts(#wx_ref{type=ThisT,ref=ThisRef},Normal_face,Fixed_face, Options) when is_list(Normal_face),is_list(Fixed_face),is_list(Options) -> ?CLASS(ThisT,wxHtmlWindow), @@ -261,8 +289,9 @@ setFonts(#wx_ref{type=ThisT,ref=ThisRef},Normal_face,Fixed_face, Options) wxe_util:cast(?wxHtmlWindow_SetFonts, <>). -%% @spec (This::wxHtmlWindow(), Source::string()) -> bool() %% @doc See external documentation. +-spec setPage(This, Source) -> boolean() when + This::wxHtmlWindow(), Source::string(). setPage(#wx_ref{type=ThisT,ref=ThisRef},Source) when is_list(Source) -> ?CLASS(ThisT,wxHtmlWindow), @@ -270,8 +299,9 @@ setPage(#wx_ref{type=ThisT,ref=ThisRef},Source) wxe_util:call(?wxHtmlWindow_SetPage, <>). -%% @spec (This::wxHtmlWindow(), Frame::wxFrame:wxFrame(), Format::string()) -> ok %% @doc See external documentation. +-spec setRelatedFrame(This, Frame, Format) -> ok when + This::wxHtmlWindow(), Frame::wxFrame:wxFrame(), Format::string(). setRelatedFrame(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FrameT,ref=FrameRef},Format) when is_list(Format) -> ?CLASS(ThisT,wxHtmlWindow), @@ -280,23 +310,25 @@ setRelatedFrame(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FrameT,ref=FrameRef wxe_util:cast(?wxHtmlWindow_SetRelatedFrame, <>). -%% @spec (This::wxHtmlWindow(), Bar::integer()) -> ok %% @doc See external documentation. +-spec setRelatedStatusBar(This, Bar) -> ok when + This::wxHtmlWindow(), Bar::integer(). setRelatedStatusBar(#wx_ref{type=ThisT,ref=ThisRef},Bar) when is_integer(Bar) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:cast(?wxHtmlWindow_SetRelatedStatusBar, <>). -%% @spec (This::wxHtmlWindow()) -> string() %% @doc See external documentation. +-spec toText(This) -> string() when + This::wxHtmlWindow(). toText(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxHtmlWindow), wxe_util:call(?wxHtmlWindow_ToText, <>). -%% @spec (This::wxHtmlWindow()) -> ok %% @doc Destroys this object, do not use object again +-spec destroy(This::wxHtmlWindow) -> ok. destroy(Obj=#wx_ref{type=Type}) -> ?CLASS(Type,wxHtmlWindow), wxe_util:destroy(?DESTROY_OBJECT,Obj), -- cgit v1.2.3