4
%% Copyright Ericsson AB 2008-2009. All Rights Reserved.
6
%% The contents of this file are subject to the Erlang Public License,
7
%% Version 1.1, (the "License"); you may not use this file except in
8
%% compliance with the License. You should have received a copy of the
9
%% Erlang Public License along with this software. If not, it can be
10
%% retrieved online at http://www.erlang.org/.
12
%% Software distributed under the License is distributed on an "AS IS"
13
%% basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
14
%% the License for the specific language governing rights and limitations
18
%% This file is generated DO NOT EDIT
20
%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbufferedpaintdc.html">wxBufferedPaintDC</a>.
21
%% <p>This class is derived (and can use functions) from:
22
%% <br />{@link wxBufferedDC}
23
%% <br />{@link wxMemoryDC}
26
%% @type wxBufferedPaintDC(). An object reference, The representation is internal
27
%% and can be changed without notice. It can't be used for comparsion
28
%% stored on disc or distributed for use on other nodes.
30
-module(wxBufferedPaintDC).
32
-export([destroy/1,new/1,new/2,new/3]).
35
-export([blit/5,blit/6,calcBoundingBox/3,clear/1,computeScaleAndOrigin/1,crossHair/2,
36
destroyClippingRegion/1,deviceToLogicalX/2,deviceToLogicalXRel/2,
37
deviceToLogicalY/2,deviceToLogicalYRel/2,drawArc/4,drawBitmap/3,drawBitmap/4,
38
drawCheckMark/2,drawCircle/3,drawEllipse/2,drawEllipse/3,drawEllipticArc/5,
39
drawIcon/3,drawLabel/3,drawLabel/4,drawLine/3,drawLines/2,drawLines/3,
40
drawPoint/2,drawPolygon/2,drawPolygon/3,drawRectangle/2,drawRectangle/3,
41
drawRotatedText/4,drawRoundedRectangle/3,drawRoundedRectangle/4,
42
drawText/3,endDoc/1,endPage/1,floodFill/3,floodFill/4,getBackground/1,
43
getBackgroundMode/1,getBrush/1,getCharHeight/1,getCharWidth/1,getClippingBox/2,
44
getFont/1,getLayoutDirection/1,getLogicalFunction/1,getMapMode/1,
45
getMultiLineTextExtent/2,getMultiLineTextExtent/3,getPPI/1,getPartialTextExtents/3,
46
getPen/1,getPixel/3,getSize/1,getSizeMM/1,getTextBackground/1,getTextExtent/2,
47
getTextExtent/3,getTextForeground/1,getUserScale/1,gradientFillConcentric/4,
48
gradientFillConcentric/5,gradientFillLinear/4,gradientFillLinear/5,
49
init/2,init/3,init/4,isOk/1,logicalToDeviceX/2,logicalToDeviceXRel/2,
50
logicalToDeviceY/2,logicalToDeviceYRel/2,maxX/1,maxY/1,minX/1,minY/1,
51
parent_class/1,resetBoundingBox/1,selectObject/2,selectObjectAsSource/2,
52
setAxisOrientation/3,setBackground/2,setBackgroundMode/2,setBrush/2,
53
setClippingRegion/2,setClippingRegion/3,setDeviceOrigin/3,setFont/2,
54
setLayoutDirection/2,setLogicalFunction/2,setMapMode/2,setPalette/2,
55
setPen/2,setTextBackground/2,setTextForeground/2,setUserScale/3,startDoc/2,
59
parent_class(wxBufferedDC) -> true;
60
parent_class(wxMemoryDC) -> true;
61
parent_class(wxDC) -> true;
62
parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
64
%% @spec (Window::wxWindow:wxWindow()) -> wxBufferedPaintDC()
65
%% @equiv new(Window, [])
67
when is_record(Window, wx_ref) ->
70
%% @spec (Window::wxWindow:wxWindow(),X::term()) -> wxBufferedPaintDC()
71
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbufferedpaintdc.html#wxbufferedpaintdcwxbufferedpaintdc">external documentation</a>.
72
%% <br /> Alternatives:
74
%% new(Window::wxWindow:wxWindow(), Buffer::wxBitmap:wxBitmap()) -> new(Window,Buffer, []) </c></p>
76
%% new(Window::wxWindow:wxWindow(), [Option]) -> wxBufferedPaintDC() </c>
77
%%<br /> Option = {style, integer()}
81
when is_record(Window, wx_ref),is_record(Buffer, wx_ref) ->
82
new(Window,Buffer, []);
83
new(#wx_ref{type=WindowT,ref=WindowRef}, Options)
84
when is_list(Options) ->
85
?CLASS(WindowT,wxWindow),
86
MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
87
(BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
88
BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
89
wxe_util:construct(?wxBufferedPaintDC_new_2,
90
<<WindowRef:32/?UI, 0:32,BinOpt/binary>>).
92
%% @spec (Window::wxWindow:wxWindow(), Buffer::wxBitmap:wxBitmap(), [Option]) -> wxBufferedPaintDC()
93
%% Option = {style, integer()}
94
%% @doc See <a href="http://www.wxwidgets.org/manuals/stable/wx_wxbufferedpaintdc.html#wxbufferedpaintdcwxbufferedpaintdc">external documentation</a>.
95
new(#wx_ref{type=WindowT,ref=WindowRef},#wx_ref{type=BufferT,ref=BufferRef}, Options)
96
when is_list(Options) ->
97
?CLASS(WindowT,wxWindow),
98
?CLASS(BufferT,wxBitmap),
99
MOpts = fun({style, Style}, Acc) -> [<<1:32/?UI,Style:32/?UI>>|Acc];
100
(BadOpt, _) -> erlang:error({badoption, BadOpt}) end,
101
BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)),
102
wxe_util:construct(?wxBufferedPaintDC_new_3,
103
<<WindowRef:32/?UI,BufferRef:32/?UI, BinOpt/binary>>).
105
%% @spec (This::wxBufferedPaintDC()) -> ok
106
%% @doc Destroys this object, do not use object again
107
destroy(Obj=#wx_ref{type=Type}) ->
108
?CLASS(Type,wxBufferedPaintDC),
109
wxe_util:destroy(?DESTROY_OBJECT,Obj),
113
init(This,Dc,Area, Options) -> wxBufferedDC:init(This,Dc,Area, Options).
115
init(This,Dc,Area) -> wxBufferedDC:init(This,Dc,Area).
117
init(This,Dc) -> wxBufferedDC:init(This,Dc).
120
selectObjectAsSource(This,Bmp) -> wxMemoryDC:selectObjectAsSource(This,Bmp).
122
selectObject(This,Bmp) -> wxMemoryDC:selectObject(This,Bmp).
125
startPage(This) -> wxDC:startPage(This).
127
startDoc(This,Message) -> wxDC:startDoc(This,Message).
129
setUserScale(This,X,Y) -> wxDC:setUserScale(This,X,Y).
131
setTextForeground(This,Colour) -> wxDC:setTextForeground(This,Colour).
133
setTextBackground(This,Colour) -> wxDC:setTextBackground(This,Colour).
135
setPen(This,Pen) -> wxDC:setPen(This,Pen).
137
setPalette(This,Palette) -> wxDC:setPalette(This,Palette).
139
setMapMode(This,Mode) -> wxDC:setMapMode(This,Mode).
141
setLogicalFunction(This,Function) -> wxDC:setLogicalFunction(This,Function).
143
setLayoutDirection(This,Dir) -> wxDC:setLayoutDirection(This,Dir).
145
setFont(This,Font) -> wxDC:setFont(This,Font).
147
setDeviceOrigin(This,X,Y) -> wxDC:setDeviceOrigin(This,X,Y).
149
setClippingRegion(This,Pt,Sz) -> wxDC:setClippingRegion(This,Pt,Sz).
151
setClippingRegion(This,Region) -> wxDC:setClippingRegion(This,Region).
153
setBrush(This,Brush) -> wxDC:setBrush(This,Brush).
155
setBackgroundMode(This,Mode) -> wxDC:setBackgroundMode(This,Mode).
157
setBackground(This,Brush) -> wxDC:setBackground(This,Brush).
159
setAxisOrientation(This,XLeftRight,YBottomUp) -> wxDC:setAxisOrientation(This,XLeftRight,YBottomUp).
161
resetBoundingBox(This) -> wxDC:resetBoundingBox(This).
163
isOk(This) -> wxDC:isOk(This).
165
minY(This) -> wxDC:minY(This).
167
minX(This) -> wxDC:minX(This).
169
maxY(This) -> wxDC:maxY(This).
171
maxX(This) -> wxDC:maxX(This).
173
logicalToDeviceYRel(This,Y) -> wxDC:logicalToDeviceYRel(This,Y).
175
logicalToDeviceY(This,Y) -> wxDC:logicalToDeviceY(This,Y).
177
logicalToDeviceXRel(This,X) -> wxDC:logicalToDeviceXRel(This,X).
179
logicalToDeviceX(This,X) -> wxDC:logicalToDeviceX(This,X).
181
gradientFillLinear(This,Rect,InitialColour,DestColour, Options) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour, Options).
183
gradientFillLinear(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillLinear(This,Rect,InitialColour,DestColour).
185
gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour,CircleCenter).
187
gradientFillConcentric(This,Rect,InitialColour,DestColour) -> wxDC:gradientFillConcentric(This,Rect,InitialColour,DestColour).
189
getUserScale(This) -> wxDC:getUserScale(This).
191
getTextForeground(This) -> wxDC:getTextForeground(This).
193
getTextExtent(This,String, Options) -> wxDC:getTextExtent(This,String, Options).
195
getTextExtent(This,String) -> wxDC:getTextExtent(This,String).
197
getTextBackground(This) -> wxDC:getTextBackground(This).
199
getSizeMM(This) -> wxDC:getSizeMM(This).
201
getSize(This) -> wxDC:getSize(This).
203
getPPI(This) -> wxDC:getPPI(This).
205
getPixel(This,Pt,Col) -> wxDC:getPixel(This,Pt,Col).
207
getPen(This) -> wxDC:getPen(This).
209
getPartialTextExtents(This,Text,Widths) -> wxDC:getPartialTextExtents(This,Text,Widths).
211
getMultiLineTextExtent(This,String, Options) -> wxDC:getMultiLineTextExtent(This,String, Options).
213
getMultiLineTextExtent(This,String) -> wxDC:getMultiLineTextExtent(This,String).
215
getMapMode(This) -> wxDC:getMapMode(This).
217
getLogicalFunction(This) -> wxDC:getLogicalFunction(This).
219
getLayoutDirection(This) -> wxDC:getLayoutDirection(This).
221
getFont(This) -> wxDC:getFont(This).
223
getClippingBox(This,Rect) -> wxDC:getClippingBox(This,Rect).
225
getCharWidth(This) -> wxDC:getCharWidth(This).
227
getCharHeight(This) -> wxDC:getCharHeight(This).
229
getBrush(This) -> wxDC:getBrush(This).
231
getBackgroundMode(This) -> wxDC:getBackgroundMode(This).
233
getBackground(This) -> wxDC:getBackground(This).
235
floodFill(This,Pt,Col, Options) -> wxDC:floodFill(This,Pt,Col, Options).
237
floodFill(This,Pt,Col) -> wxDC:floodFill(This,Pt,Col).
239
endPage(This) -> wxDC:endPage(This).
241
endDoc(This) -> wxDC:endDoc(This).
243
drawText(This,Text,Pt) -> wxDC:drawText(This,Text,Pt).
245
drawRoundedRectangle(This,Pt,Sz,Radius) -> wxDC:drawRoundedRectangle(This,Pt,Sz,Radius).
247
drawRoundedRectangle(This,R,Radius) -> wxDC:drawRoundedRectangle(This,R,Radius).
249
drawRotatedText(This,Text,Pt,Angle) -> wxDC:drawRotatedText(This,Text,Pt,Angle).
251
drawRectangle(This,Pt,Sz) -> wxDC:drawRectangle(This,Pt,Sz).
253
drawRectangle(This,Rect) -> wxDC:drawRectangle(This,Rect).
255
drawPoint(This,Pt) -> wxDC:drawPoint(This,Pt).
257
drawPolygon(This,Points, Options) -> wxDC:drawPolygon(This,Points, Options).
259
drawPolygon(This,Points) -> wxDC:drawPolygon(This,Points).
261
drawLines(This,Points, Options) -> wxDC:drawLines(This,Points, Options).
263
drawLines(This,Points) -> wxDC:drawLines(This,Points).
265
drawLine(This,Pt1,Pt2) -> wxDC:drawLine(This,Pt1,Pt2).
267
drawLabel(This,Text,Rect, Options) -> wxDC:drawLabel(This,Text,Rect, Options).
269
drawLabel(This,Text,Rect) -> wxDC:drawLabel(This,Text,Rect).
271
drawIcon(This,Icon,Pt) -> wxDC:drawIcon(This,Icon,Pt).
273
drawEllipticArc(This,Pt,Sz,Sa,Ea) -> wxDC:drawEllipticArc(This,Pt,Sz,Sa,Ea).
275
drawEllipse(This,Pt,Sz) -> wxDC:drawEllipse(This,Pt,Sz).
277
drawEllipse(This,Rect) -> wxDC:drawEllipse(This,Rect).
279
drawCircle(This,Pt,Radius) -> wxDC:drawCircle(This,Pt,Radius).
281
drawCheckMark(This,Rect) -> wxDC:drawCheckMark(This,Rect).
283
drawBitmap(This,Bmp,Pt, Options) -> wxDC:drawBitmap(This,Bmp,Pt, Options).
285
drawBitmap(This,Bmp,Pt) -> wxDC:drawBitmap(This,Bmp,Pt).
287
drawArc(This,Pt1,Pt2,Centre) -> wxDC:drawArc(This,Pt1,Pt2,Centre).
289
deviceToLogicalYRel(This,Y) -> wxDC:deviceToLogicalYRel(This,Y).
291
deviceToLogicalY(This,Y) -> wxDC:deviceToLogicalY(This,Y).
293
deviceToLogicalXRel(This,X) -> wxDC:deviceToLogicalXRel(This,X).
295
deviceToLogicalX(This,X) -> wxDC:deviceToLogicalX(This,X).
297
destroyClippingRegion(This) -> wxDC:destroyClippingRegion(This).
299
crossHair(This,Pt) -> wxDC:crossHair(This,Pt).
301
computeScaleAndOrigin(This) -> wxDC:computeScaleAndOrigin(This).
303
clear(This) -> wxDC:clear(This).
305
calcBoundingBox(This,X,Y) -> wxDC:calcBoundingBox(This,X,Y).
307
blit(This,DestPt,Sz,Source,SrcPt, Options) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt, Options).
309
blit(This,DestPt,Sz,Source,SrcPt) -> wxDC:blit(This,DestPt,Sz,Source,SrcPt).