%% %% %CopyrightBegin% %% %% Copyright Ericsson AB 2008-2009. 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 %% compliance with the License. You should have received a copy of the %% Erlang Public License along with this software. If not, it can be %% retrieved online at http://www.erlang.org/. %% %% Software distributed under the License is distributed on an "AS IS" %% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See %% the License for the specific language governing rights and limitations %% under the License. %% %% %CopyrightEnd% %% This file is generated DO NOT EDIT %% @doc See external documentation: wxGraphicsContext. %%

This class is derived (and can use functions) from: %%
{@link wxGraphicsObject} %%

%% @type wxGraphicsContext(). An object reference, The representation is internal %% and can be changed without notice. It can't be used for comparsion %% stored on disc or distributed for use on other nodes. -module(wxGraphicsContext). -include("wxe.hrl"). -export([clip/2,clip/5,concatTransform/2,create/0,create/1,createBrush/2,createFont/2, createFont/3,createLinearGradientBrush/7,createMatrix/1,createMatrix/2, createPath/1,createPen/2,createRadialGradientBrush/8,drawBitmap/6, drawEllipse/5,drawIcon/6,drawLines/3,drawLines/4,drawPath/2,drawPath/3, drawRectangle/5,drawRoundedRectangle/6,drawText/4,drawText/5,drawText/6, fillPath/2,fillPath/3,getNativeContext/1,getPartialTextExtents/3, getTextExtent/2,getTransform/1,resetClip/1,rotate/2,scale/3,setBrush/2, setFont/2,setFont/3,setPen/2,setTransform/2,strokeLine/5,strokeLines/3, strokeLines/4,strokePath/2,translate/3]). %% inherited exports -export([getRenderer/1,isNull/1,parent_class/1]). %% @hidden parent_class(wxGraphicsObject) -> true; parent_class(_Class) -> erlang:error({badtype, ?MODULE}). %% @spec () -> wxGraphicsContext() %% @doc See external documentation. create() -> wxe_util:call(?wxGraphicsContext_Create_0, <<>>). %% @spec (Dc::wxWindowDC:wxWindowDC() | wxWindow:wxWindow()) -> wxGraphicsContext() %% @doc See external documentation. create(#wx_ref{type=DcT,ref=DcRef}) -> DcOP = case ?CLASS_T(DcT,wxWindowDC) of true -> ?wxGraphicsContext_Create_1_1; _ -> ?CLASS(DcT,wxWindow), ?wxGraphicsContext_Create_1_0 end, wxe_util:call(DcOP, <>). %% @spec (This::wxGraphicsContext(), Pen::wxPen:wxPen()) -> wxGraphicsPen:wxGraphicsPen() %% @doc See external documentation. createPen(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PenT,ref=PenRef}) -> ?CLASS(ThisT,wxGraphicsContext), ?CLASS(PenT,wxPen), wxe_util:call(?wxGraphicsContext_CreatePen, <>). %% @spec (This::wxGraphicsContext(), Brush::wxBrush:wxBrush()) -> wxGraphicsBrush:wxGraphicsBrush() %% @doc See external documentation. createBrush(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BrushT,ref=BrushRef}) -> ?CLASS(ThisT,wxGraphicsContext), ?CLASS(BrushT,wxBrush), wxe_util:call(?wxGraphicsContext_CreateBrush, <>). %% @spec (This::wxGraphicsContext(), Xo::float(), Yo::float(), Xc::float(), Yc::float(), Radius::float(), OColor::wx:colour(), CColor::wx:colour()) -> wxGraphicsBrush:wxGraphicsBrush() %% @doc See external documentation. createRadialGradientBrush(#wx_ref{type=ThisT,ref=ThisRef},Xo,Yo,Xc,Yc,Radius,OColor,CColor) when is_float(Xo),is_float(Yo),is_float(Xc),is_float(Yc),is_float(Radius),tuple_size(OColor) =:= 3; tuple_size(OColor) =:= 4,tuple_size(CColor) =:= 3; tuple_size(CColor) =:= 4 -> ?CLASS(ThisT,wxGraphicsContext), wxe_util:call(?wxGraphicsContext_CreateRadialGradientBrush, <>). %% @spec (This::wxGraphicsContext(), X1::float(), Y1::float(), X2::float(), Y2::float(), C1::wx:colour(), C2::wx:colour()) -> wxGraphicsBrush:wxGraphicsBrush() %% @doc See external documentation. createLinearGradientBrush(#wx_ref{type=ThisT,ref=ThisRef},X1,Y1,X2,Y2,C1,C2) when is_float(X1),is_float(Y1),is_float(X2),is_float(Y2),tuple_size(C1) =:= 3; tuple_size(C1) =:= 4,tuple_size(C2) =:= 3; tuple_size(C2) =:= 4 -> ?CLASS(ThisT,wxGraphicsContext), wxe_util:call(?wxGraphicsContext_CreateLinearGradientBrush, <>). %% @spec (This::wxGraphicsContext(), Font::wxFont:wxFont()) -> wxGraphicsFont:wxGraphicsFont() %% @equiv createFont(This,Font, []) createFont(This,Font) when is_record(This, wx_ref),is_record(Font, wx_ref) -> createFont(This,Font, []). %% @spec (This::wxGraphicsContext(), Font::wxFont:wxFont(), [Option]) -> wxGraphicsFont:wxGraphicsFont() %% Option = {col, wx:colour()} %% @doc See external documentation. createFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGraphicsContext), ?CLASS(FontT,wxFont), MOpts = fun({col, Col}, Acc) -> [<<1:32/?UI,(wxe_util:colour_bin(Col)):16/binary,0:32>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxGraphicsContext_CreateFont, <>). %% @spec (This::wxGraphicsContext()) -> wxGraphicsMatrix:wxGraphicsMatrix() %% @equiv createMatrix(This, []) createMatrix(This) when is_record(This, wx_ref) -> createMatrix(This, []). %% @spec (This::wxGraphicsContext(), [Option]) -> wxGraphicsMatrix:wxGraphicsMatrix() %% Option = {a, float()} | {b, float()} | {c, float()} | {d, float()} | {tx, float()} | {ty, float()} %% @doc See external documentation. createMatrix(#wx_ref{type=ThisT,ref=ThisRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGraphicsContext), MOpts = fun({a, A}, Acc) -> [<<1:32/?UI,0:32,A:64/?F>>|Acc]; ({b, B}, Acc) -> [<<2:32/?UI,0:32,B:64/?F>>|Acc]; ({c, C}, Acc) -> [<<3:32/?UI,0:32,C:64/?F>>|Acc]; ({d, D}, Acc) -> [<<4:32/?UI,0:32,D:64/?F>>|Acc]; ({tx, Tx}, Acc) -> [<<5:32/?UI,0:32,Tx:64/?F>>|Acc]; ({ty, Ty}, Acc) -> [<<6:32/?UI,0:32,Ty:64/?F>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:call(?wxGraphicsContext_CreateMatrix, <>). %% @spec (This::wxGraphicsContext()) -> wxGraphicsPath:wxGraphicsPath() %% @doc See external documentation. createPath(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGraphicsContext), wxe_util:call(?wxGraphicsContext_CreatePath, <>). %% @spec (This::wxGraphicsContext(), Region::wxRegion:wxRegion()) -> ok %% @doc See external documentation. clip(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RegionT,ref=RegionRef}) -> ?CLASS(ThisT,wxGraphicsContext), ?CLASS(RegionT,wxRegion), wxe_util:cast(?wxGraphicsContext_Clip_1, <>). %% @spec (This::wxGraphicsContext(), X::float(), Y::float(), W::float(), H::float()) -> ok %% @doc See external documentation. clip(#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,wxGraphicsContext), wxe_util:cast(?wxGraphicsContext_Clip_4, <>). %% @spec (This::wxGraphicsContext()) -> ok %% @doc See external documentation. resetClip(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGraphicsContext), wxe_util:cast(?wxGraphicsContext_ResetClip, <>). %% @spec (This::wxGraphicsContext(), Bmp::wxBitmap:wxBitmap(), X::float(), Y::float(), W::float(), H::float()) -> ok %% @doc See external documentation. drawBitmap(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BmpT,ref=BmpRef},X,Y,W,H) when is_float(X),is_float(Y),is_float(W),is_float(H) -> ?CLASS(ThisT,wxGraphicsContext), ?CLASS(BmpT,wxBitmap), wxe_util:cast(?wxGraphicsContext_DrawBitmap, <>). %% @spec (This::wxGraphicsContext(), X::float(), Y::float(), W::float(), H::float()) -> ok %% @doc See external documentation. drawEllipse(#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,wxGraphicsContext), wxe_util:cast(?wxGraphicsContext_DrawEllipse, <>). %% @spec (This::wxGraphicsContext(), Icon::wxIcon:wxIcon(), X::float(), Y::float(), W::float(), H::float()) -> ok %% @doc See external documentation. drawIcon(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=IconT,ref=IconRef},X,Y,W,H) when is_float(X),is_float(Y),is_float(W),is_float(H) -> ?CLASS(ThisT,wxGraphicsContext), ?CLASS(IconT,wxIcon), wxe_util:cast(?wxGraphicsContext_DrawIcon, <>). %% @spec (This::wxGraphicsContext(), N::integer(), Points::{X::float(),Y::float()}) -> ok %% @equiv drawLines(This,N,Points, []) drawLines(This,N,Points={PointsX,PointsY}) when is_record(This, wx_ref),is_integer(N),is_number(PointsX),is_number(PointsY) -> drawLines(This,N,Points, []). %% @spec (This::wxGraphicsContext(), N::integer(), Points::{X::float(),Y::float()}, [Option]) -> ok %% Option = {fillStyle, integer()} %% @doc See external documentation. drawLines(#wx_ref{type=ThisT,ref=ThisRef},N,{PointsX,PointsY}, Options) when is_integer(N),is_number(PointsX),is_number(PointsY),is_list(Options) -> ?CLASS(ThisT,wxGraphicsContext), MOpts = fun({fillStyle, FillStyle}, Acc) -> [<<1:32/?UI,FillStyle:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxGraphicsContext_DrawLines, <>). %% @spec (This::wxGraphicsContext(), Path::wxGraphicsPath:wxGraphicsPath()) -> ok %% @equiv drawPath(This,Path, []) drawPath(This,Path) when is_record(This, wx_ref),is_record(Path, wx_ref) -> drawPath(This,Path, []). %% @spec (This::wxGraphicsContext(), Path::wxGraphicsPath:wxGraphicsPath(), [Option]) -> ok %% Option = {fillStyle, integer()} %% @doc See external documentation. drawPath(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PathT,ref=PathRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGraphicsContext), ?CLASS(PathT,wxGraphicsPath), MOpts = fun({fillStyle, FillStyle}, Acc) -> [<<1:32/?UI,FillStyle:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxGraphicsContext_DrawPath, <>). %% @spec (This::wxGraphicsContext(), X::float(), Y::float(), W::float(), H::float()) -> ok %% @doc See external documentation. drawRectangle(#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,wxGraphicsContext), wxe_util:cast(?wxGraphicsContext_DrawRectangle, <>). %% @spec (This::wxGraphicsContext(), X::float(), Y::float(), W::float(), H::float(), Radius::float()) -> ok %% @doc See external documentation. drawRoundedRectangle(#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,wxGraphicsContext), wxe_util:cast(?wxGraphicsContext_DrawRoundedRectangle, <>). %% @spec (This::wxGraphicsContext(), Str::string(), X::float(), Y::float()) -> ok %% @doc See external documentation. drawText(#wx_ref{type=ThisT,ref=ThisRef},Str,X,Y) when is_list(Str),is_float(X),is_float(Y) -> ?CLASS(ThisT,wxGraphicsContext), Str_UC = unicode:characters_to_binary([Str,0]), wxe_util:cast(?wxGraphicsContext_DrawText_3, <>). %% @spec (This::wxGraphicsContext(),Str::string(),X::float(),Y::float(),X::float()|term()) -> ok %% @doc See external documentation. %%
Alternatives: %%

