1%% 2%% %CopyrightBegin% 3%% 4%% Copyright Ericsson AB 2008-2020. All Rights Reserved. 5%% 6%% Licensed under the Apache License, Version 2.0 (the "License"); 7%% you may not use this file except in compliance with the License. 8%% You may obtain a copy of the License at 9%% 10%% http://www.apache.org/licenses/LICENSE-2.0 11%% 12%% Unless required by applicable law or agreed to in writing, software 13%% distributed under the License is distributed on an "AS IS" BASIS, 14%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15%% See the License for the specific language governing permissions and 16%% limitations under the License. 17%% 18%% %CopyrightEnd% 19%% This file is generated DO NOT EDIT 20 21-module(wxBufferedPaintDC). 22-include("wxe.hrl"). 23-export([destroy/1,new/1,new/2,new/3]). 24 25%% inherited exports 26-export([blit/5,blit/6,calcBoundingBox/3,clear/1,crossHair/2,destroyClippingRegion/1, 27 deviceToLogicalX/2,deviceToLogicalXRel/2,deviceToLogicalY/2,deviceToLogicalYRel/2, 28 drawArc/4,drawBitmap/3,drawBitmap/4,drawCheckMark/2,drawCircle/3,drawEllipse/2, 29 drawEllipse/3,drawEllipticArc/5,drawIcon/3,drawLabel/3,drawLabel/4, 30 drawLine/3,drawLines/2,drawLines/3,drawPoint/2,drawPolygon/2,drawPolygon/3, 31 drawRectangle/2,drawRectangle/3,drawRotatedText/4,drawRoundedRectangle/3, 32 drawRoundedRectangle/4,drawText/3,endDoc/1,endPage/1,floodFill/3,floodFill/4, 33 getBackground/1,getBackgroundMode/1,getBrush/1,getCharHeight/1,getCharWidth/1, 34 getClippingBox/1,getFont/1,getLayoutDirection/1,getLogicalFunction/1, 35 getMapMode/1,getMultiLineTextExtent/2,getMultiLineTextExtent/3,getPPI/1, 36 getPartialTextExtents/2,getPen/1,getPixel/2,getSize/1,getSizeMM/1, 37 getTextBackground/1,getTextExtent/2,getTextExtent/3,getTextForeground/1, 38 getUserScale/1,gradientFillConcentric/4,gradientFillConcentric/5, 39 gradientFillLinear/4,gradientFillLinear/5,init/2,init/3,init/4,isOk/1, 40 logicalToDeviceX/2,logicalToDeviceXRel/2,logicalToDeviceY/2,logicalToDeviceYRel/2, 41 maxX/1,maxY/1,minX/1,minY/1,parent_class/1,resetBoundingBox/1,selectObject/2, 42 selectObjectAsSource/2,setAxisOrientation/3,setBackground/2,setBackgroundMode/2, 43 setBrush/2,setClippingRegion/2,setClippingRegion/3,setDeviceOrigin/3, 44 setFont/2,setLayoutDirection/2,setLogicalFunction/2,setMapMode/2, 45 setPalette/2,setPen/2,setTextBackground/2,setTextForeground/2,setUserScale/3, 46 startDoc/2,startPage/1]). 47 48-type wxBufferedPaintDC() :: wx:wx_object(). 49-export_type([wxBufferedPaintDC/0]). 50%% @hidden 51parent_class(wxBufferedDC) -> true; 52parent_class(wxMemoryDC) -> true; 53parent_class(wxDC) -> true; 54parent_class(_Class) -> erlang:error({badtype, ?MODULE}). 55 56%% @equiv new(Window, []) 57-spec new(Window) -> wxBufferedPaintDC() when 58 Window::wxWindow:wxWindow(). 59 60new(Window) 61 when is_record(Window, wx_ref) -> 62 new(Window, []). 63 64%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxbufferedpaintdc.html#wxbufferedpaintdcwxbufferedpaintdc">external documentation</a>. 65%% <br /> Also:<br /> 66%% new(Window, [Option]) -> wxBufferedPaintDC() when<br /> 67%% Window::wxWindow:wxWindow(),<br /> 68%% Option :: {'style', integer()}.<br /> 69%% 70-spec new(Window, Buffer) -> wxBufferedPaintDC() when 71 Window::wxWindow:wxWindow(), Buffer::wxBitmap:wxBitmap(); 72 (Window, [Option]) -> wxBufferedPaintDC() when 73 Window::wxWindow:wxWindow(), 74 Option :: {'style', integer()}. 75 76new(Window,Buffer) 77 when is_record(Window, wx_ref),is_record(Buffer, wx_ref) -> 78 new(Window,Buffer, []); 79new(#wx_ref{type=WindowT}=Window, Options) 80 when is_list(Options) -> 81 ?CLASS(WindowT,wxWindow), 82 MOpts = fun({style, _style} = Arg) -> Arg; 83 (BadOpt) -> erlang:error({badoption, BadOpt}) end, 84 Opts = lists:map(MOpts, Options), 85 wxe_util:queue_cmd(Window, Opts,?get_env(),?wxBufferedPaintDC_new_2), 86 wxe_util:rec(?wxBufferedPaintDC_new_2). 87 88%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxbufferedpaintdc.html#wxbufferedpaintdcwxbufferedpaintdc">external documentation</a>. 89-spec new(Window, Buffer, [Option]) -> wxBufferedPaintDC() when 90 Window::wxWindow:wxWindow(), Buffer::wxBitmap:wxBitmap(), 91 Option :: {'style', integer()}. 92new(#wx_ref{type=WindowT}=Window,#wx_ref{type=BufferT}=Buffer, Options) 93 when is_list(Options) -> 94 ?CLASS(WindowT,wxWindow), 95 ?CLASS(BufferT,wxBitmap), 96 MOpts = fun({style, _style} = Arg) -> Arg; 97 (BadOpt) -> erlang:error({badoption, BadOpt}) end, 98 Opts = lists:map(MOpts, Options), 99 wxe_util:queue_cmd(Window,Buffer, Opts,?get_env(),?wxBufferedPaintDC_new_3), 100 wxe_util:rec(?wxBufferedPaintDC_new_3). 101 102%% @doc Destroys this object, do not use object again 103-spec destroy(This::wxBufferedPaintDC()) -> 'ok'. 104destroy(Obj=#wx_ref{type=Type}) -> 105 ?CLASS(Type,wxBufferedPaintDC), 106 wxe_util:queue_cmd(Obj, ?get_env(), ?DESTROY_OBJECT), 107 ok. 108 %% From wxBufferedDC 109%% @hidden 110init(This,Dc,Area, Options) -> wxBufferedDC:init(This,Dc,Area, Options). 111%% @hidden 112init(This,Dc,Area) -> wxBufferedDC:init(This,Dc,Area). 113%% @hidden 114init(This,Dc) -> wxBufferedDC:init(This,Dc). 115 %% From wxMemoryDC 116%% @hidden 117selectObjectAsSource(This,Bitmap) -> wxMemoryDC:selectObjectAsSource(This,Bitmap). 118%% @hidden 119selectObject(This,Bitmap) -> wxMemoryDC:selectObject(This,Bitmap). 120 %% From wxDC 121%% @hidden 122startPage(This) -> wxDC:startPage(This). 123%% @hidden 124startDoc(This,Message) -> wxDC:startDoc(This,Message). 125%% @hidden 126setUserScale(This,XScale,YScale) -> wxDC:setUserScale(This,XScale,YScale). 127%% @hidden 128setTextForeground(This,Colour) -> wxDC:setTextForeground(This,Colour). 129%% @hidden 130setTextBackground(This,Colour) -> wxDC:setTextBackground(This,Colour). 131%% @hidden 132setPen(This,Pen) -> wxDC:setPen(This,Pen). 133%% @hidden 134setPalette(This,Palette) -> wxDC:setPalette(This,Palette). 135%% @hidden 136setMapMode(This,Mode) -> wxDC:setMapMode(This,Mode). 137%% @hidden 138setLogicalFunction(This,Function) -> wxDC:setLogicalFunction(This,Function). 139%% @hidden 140setLayoutDirection(This,Dir) -> wxDC:setLayoutDirection(This,Dir). 141%% @hidden 142setFont(This,Font) -> wxDC:setFont(This,Font). 143%% @hidden 144setDeviceOrigin(This,X,Y) -> wxDC:setDeviceOrigin(This,X,Y). 145%% @hidden 146setClippingRegion(This,Pt,Sz) -> wxDC:setClippingRegion(This,Pt,Sz). 147%% @hidden 148setClippingRegion(This,Rect) -> wxDC:setClippingRegion(This,Rect). 149%% @hidden 150setBrush(This,Brush) -> wxDC:setBrush(This,Brush). 151%% @hidden 152setBackgroundMode(This,Mode) -> wxDC:setBackgroundMode(This,Mode). 153%% @hidden 154setBackground(This,Brush) -> wxDC:setBackground(This,Brush). 155%% @hidden 156setAxisOrientation(This,XLeftRight,YBottomUp) -> wxDC:setAxisOrientation(This,XLeftRight,YBottomUp). 157%% @hidden 158resetBoundingBox(This) -> wxDC:resetBoundingBox(This). 159%% @hidden 160isOk(This) -> wxDC:isOk(This). 161%% @hidden 162minY(This) -> wxDC:minY(This). 163%% @hidden 164minX(This) -> wxDC:minX(This). 165%% @hidden 166maxY(This) -> wxDC:maxY(This). 167%% @hidden 168maxX(This) -> wxDC:maxX(This). 169%% @hidden 170logicalToDeviceYRel(This,Y) -> wxDC:logicalToDeviceYRel(This,Y). 171%% @hidden 172logicalToDeviceY(This,Y) -> wxDC:logicalToDeviceY(This,Y). 173%% @hidden 174logicalToDeviceXRel(This,X) -> wxDC:logicalToDeviceXRel(This,X). 175%% @hidden 176logicalToDeviceX(This,X) -> wxDC:logicalToDeviceX(This,X). 177%% @hidden 178gradientFillLinear(This,Rect,InitialColour,DestColour, Options) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour, Options). 179%% @hidden 180gradientFillLinear(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour). 181%% @hidden 182gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter). 183%% @hidden 184gradientFillConcentric(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour). 185%% @hidden 186getUserScale(This) -> wxDC:getUserScale(This). 187%% @hidden 188getTextForeground(This) -> wxDC:getTextForeground(This). 189%% @hidden 190getTextExtent(This,String, Options) -> wxDC:getTextExtent(This,String, Options). 191%% @hidden 192getTextExtent(This,String) -> wxDC:getTextExtent(This,String). 193%% @hidden 194getTextBackground(This) -> wxDC:getTextBackground(This). 195%% @hidden 196getSizeMM(This) -> wxDC:getSizeMM(This). 197%% @hidden 198getSize(This) -> wxDC:getSize(This). 199%% @hidden 200getPPI(This) -> wxDC:getPPI(This). 201%% @hidden 202getPixel(This,Pos) -> wxDC:getPixel(This,Pos). 203%% @hidden 204getPen(This) -> wxDC:getPen(This). 205%% @hidden 206getPartialTextExtents(This,Text) -> wxDC:getPartialTextExtents(This,Text). 207%% @hidden 208getMultiLineTextExtent(This,String, Options) -> wxDC:getMultiLineTextExtent(This,String, Options). 209%% @hidden 210getMultiLineTextExtent(This,String) -> wxDC:getMultiLineTextExtent(This,String). 211%% @hidden 212getMapMode(This) -> wxDC:getMapMode(This). 213%% @hidden 214getLogicalFunction(This) -> wxDC:getLogicalFunction(This). 215%% @hidden 216getLayoutDirection(This) -> wxDC:getLayoutDirection(This). 217%% @hidden 218getFont(This) -> wxDC:getFont(This). 219%% @hidden 220getClippingBox(This) -> wxDC:getClippingBox(This). 221%% @hidden 222getCharWidth(This) -> wxDC:getCharWidth(This). 223%% @hidden 224getCharHeight(This) -> wxDC:getCharHeight(This). 225%% @hidden 226getBrush(This) -> wxDC:getBrush(This). 227%% @hidden 228getBackgroundMode(This) -> wxDC:getBackgroundMode(This). 229%% @hidden 230getBackground(This) -> wxDC:getBackground(This). 231%% @hidden 232floodFill(This,Pt,Col, Options) -> wxDC:floodFill(This,Pt,Col, Options). 233%% @hidden 234floodFill(This,Pt,Col) -> wxDC:floodFill(This,Pt,Col). 235%% @hidden 236endPage(This) -> wxDC:endPage(This). 237%% @hidden 238endDoc(This) -> wxDC:endDoc(This). 239%% @hidden 240drawText(This,Text,Pt) -> wxDC:drawText(This,Text,Pt). 241%% @hidden 242drawRoundedRectangle(This,Pt,Sz,Radius) -> wxDC:drawRoundedRectangle(This,Pt,Sz,Radius). 243%% @hidden 244drawRoundedRectangle(This,Rect,Radius) -> wxDC:drawRoundedRectangle(This,Rect,Radius). 245%% @hidden 246drawRotatedText(This,Text,Point,Angle) -> wxDC:drawRotatedText(This,Text,Point,Angle). 247%% @hidden 248drawRectangle(This,Pt,Sz) -> wxDC:drawRectangle(This,Pt,Sz). 249%% @hidden 250drawRectangle(This,Rect) -> wxDC:drawRectangle(This,Rect). 251%% @hidden 252drawPoint(This,Pt) -> wxDC:drawPoint(This,Pt). 253%% @hidden 254drawPolygon(This,Points, Options) -> wxDC:drawPolygon(This,Points, Options). 255%% @hidden 256drawPolygon(This,Points) -> wxDC:drawPolygon(This,Points). 257%% @hidden 258drawLines(This,Points, Options) -> wxDC:drawLines(This,Points, Options). 259%% @hidden 260drawLines(This,Points) -> wxDC:drawLines(This,Points). 261%% @hidden 262drawLine(This,Pt1,Pt2) -> wxDC:drawLine(This,Pt1,Pt2). 263%% @hidden 264drawLabel(This,Text,Rect, Options) -> wxDC:drawLabel(This,Text,Rect, Options). 265%% @hidden 266drawLabel(This,Text,Rect) -> wxDC:drawLabel(This,Text,Rect). 267%% @hidden 268drawIcon(This,Icon,Pt) -> wxDC:drawIcon(This,Icon,Pt). 269%% @hidden 270drawEllipticArc(This,Pt,Sz,Sa,Ea) -> wxDC:drawEllipticArc(This,Pt,Sz,Sa,Ea). 271%% @hidden 272drawEllipse(This,Pt,Size) -> wxDC:drawEllipse(This,Pt,Size). 273%% @hidden 274drawEllipse(This,Rect) -> wxDC:drawEllipse(This,Rect). 275%% @hidden 276drawCircle(This,Pt,Radius) -> wxDC:drawCircle(This,Pt,Radius). 277%% @hidden 278drawCheckMark(This,Rect) -> wxDC:drawCheckMark(This,Rect). 279%% @hidden 280drawBitmap(This,Bmp,Pt, Options) -> wxDC:drawBitmap(This,Bmp,Pt, Options). 281%% @hidden 282drawBitmap(This,Bmp,Pt) -> wxDC:drawBitmap(This,Bmp,Pt). 283%% @hidden 284drawArc(This,PtStart,PtEnd,Centre) -> wxDC:drawArc(This,PtStart,PtEnd,Centre). 285%% @hidden 286deviceToLogicalYRel(This,Y) -> wxDC:deviceToLogicalYRel(This,Y). 287%% @hidden 288deviceToLogicalY(This,Y) -> wxDC:deviceToLogicalY(This,Y). 289%% @hidden 290deviceToLogicalXRel(This,X) -> wxDC:deviceToLogicalXRel(This,X). 291%% @hidden 292deviceToLogicalX(This,X) -> wxDC:deviceToLogicalX(This,X). 293%% @hidden 294destroyClippingRegion(This) -> wxDC:destroyClippingRegion(This). 295%% @hidden 296crossHair(This,Pt) -> wxDC:crossHair(This,Pt). 297%% @hidden 298clear(This) -> wxDC:clear(This). 299%% @hidden 300calcBoundingBox(This,X,Y) -> wxDC:calcBoundingBox(This,X,Y). 301%% @hidden 302blit(This,Dest,Size,Source,Src, Options) -> wxDC:blit(This,Dest,Size,Source,Src, Options). 303%% @hidden 304blit(This,Dest,Size,Source,Src) -> wxDC:blit(This,Dest,Size,Source,Src). 305