>).
%% @spec (This::wxDC(),X::term()) -> ok
%% @doc See external documentation.
%%
Alternatives:
%%
%% setClippingRegion(This::wxDC(), Region::wxRegion:wxRegion()) -> ok
%%
%%
%% setClippingRegion(This::wxDC(), Rect::{X::integer(),Y::integer(),W::integer(),H::integer()}) -> ok
%%
setClippingRegion(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=RegionT,ref=RegionRef}) ->
?CLASS(ThisT,wxDC),
?CLASS(RegionT,wxRegion),
wxe_util:cast(?wxDC_SetClippingRegion_1_0,
<>);
setClippingRegion(#wx_ref{type=ThisT,ref=ThisRef},{RectX,RectY,RectW,RectH})
when is_integer(RectX),is_integer(RectY),is_integer(RectW),is_integer(RectH) ->
?CLASS(ThisT,wxDC),
wxe_util:cast(?wxDC_SetClippingRegion_1_1,
<>).
%% @spec (This::wxDC(), Pt::{X::integer(),Y::integer()}, Sz::{W::integer(),H::integer()}) -> ok
%% @doc See external documentation.
setClippingRegion(#wx_ref{type=ThisT,ref=ThisRef},{PtX,PtY},{SzW,SzH})
when is_integer(PtX),is_integer(PtY),is_integer(SzW),is_integer(SzH) ->
?CLASS(ThisT,wxDC),
wxe_util:cast(?wxDC_SetClippingRegion_2,
<>).
%% @spec (This::wxDC(), X::integer(), Y::integer()) -> ok
%% @doc See external documentation.
setDeviceOrigin(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
when is_integer(X),is_integer(Y) ->
?CLASS(ThisT,wxDC),
wxe_util:cast(?wxDC_SetDeviceOrigin,
<>).
%% @spec (This::wxDC(), Font::wxFont:wxFont()) -> ok
%% @doc See external documentation.
setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) ->
?CLASS(ThisT,wxDC),
?CLASS(FontT,wxFont),
wxe_util:cast(?wxDC_SetFont,
<>).
%% @spec (This::wxDC(), Dir::WxLayoutDirection) -> ok
%% WxLayoutDirection = integer()
%% @doc See external documentation.
%%
WxLayoutDirection is one of ?wxLayout_Default | ?wxLayout_LeftToRight | ?wxLayout_RightToLeft
setLayoutDirection(#wx_ref{type=ThisT,ref=ThisRef},Dir)
when is_integer(Dir) ->
?CLASS(ThisT,wxDC),
wxe_util:cast(?wxDC_SetLayoutDirection,
<>).
%% @spec (This::wxDC(), Function::integer()) -> ok
%% @doc See external documentation.
setLogicalFunction(#wx_ref{type=ThisT,ref=ThisRef},Function)
when is_integer(Function) ->
?CLASS(ThisT,wxDC),
wxe_util:cast(?wxDC_SetLogicalFunction,
<>).
%% @spec (This::wxDC(), Mode::integer()) -> ok
%% @doc See external documentation.
setMapMode(#wx_ref{type=ThisT,ref=ThisRef},Mode)
when is_integer(Mode) ->
?CLASS(ThisT,wxDC),
wxe_util:cast(?wxDC_SetMapMode,
<>).
%% @spec (This::wxDC(), Palette::wxPalette:wxPalette()) -> ok
%% @doc See external documentation.
setPalette(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PaletteT,ref=PaletteRef}) ->
?CLASS(ThisT,wxDC),
?CLASS(PaletteT,wxPalette),
wxe_util:cast(?wxDC_SetPalette,
<>).
%% @spec (This::wxDC(), Pen::wxPen:wxPen()) -> ok
%% @doc See external documentation.
setPen(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=PenT,ref=PenRef}) ->
?CLASS(ThisT,wxDC),
?CLASS(PenT,wxPen),
wxe_util:cast(?wxDC_SetPen,
<>).
%% @spec (This::wxDC(), Colour::wx:colour()) -> ok
%% @doc See external documentation.
setTextBackground(#wx_ref{type=ThisT,ref=ThisRef},Colour)
when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
?CLASS(ThisT,wxDC),
wxe_util:cast(?wxDC_SetTextBackground,
<>).
%% @spec (This::wxDC(), Colour::wx:colour()) -> ok
%% @doc See external documentation.
setTextForeground(#wx_ref{type=ThisT,ref=ThisRef},Colour)
when tuple_size(Colour) =:= 3; tuple_size(Colour) =:= 4 ->
?CLASS(ThisT,wxDC),
wxe_util:cast(?wxDC_SetTextForeground,
<>).
%% @spec (This::wxDC(), X::float(), Y::float()) -> ok
%% @doc See external documentation.
setUserScale(#wx_ref{type=ThisT,ref=ThisRef},X,Y)
when is_float(X),is_float(Y) ->
?CLASS(ThisT,wxDC),
wxe_util:cast(?wxDC_SetUserScale,
<>).
%% @spec (This::wxDC(), Message::string()) -> bool()
%% @doc See external documentation.
startDoc(#wx_ref{type=ThisT,ref=ThisRef},Message)
when is_list(Message) ->
?CLASS(ThisT,wxDC),
Message_UC = unicode:characters_to_binary([Message,0]),
wxe_util:call(?wxDC_StartDoc,
<>).
%% @spec (This::wxDC()) -> ok
%% @doc See external documentation.
startPage(#wx_ref{type=ThisT,ref=ThisRef}) ->
?CLASS(ThisT,wxDC),
wxe_util:cast(?wxDC_StartPage,
<>).