%% drawText(This::wxGraphicsContext(), Str::string(), X::float(), Y::float(), Angle::float()) -> ok %%

%%

%% drawText(This::wxGraphicsContext(), Str::string(), X::float(), Y::float(), BackgroundBrush::wxGraphicsBrush:wxGraphicsBrush()) -> ok %%

drawText(#wx_ref{type=ThisT,ref=ThisRef},Str,X,Y,Angle) when is_list(Str),is_float(X),is_float(Y),is_float(Angle) -> ?CLASS(ThisT,wxGraphicsContext), Str_UC = unicode:characters_to_binary([Str,0]), wxe_util:cast(?wxGraphicsContext_DrawText_4_0, <>); drawText(#wx_ref{type=ThisT,ref=ThisRef},Str,X,Y,#wx_ref{type=BackgroundBrushT,ref=BackgroundBrushRef}) when is_list(Str),is_float(X),is_float(Y) -> ?CLASS(ThisT,wxGraphicsContext), Str_UC = unicode:characters_to_binary([Str,0]), ?CLASS(BackgroundBrushT,wxGraphicsBrush), wxe_util:cast(?wxGraphicsContext_DrawText_4_1, <>). %% @spec (This::wxGraphicsContext(), Str::string(), X::float(), Y::float(), Angle::float(), BackgroundBrush::wxGraphicsBrush:wxGraphicsBrush()) -> ok %% @doc See external documentation. drawText(#wx_ref{type=ThisT,ref=ThisRef},Str,X,Y,Angle,#wx_ref{type=BackgroundBrushT,ref=BackgroundBrushRef}) when is_list(Str),is_float(X),is_float(Y),is_float(Angle) -> ?CLASS(ThisT,wxGraphicsContext), Str_UC = unicode:characters_to_binary([Str,0]), ?CLASS(BackgroundBrushT,wxGraphicsBrush), wxe_util:cast(?wxGraphicsContext_DrawText_5, <>). %% @spec (This::wxGraphicsContext(), Path::wxGraphicsPath:wxGraphicsPath()) -> ok %% @equiv fillPath(This,Path, []) fillPath(This,Path) when is_record(This, wx_ref),is_record(Path, wx_ref) -> fillPath(This,Path, []). %% @spec (This::wxGraphicsContext(), Path::wxGraphicsPath:wxGraphicsPath(), [Option]) -> ok %% Option = {fillStyle, integer()} %% @doc See external documentation. fillPath(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PathT,ref=PathRef}, Options) when is_list(Options) -> ?CLASS(ThisT,wxGraphicsContext), ?CLASS(PathT,wxGraphicsPath), MOpts = fun({fillStyle, FillStyle}, Acc) -> [<<1:32/?UI,FillStyle:32/?UI>>|Acc]; (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), wxe_util:cast(?wxGraphicsContext_FillPath, <>). %% @spec (This::wxGraphicsContext(), Path::wxGraphicsPath:wxGraphicsPath()) -> ok %% @doc See external documentation. strokePath(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PathT,ref=PathRef}) -> ?CLASS(ThisT,wxGraphicsContext), ?CLASS(PathT,wxGraphicsPath), wxe_util:cast(?wxGraphicsContext_StrokePath, <>). %% @spec (This::wxGraphicsContext()) -> ok %% @doc See external documentation. getNativeContext(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGraphicsContext), wxe_util:cast(?wxGraphicsContext_GetNativeContext, <>). %% @spec (This::wxGraphicsContext(), Text::string(), Widths::[float()]) -> ok %% @doc See external documentation. getPartialTextExtents(#wx_ref{type=ThisT,ref=ThisRef},Text,Widths) when is_list(Text),is_list(Widths) -> ?CLASS(ThisT,wxGraphicsContext), Text_UC = unicode:characters_to_binary([Text,0]), wxe_util:cast(?wxGraphicsContext_GetPartialTextExtents, <> || C <- Widths>>)/binary>>). %% @spec (This::wxGraphicsContext(), Text::string()) -> {Width::float(),Height::float(),Descent::float(),ExternalLeading::float()} %% @doc See external documentation. getTextExtent(#wx_ref{type=ThisT,ref=ThisRef},Text) when is_list(Text) -> ?CLASS(ThisT,wxGraphicsContext), Text_UC = unicode:characters_to_binary([Text,0]), wxe_util:call(?wxGraphicsContext_GetTextExtent, <>). %% @spec (This::wxGraphicsContext(), Angle::float()) -> ok %% @doc See external documentation. rotate(#wx_ref{type=ThisT,ref=ThisRef},Angle) when is_float(Angle) -> ?CLASS(ThisT,wxGraphicsContext), wxe_util:cast(?wxGraphicsContext_Rotate, <>). %% @spec (This::wxGraphicsContext(), XScale::float(), YScale::float()) -> ok %% @doc See external documentation. scale(#wx_ref{type=ThisT,ref=ThisRef},XScale,YScale) when is_float(XScale),is_float(YScale) -> ?CLASS(ThisT,wxGraphicsContext), wxe_util:cast(?wxGraphicsContext_Scale, <>). %% @spec (This::wxGraphicsContext(), Dx::float(), Dy::float()) -> ok %% @doc See external documentation. translate(#wx_ref{type=ThisT,ref=ThisRef},Dx,Dy) when is_float(Dx),is_float(Dy) -> ?CLASS(ThisT,wxGraphicsContext), wxe_util:cast(?wxGraphicsContext_Translate, <>). %% @spec (This::wxGraphicsContext()) -> wxGraphicsMatrix:wxGraphicsMatrix() %% @doc See external documentation. getTransform(#wx_ref{type=ThisT,ref=ThisRef}) -> ?CLASS(ThisT,wxGraphicsContext), wxe_util:call(?wxGraphicsContext_GetTransform, <>). %% @spec (This::wxGraphicsContext(), Matrix::wxGraphicsMatrix:wxGraphicsMatrix()) -> ok %% @doc See external documentation. setTransform(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MatrixT,ref=MatrixRef}) -> ?CLASS(ThisT,wxGraphicsContext), ?CLASS(MatrixT,wxGraphicsMatrix), wxe_util:cast(?wxGraphicsContext_SetTransform, <>). %% @spec (This::wxGraphicsContext(), Matrix::wxGraphicsMatrix:wxGraphicsMatrix()) -> ok %% @doc See external documentation. concatTransform(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=MatrixT,ref=MatrixRef}) -> ?CLASS(ThisT,wxGraphicsContext), ?CLASS(MatrixT,wxGraphicsMatrix), wxe_util:cast(?wxGraphicsContext_ConcatTransform, <>). %% @spec (This::wxGraphicsContext(), Brush::wxGraphicsBrush:wxGraphicsBrush() | wxBrush:wxBrush()) -> ok %% @doc See external documentation. setBrush(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=BrushT,ref=BrushRef}) -> ?CLASS(ThisT,wxGraphicsContext), BrushOP = case ?CLASS_T(BrushT,wxGraphicsBrush) of true -> ?wxGraphicsContext_SetBrush_1_1; _ -> ?CLASS(BrushT,wxBrush), ?wxGraphicsContext_SetBrush_1_0 end, wxe_util:cast(BrushOP, <>). %% @spec (This::wxGraphicsContext(), Font::wxGraphicsFont:wxGraphicsFont()) -> ok %% @doc See external documentation. setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) -> ?CLASS(ThisT,wxGraphicsContext), ?CLASS(FontT,wxGraphicsFont), wxe_util:cast(?wxGraphicsContext_SetFont_1, <>). %% @spec (This::wxGraphicsContext(), Font::wxFont:wxFont(), Colour::wx:colour()) -> ok %% @doc See external documentation. setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef},Colour) when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 -> ?CLASS(ThisT,wxGraphicsContext), ?CLASS(FontT,wxFont), wxe_util:cast(?wxGraphicsContext_SetFont_2, <>). %% @spec (This::wxGraphicsContext(), Pen::wxPen:wxPen() | wxGraphicsPen:wxGraphicsPen()) -> ok %% @doc See external documentation. setPen(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PenT,ref=PenRef}) -> ?CLASS(ThisT,wxGraphicsContext), PenOP = case ?CLASS_T(PenT,wxPen) of true -> ?wxGraphicsContext_SetPen_1_1; _ -> ?CLASS(PenT,wxGraphicsPen), ?wxGraphicsContext_SetPen_1_0 end, wxe_util:cast(PenOP, <>). %% @spec (This::wxGraphicsContext(), X1::float(), Y1::float(), X2::float(), Y2::float()) -> ok %% @doc See external documentation. strokeLine(#wx_ref{type=ThisT,ref=ThisRef},X1,Y1,X2,Y2) when is_float(X1),is_float(Y1),is_float(X2),is_float(Y2) -> ?CLASS(ThisT,wxGraphicsContext), wxe_util:cast(?wxGraphicsContext_StrokeLine, <>). %% @spec (This::wxGraphicsContext(), N::integer(), Points::{X::float(),Y::float()}) -> ok %% @doc See external documentation. strokeLines(#wx_ref{type=ThisT,ref=ThisRef},N,{PointsX,PointsY}) when is_integer(N),is_number(PointsX),is_number(PointsY) -> ?CLASS(ThisT,wxGraphicsContext), wxe_util:cast(?wxGraphicsContext_StrokeLines_2, <>). %% @spec (This::wxGraphicsContext(), N::integer(), BeginPoints::{X::float(),Y::float()}, EndPoints::{X::float(),Y::float()}) -> ok %% @doc See external documentation. strokeLines(#wx_ref{type=ThisT,ref=ThisRef},N,{BeginPointsX,BeginPointsY},{EndPointsX,EndPointsY}) when is_integer(N),is_number(BeginPointsX),is_number(BeginPointsY),is_number(EndPointsX),is_number(EndPointsY) -> ?CLASS(ThisT,wxGraphicsContext), wxe_util:cast(?wxGraphicsContext_StrokeLines_3, <>). %% From wxGraphicsObject %% @hidden isNull(This) -> wxGraphicsObject:isNull(This). %% @hidden getRenderer(This) -> wxGraphicsObject:getRenderer(This).