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/wxGraphicsPath.erl | 83 ++++++++++++++++++++++++--------------- 1 file changed, 52 insertions(+), 31 deletions(-) (limited to 'lib/wx/src/gen/wxGraphicsPath.erl') diff --git a/lib/wx/src/gen/wxGraphicsPath.erl b/lib/wx/src/gen/wxGraphicsPath.erl index e41496c641..6e9af755b9 100644 --- a/lib/wx/src/gen/wxGraphicsPath.erl +++ b/lib/wx/src/gen/wxGraphicsPath.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 2008-2011. All Rights Reserved. +%% Copyright Ericsson AB 2008-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 @@ -36,152 +36,169 @@ %% inherited exports -export([getRenderer/1,isNull/1,parent_class/1]). +-export_type([wxGraphicsPath/0]). %% @hidden parent_class(wxGraphicsObject) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). -%% @spec (This::wxGraphicsPath(), P::{X::float(), Y::float()}) -> ok +-type wxGraphicsPath() :: wx:wx_object(). %% @doc See external documentation. +-spec moveToPoint(This, P) -> ok when + This::wxGraphicsPath(), P::{X::float(), Y::float()}. moveToPoint(#wx_ref{type=ThisT,ref=ThisRef},{PX,PY}) when is_number(PX),is_number(PY) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_MoveToPoint_1, <>). -%% @spec (This::wxGraphicsPath(), X::float(), Y::float()) -> ok %% @doc See external documentation. +-spec moveToPoint(This, X, Y) -> ok when + This::wxGraphicsPath(), X::float(), Y::float(). moveToPoint(#wx_ref{type=ThisT,ref=ThisRef},X,Y) when is_float(X),is_float(Y) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_MoveToPoint_2, <>). -%% @spec (This::wxGraphicsPath(), C::{X::float(), Y::float()}, R::float(), StartAngle::float(), EndAngle::float(), Clockwise::bool()) -> ok %% @doc See external documentation. +-spec addArc(This, C, R, StartAngle, EndAngle, Clockwise) -> ok when + This::wxGraphicsPath(), C::{X::float(), Y::float()}, R::float(), StartAngle::float(), EndAngle::float(), Clockwise::boolean(). addArc(#wx_ref{type=ThisT,ref=ThisRef},{CX,CY},R,StartAngle,EndAngle,Clockwise) when is_number(CX),is_number(CY),is_float(R),is_float(StartAngle),is_float(EndAngle),is_boolean(Clockwise) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_AddArc_5, <>). -%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), R::float(), StartAngle::float(), EndAngle::float(), Clockwise::bool()) -> ok %% @doc See external documentation. +-spec addArc(This, X, Y, R, StartAngle, EndAngle, Clockwise) -> ok when + This::wxGraphicsPath(), X::float(), Y::float(), R::float(), StartAngle::float(), EndAngle::float(), Clockwise::boolean(). addArc(#wx_ref{type=ThisT,ref=ThisRef},X,Y,R,StartAngle,EndAngle,Clockwise) when is_float(X),is_float(Y),is_float(R),is_float(StartAngle),is_float(EndAngle),is_boolean(Clockwise) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_AddArc_6, <>). -%% @spec (This::wxGraphicsPath(), X1::float(), Y1::float(), X2::float(), Y2::float(), R::float()) -> ok %% @doc See external documentation. +-spec addArcToPoint(This, X1, Y1, X2, Y2, R) -> ok when + This::wxGraphicsPath(), X1::float(), Y1::float(), X2::float(), Y2::float(), R::float(). addArcToPoint(#wx_ref{type=ThisT,ref=ThisRef},X1,Y1,X2,Y2,R) when is_float(X1),is_float(Y1),is_float(X2),is_float(Y2),is_float(R) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_AddArcToPoint, <>). -%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), R::float()) -> ok %% @doc See external documentation. +-spec addCircle(This, X, Y, R) -> ok when + This::wxGraphicsPath(), X::float(), Y::float(), R::float(). addCircle(#wx_ref{type=ThisT,ref=ThisRef},X,Y,R) when is_float(X),is_float(Y),is_float(R) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_AddCircle, <>). -%% @spec (This::wxGraphicsPath(), C1::{X::float(), Y::float()}, C2::{X::float(), Y::float()}, E::{X::float(), Y::float()}) -> ok %% @doc See external documentation. +-spec addCurveToPoint(This, C1, C2, E) -> ok when + This::wxGraphicsPath(), C1::{X::float(), Y::float()}, C2::{X::float(), Y::float()}, E::{X::float(), Y::float()}. addCurveToPoint(#wx_ref{type=ThisT,ref=ThisRef},{C1X,C1Y},{C2X,C2Y},{EX,EY}) when is_number(C1X),is_number(C1Y),is_number(C2X),is_number(C2Y),is_number(EX),is_number(EY) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_AddCurveToPoint_3, <>). -%% @spec (This::wxGraphicsPath(), Cx1::float(), Cy1::float(), Cx2::float(), Cy2::float(), X::float(), Y::float()) -> ok %% @doc See external documentation. +-spec addCurveToPoint(This, Cx1, Cy1, Cx2, Cy2, X, Y) -> ok when + This::wxGraphicsPath(), Cx1::float(), Cy1::float(), Cx2::float(), Cy2::float(), X::float(), Y::float(). addCurveToPoint(#wx_ref{type=ThisT,ref=ThisRef},Cx1,Cy1,Cx2,Cy2,X,Y) when is_float(Cx1),is_float(Cy1),is_float(Cx2),is_float(Cy2),is_float(X),is_float(Y) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_AddCurveToPoint_6, <>). -%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float()) -> ok %% @doc See external documentation. +-spec addEllipse(This, X, Y, W, H) -> ok when + This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float(). addEllipse(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H) when is_float(X),is_float(Y),is_float(W),is_float(H) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_AddEllipse, <>). -%% @spec (This::wxGraphicsPath(), P::{X::float(), Y::float()}) -> ok %% @doc See external documentation. +-spec addLineToPoint(This, P) -> ok when + This::wxGraphicsPath(), P::{X::float(), Y::float()}. addLineToPoint(#wx_ref{type=ThisT,ref=ThisRef},{PX,PY}) when is_number(PX),is_number(PY) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_AddLineToPoint_1, <>). -%% @spec (This::wxGraphicsPath(), X::float(), Y::float()) -> ok %% @doc See external documentation. +-spec addLineToPoint(This, X, Y) -> ok when + This::wxGraphicsPath(), X::float(), Y::float(). addLineToPoint(#wx_ref{type=ThisT,ref=ThisRef},X,Y) when is_float(X),is_float(Y) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_AddLineToPoint_2, <>). -%% @spec (This::wxGraphicsPath(), Path::wxGraphicsPath()) -> ok %% @doc See external documentation. +-spec addPath(This, Path) -> ok when + This::wxGraphicsPath(), Path::wxGraphicsPath(). addPath(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PathT,ref=PathRef}) -> ?CLASS(ThisT,wxGraphicsPath), ?CLASS(PathT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_AddPath, <>). -%% @spec (This::wxGraphicsPath(), Cx::float(), Cy::float(), X::float(), Y::float()) -> ok %% @doc See external documentation. +-spec addQuadCurveToPoint(This, Cx, Cy, X, Y) -> ok when + This::wxGraphicsPath(), Cx::float(), Cy::float(), X::float(), Y::float(). addQuadCurveToPoint(#wx_ref{type=ThisT,ref=ThisRef},Cx,Cy,X,Y) when is_float(Cx),is_float(Cy),is_float(X),is_float(Y) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_AddQuadCurveToPoint, <>). -%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float()) -> ok %% @doc See external documentation. +-spec addRectangle(This, X, Y, W, H) -> ok when + This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float(). addRectangle(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H) when is_float(X),is_float(Y),is_float(W),is_float(H) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_AddRectangle, <>). -%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float(), Radius::float()) -> ok %% @doc See external documentation. +-spec addRoundedRectangle(This, X, Y, W, H, Radius) -> ok when + This::wxGraphicsPath(), X::float(), Y::float(), W::float(), H::float(), Radius::float(). addRoundedRectangle(#wx_ref{type=ThisT,ref=ThisRef},X,Y,W,H,Radius) when is_float(X),is_float(Y),is_float(W),is_float(H),is_float(Radius) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_AddRoundedRectangle, <>). -%% @spec (This::wxGraphicsPath()) -> ok %% @doc See external documentation. +-spec closeSubpath(This) -> ok when + This::wxGraphicsPath(). closeSubpath(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:cast(?wxGraphicsPath_CloseSubpath, <>). -%% @spec (This::wxGraphicsPath(), C::{X::float(), Y::float()}) -> bool() %% @equiv contains(This,C, []) +-spec contains(This, C) -> boolean() when + This::wxGraphicsPath(), C::{X::float(), Y::float()}. + contains(This,C={CX,CY}) when is_record(This, wx_ref),is_number(CX),is_number(CY) -> contains(This,C, []). -%% @spec (This::wxGraphicsPath(),X::float()|term(),X::float()|term()) -> bool() %% @doc See external documentation. -%%
Alternatives: -%%

-%% contains(This::wxGraphicsPath(), X::float(), Y::float()) -> contains(This,X,Y, [])

-%%

-%% contains(This::wxGraphicsPath(), C::{X::float(), Y::float()}, [Option]) -> bool() -%%
Option = {fillStyle, integer()} -%%

+-spec contains(This, X, Y) -> boolean() when + This::wxGraphicsPath(), X::float(), Y::float(); + (This, C, [Option]) -> boolean() when + This::wxGraphicsPath(), C::{X::float(), Y::float()}, + Option :: {fillStyle, integer()}. contains(This,X,Y) when is_record(This, wx_ref),is_float(X),is_float(Y) -> @@ -195,9 +212,10 @@ contains(#wx_ref{type=ThisT,ref=ThisRef},{CX,CY}, Options) wxe_util:call(?wxGraphicsPath_Contains_2, <>). -%% @spec (This::wxGraphicsPath(), X::float(), Y::float(), [Option]) -> bool() -%% Option = {fillStyle, integer()} %% @doc See external documentation. +-spec contains(This, X, Y, [Option]) -> boolean() when + This::wxGraphicsPath(), X::float(), Y::float(), + Option :: {fillStyle, integer()}. contains(#wx_ref{type=ThisT,ref=ThisRef},X,Y, Options) when is_float(X),is_float(Y),is_list(Options) -> ?CLASS(ThisT,wxGraphicsPath), @@ -207,22 +225,25 @@ contains(#wx_ref{type=ThisT,ref=ThisRef},X,Y, Options) wxe_util:call(?wxGraphicsPath_Contains_3, <>). -%% @spec (This::wxGraphicsPath()) -> {X::float(), Y::float(), W::float(), H::float()} %% @doc See external documentation. +-spec getBox(This) -> {X::float(), Y::float(), W::float(), H::float()} when + This::wxGraphicsPath(). getBox(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:call(?wxGraphicsPath_GetBox, <>). -%% @spec (This::wxGraphicsPath()) -> {X::float(), Y::float()} %% @doc See external documentation. +-spec getCurrentPoint(This) -> {X::float(), Y::float()} when + This::wxGraphicsPath(). getCurrentPoint(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGraphicsPath), wxe_util:call(?wxGraphicsPath_GetCurrentPoint, <>). -%% @spec (This::wxGraphicsPath(), Matrix::wxGraphicsMatrix:wxGraphicsMatrix()) -> ok %% @doc See external documentation. +-spec transform(This, Matrix) -> ok when + This::wxGraphicsPath(), Matrix::wxGraphicsMatrix:wxGraphicsMatrix(). transform(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MatrixT,ref=MatrixRef}) -> ?CLASS(ThisT,wxGraphicsPath), ?CLASS(MatrixT,wxGraphicsMatrix), -- cgit v1.2.3