From 84adefa331c4159d432d22840663c38f155cd4c1 Mon Sep 17 00:00:00 2001 From: Erlang/OTP Date: Fri, 20 Nov 2009 14:54:40 +0000 Subject: The R13B03 release. --- lib/wx/src/gen/wxSizerFlags.erl | 134 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 134 insertions(+) create mode 100644 lib/wx/src/gen/wxSizerFlags.erl (limited to 'lib/wx/src/gen/wxSizerFlags.erl') diff --git a/lib/wx/src/gen/wxSizerFlags.erl b/lib/wx/src/gen/wxSizerFlags.erl new file mode 100644 index 0000000000..898b2d42ed --- /dev/null +++ b/lib/wx/src/gen/wxSizerFlags.erl @@ -0,0 +1,134 @@ +%% +%% %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: wxSizerFlags. +%% @type wxSizerFlags(). 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(wxSizerFlags). +-include("wxe.hrl"). +-export([align/2,border/1,border/2,border/3,center/1,centre/1,destroy/1,expand/1, + left/1,new/0,new/1,proportion/2,right/1]). + +%% inherited exports +-export([parent_class/1]). + +%% @hidden +parent_class(_Class) -> erlang:error({badtype, ?MODULE}). + +%% @spec () -> wxSizerFlags() +%% @equiv new([]) +new() -> + new([]). + +%% @spec ([Option]) -> wxSizerFlags() +%% Option = {proportion, integer()} +%% @doc See external documentation. +new(Options) + when is_list(Options) -> + MOpts = fun({proportion, Proportion}, Acc) -> [<<1:32/?UI,Proportion:32/?UI>>|Acc]; + (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, + BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), + wxe_util:construct(?wxSizerFlags_new, + <>). + +%% @spec (This::wxSizerFlags(), Alignment::integer()) -> wxSizerFlags() +%% @doc See external documentation. +align(#wx_ref{type=ThisT,ref=ThisRef},Alignment) + when is_integer(Alignment) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Align, + <>). + +%% @spec (This::wxSizerFlags()) -> wxSizerFlags() +%% @equiv border(This, []) +border(This) + when is_record(This, wx_ref) -> + border(This, []). + +%% @spec (This::wxSizerFlags(), [Option]) -> wxSizerFlags() +%% Option = {direction, integer()} +%% @doc See external documentation. +border(#wx_ref{type=ThisT,ref=ThisRef}, Options) + when is_list(Options) -> + ?CLASS(ThisT,wxSizerFlags), + MOpts = fun({direction, Direction}, Acc) -> [<<1:32/?UI,Direction:32/?UI>>|Acc]; + (BadOpt, _) -> erlang:error({badoption, BadOpt}) end, + BinOpt = list_to_binary(lists:foldl(MOpts, [<<0:32>>], Options)), + wxe_util:call(?wxSizerFlags_Border_1, + <>). + +%% @spec (This::wxSizerFlags(), Direction::integer(), BorderInPixels::integer()) -> wxSizerFlags() +%% @doc See external documentation. +border(#wx_ref{type=ThisT,ref=ThisRef},Direction,BorderInPixels) + when is_integer(Direction),is_integer(BorderInPixels) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Border_2, + <>). + +%% @spec (This::wxSizerFlags()) -> wxSizerFlags() +%% @doc See external documentation. +center(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Center, + <>). + +%% @spec (This::wxSizerFlags()) -> wxSizerFlags() +%% @doc See external documentation. +centre(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Centre, + <>). + +%% @spec (This::wxSizerFlags()) -> wxSizerFlags() +%% @doc See external documentation. +expand(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Expand, + <>). + +%% @spec (This::wxSizerFlags()) -> wxSizerFlags() +%% @doc See external documentation. +left(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Left, + <>). + +%% @spec (This::wxSizerFlags(), Proportion::integer()) -> wxSizerFlags() +%% @doc See external documentation. +proportion(#wx_ref{type=ThisT,ref=ThisRef},Proportion) + when is_integer(Proportion) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Proportion, + <>). + +%% @spec (This::wxSizerFlags()) -> wxSizerFlags() +%% @doc See external documentation. +right(#wx_ref{type=ThisT,ref=ThisRef}) -> + ?CLASS(ThisT,wxSizerFlags), + wxe_util:call(?wxSizerFlags_Right, + <>). + +%% @spec (This::wxSizerFlags()) -> ok +%% @doc Destroys this object, do not use object again +destroy(Obj=#wx_ref{type=Type}) -> + ?CLASS(Type,wxSizerFlags), + wxe_util:destroy(?wxSizerFlags_destroy,Obj), + ok. -- cgit v1.2.3