%%
%% %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: wxListItem.
%% @type wxListItem(). 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(wxListItem).
-include("wxe.hrl").
-export([clear/1,destroy/1,getAlign/1,getBackgroundColour/1,getColumn/1,getFont/1,
getId/1,getImage/1,getMask/1,getState/1,getText/1,getTextColour/1,getWidth/1,
new/0,new/1,setAlign/2,setBackgroundColour/2,setColumn/2,setFont/2,
setId/2,setImage/2,setMask/2,setState/2,setStateMask/2,setText/2,setTextColour/2,
setWidth/2]).
%% inherited exports
-export([parent_class/1]).
%% @hidden
parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
%% @spec () -> wxListItem()
%% @doc See external documentation.
new() ->
wxe_util:construct(?wxListItem_new_0,
<<>>).
%% @spec (Item::wxListItem()) -> wxListItem()
%% @doc See external documentation.
new(#wx_ref{type=ItemT,ref=ItemRef}) ->
?CLASS(ItemT,wxListItem),
wxe_util:construct(?wxListItem_new_1,
<>).
%% @spec (This::wxListItem()) -> ok
%% @doc See external documentation.
clear(#wx_ref{type=ThisT,ref=ThisRef}) ->
?CLASS(ThisT,wxListItem),
wxe_util:cast(?wxListItem_Clear,
<>).
%% @spec (This::wxListItem()) -> WxListColumnFormat
%% WxListColumnFormat = integer()
%% @doc See external documentation.
%%
WxListColumnFormat is one of ?wxLIST_FORMAT_LEFT | ?wxLIST_FORMAT_RIGHT | ?wxLIST_FORMAT_CENTRE | ?wxLIST_FORMAT_CENTER
getAlign(#wx_ref{type=ThisT,ref=ThisRef}) ->
?CLASS(ThisT,wxListItem),
wxe_util:call(?wxListItem_GetAlign,
<>).
%% @spec (This::wxListItem()) -> wx:colour()
%% @doc See external documentation.
getBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
?CLASS(ThisT,wxListItem),
wxe_util:call(?wxListItem_GetBackgroundColour,
<>).
%% @spec (This::wxListItem()) -> integer()
%% @doc See external documentation.
getColumn(#wx_ref{type=ThisT,ref=ThisRef}) ->
?CLASS(ThisT,wxListItem),
wxe_util:call(?wxListItem_GetColumn,
<>).
%% @spec (This::wxListItem()) -> wxFont:wxFont()
%% @doc See external documentation.
getFont(#wx_ref{type=ThisT,ref=ThisRef}) ->
?CLASS(ThisT,wxListItem),
wxe_util:call(?wxListItem_GetFont,
<>).
%% @spec (This::wxListItem()) -> integer()
%% @doc See external documentation.
getId(#wx_ref{type=ThisT,ref=ThisRef}) ->
?CLASS(ThisT,wxListItem),
wxe_util:call(?wxListItem_GetId,
<>).
%% @spec (This::wxListItem()) -> integer()
%% @doc See external documentation.
getImage(#wx_ref{type=ThisT,ref=ThisRef}) ->
?CLASS(ThisT,wxListItem),
wxe_util:call(?wxListItem_GetImage,
<>).
%% @spec (This::wxListItem()) -> integer()
%% @doc See external documentation.
getMask(#wx_ref{type=ThisT,ref=ThisRef}) ->
?CLASS(ThisT,wxListItem),
wxe_util:call(?wxListItem_GetMask,
<>).
%% @spec (This::wxListItem()) -> integer()
%% @doc See external documentation.
getState(#wx_ref{type=ThisT,ref=ThisRef}) ->
?CLASS(ThisT,wxListItem),
wxe_util:call(?wxListItem_GetState,
<>).
%% @spec (This::wxListItem()) -> string()
%% @doc See external documentation.
getText(#wx_ref{type=ThisT,ref=ThisRef}) ->
?CLASS(ThisT,wxListItem),
wxe_util:call(?wxListItem_GetText,
<>).
%% @spec (This::wxListItem()) -> wx:colour()
%% @doc See external documentation.
getTextColour(#wx_ref{type=ThisT,ref=ThisRef}) ->
?CLASS(ThisT,wxListItem),
wxe_util:call(?wxListItem_GetTextColour,
<>).
%% @spec (This::wxListItem()) -> integer()
%% @doc See external documentation.
getWidth(#wx_ref{type=ThisT,ref=ThisRef}) ->
?CLASS(ThisT,wxListItem),
wxe_util:call(?wxListItem_GetWidth,
<>).
%% @spec (This::wxListItem(), Align::WxListColumnFormat) -> ok
%% WxListColumnFormat = integer()
%% @doc See external documentation.
%%
WxListColumnFormat is one of ?wxLIST_FORMAT_LEFT | ?wxLIST_FORMAT_RIGHT | ?wxLIST_FORMAT_CENTRE | ?wxLIST_FORMAT_CENTER
setAlign(#wx_ref{type=ThisT,ref=ThisRef},Align)
when is_integer(Align) ->
?CLASS(ThisT,wxListItem),
wxe_util:cast(?wxListItem_SetAlign,
<>).
%% @spec (This::wxListItem(), ColBack::wx:colour()) -> ok
%% @doc See external documentation.
setBackgroundColour(#wx_ref{type=ThisT,ref=ThisRef},ColBack)
when tuple_size(ColBack) =:= 3; tuple_size(ColBack) =:= 4 ->
?CLASS(ThisT,wxListItem),
wxe_util:cast(?wxListItem_SetBackgroundColour,
<>).
%% @spec (This::wxListItem(), Col::integer()) -> ok
%% @doc See external documentation.
setColumn(#wx_ref{type=ThisT,ref=ThisRef},Col)
when is_integer(Col) ->
?CLASS(ThisT,wxListItem),
wxe_util:cast(?wxListItem_SetColumn,
<>).
%% @spec (This::wxListItem(), Font::wxFont:wxFont()) -> ok
%% @doc See external documentation.
setFont(#wx_ref{type=ThisT,ref=ThisRef},#wx_ref{type=FontT,ref=FontRef}) ->
?CLASS(ThisT,wxListItem),
?CLASS(FontT,wxFont),
wxe_util:cast(?wxListItem_SetFont,
<>).
%% @spec (This::wxListItem(), Id::integer()) -> ok
%% @doc See external documentation.
setId(#wx_ref{type=ThisT,ref=ThisRef},Id)
when is_integer(Id) ->
?CLASS(ThisT,wxListItem),
wxe_util:cast(?wxListItem_SetId,
<>).
%% @spec (This::wxListItem(), Image::integer()) -> ok
%% @doc See external documentation.
setImage(#wx_ref{type=ThisT,ref=ThisRef},Image)
when is_integer(Image) ->
?CLASS(ThisT,wxListItem),
wxe_util:cast(?wxListItem_SetImage,
<>).
%% @spec (This::wxListItem(), Mask::integer()) -> ok
%% @doc See external documentation.
setMask(#wx_ref{type=ThisT,ref=ThisRef},Mask)
when is_integer(Mask) ->
?CLASS(ThisT,wxListItem),
wxe_util:cast(?wxListItem_SetMask,
<>).
%% @spec (This::wxListItem(), State::integer()) -> ok
%% @doc See external documentation.
setState(#wx_ref{type=ThisT,ref=ThisRef},State)
when is_integer(State) ->
?CLASS(ThisT,wxListItem),
wxe_util:cast(?wxListItem_SetState,
<>).
%% @spec (This::wxListItem(), StateMask::integer()) -> ok
%% @doc See external documentation.
setStateMask(#wx_ref{type=ThisT,ref=ThisRef},StateMask)
when is_integer(StateMask) ->
?CLASS(ThisT,wxListItem),
wxe_util:cast(?wxListItem_SetStateMask,
<>).
%% @spec (This::wxListItem(), Text::string()) -> ok
%% @doc See external documentation.
setText(#wx_ref{type=ThisT,ref=ThisRef},Text)
when is_list(Text) ->
?CLASS(ThisT,wxListItem),
Text_UC = unicode:characters_to_binary([Text,0]),
wxe_util:cast(?wxListItem_SetText,
<>).
%% @spec (This::wxListItem(), ColText::wx:colour()) -> ok
%% @doc See external documentation.
setTextColour(#wx_ref{type=ThisT,ref=ThisRef},ColText)
when tuple_size(ColText) =:= 3; tuple_size(ColText) =:= 4 ->
?CLASS(ThisT,wxListItem),
wxe_util:cast(?wxListItem_SetTextColour,
<>).
%% @spec (This::wxListItem(), Width::integer()) -> ok
%% @doc See external documentation.
setWidth(#wx_ref{type=ThisT,ref=ThisRef},Width)
when is_integer(Width) ->
?CLASS(ThisT,wxListItem),
wxe_util:cast(?wxListItem_SetWidth,
<>).
%% @spec (This::wxListItem()) -> ok
%% @doc Destroys this object, do not use object again
destroy(Obj=#wx_ref{type=Type}) ->
?CLASS(Type,wxListItem),
wxe_util:destroy(?DESTROY_OBJECT,Obj),
ok.