1%%
2%% %CopyrightBegin%
3%%
4%% Copyright Ericsson AB 2008-2021. 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(wxMask).
22-include("wxe.hrl").
23-export([create/2,create/3,destroy/1,new/0,new/1,new/2]).
24
25%% inherited exports
26-export([parent_class/1]).
27
28-type wxMask() :: wx:wx_object().
29-export_type([wxMask/0]).
30%% @hidden
31parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
32
33%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxmask.html#wxmaskwxmask">external documentation</a>.
34-spec new() -> wxMask().
35new() ->
36  wxe_util:queue_cmd(?get_env(), ?wxMask_new_0),
37  wxe_util:rec(?wxMask_new_0).
38
39%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxmask.html#wxmaskwxmask">external documentation</a>.
40-spec new(Bitmap) -> wxMask() when
41	Bitmap::wxBitmap:wxBitmap().
42new(#wx_ref{type=BitmapT}=Bitmap) ->
43  ?CLASS(BitmapT,wxBitmap),
44  wxe_util:queue_cmd(Bitmap,?get_env(),?wxMask_new_1),
45  wxe_util:rec(?wxMask_new_1).
46
47%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxmask.html#wxmaskwxmask">external documentation</a>.
48%% <br /> Also:<br />
49%% new(Bitmap, Colour) -> wxMask() when<br />
50%% 	Bitmap::wxBitmap:wxBitmap(), Colour::wx:wx_colour().<br />
51%%
52-spec new(Bitmap, Index) -> wxMask() when
53	Bitmap::wxBitmap:wxBitmap(), Index::integer();
54      (Bitmap, Colour) -> wxMask() when
55	Bitmap::wxBitmap:wxBitmap(), Colour::wx:wx_colour().
56new(#wx_ref{type=BitmapT}=Bitmap,Index)
57 when is_integer(Index) ->
58  ?CLASS(BitmapT,wxBitmap),
59  wxe_util:queue_cmd(Bitmap,Index,?get_env(),?wxMask_new_2_0),
60  wxe_util:rec(?wxMask_new_2_0);
61new(#wx_ref{type=BitmapT}=Bitmap,Colour)
62 when ?is_colordata(Colour) ->
63  ?CLASS(BitmapT,wxBitmap),
64  wxe_util:queue_cmd(Bitmap,wxe_util:color(Colour),?get_env(),?wxMask_new_2_1),
65  wxe_util:rec(?wxMask_new_2_1).
66
67%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxmask.html#wxmaskcreate">external documentation</a>.
68-spec create(This, Bitmap) -> boolean() when
69	This::wxMask(), Bitmap::wxBitmap:wxBitmap().
70create(#wx_ref{type=ThisT}=This,#wx_ref{type=BitmapT}=Bitmap) ->
71  ?CLASS(ThisT,wxMask),
72  ?CLASS(BitmapT,wxBitmap),
73  wxe_util:queue_cmd(This,Bitmap,?get_env(),?wxMask_Create_1),
74  wxe_util:rec(?wxMask_Create_1).
75
76%% @doc See <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxmask.html#wxmaskcreate">external documentation</a>.
77%% <br /> Also:<br />
78%% create(This, Bitmap, Colour) -> boolean() when<br />
79%% 	This::wxMask(), Bitmap::wxBitmap:wxBitmap(), Colour::wx:wx_colour().<br />
80%%
81-spec create(This, Bitmap, Index) -> boolean() when
82	This::wxMask(), Bitmap::wxBitmap:wxBitmap(), Index::integer();
83      (This, Bitmap, Colour) -> boolean() when
84	This::wxMask(), Bitmap::wxBitmap:wxBitmap(), Colour::wx:wx_colour().
85create(#wx_ref{type=ThisT}=This,#wx_ref{type=BitmapT}=Bitmap,Index)
86 when is_integer(Index) ->
87  ?CLASS(ThisT,wxMask),
88  ?CLASS(BitmapT,wxBitmap),
89  wxe_util:queue_cmd(This,Bitmap,Index,?get_env(),?wxMask_Create_2_0),
90  wxe_util:rec(?wxMask_Create_2_0);
91create(#wx_ref{type=ThisT}=This,#wx_ref{type=BitmapT}=Bitmap,Colour)
92 when ?is_colordata(Colour) ->
93  ?CLASS(ThisT,wxMask),
94  ?CLASS(BitmapT,wxBitmap),
95  wxe_util:queue_cmd(This,Bitmap,wxe_util:color(Colour),?get_env(),?wxMask_Create_2_1),
96  wxe_util:rec(?wxMask_Create_2_1).
97
98%% @doc Destroys this object, do not use object again
99-spec destroy(This::wxMask()) -> 'ok'.
100destroy(Obj=#wx_ref{type=Type}) ->
101  ?CLASS(Type,wxMask),
102  wxe_util:queue_cmd(Obj, ?get_env(), ?DESTROY_OBJECT),
103  ok.
104