1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153 | % /¯_ |¯| (` | '¯/ |_¯ |¯\ | ¯|¯ |_¯ |\/|
%\ W X \_/ |¯_\ \_) | /_,|__ |¯\ | | |__ | | . E R L
%%
%%
%% Copyright Ericsson AB 2008-2013. All Rights Reserved.
%%
%%
%% Whitespace Beautified by ScriptCulture © 2018
%% Sit Back · Feet Up · Learn wxErlang
%% For use as a reference only
%% www.scriptculture.com
%% Not check-summed
%% wx 1.8
%%
%% Licensed under the Apache License,
%% Version 2.0 (the "License"); you may
%% not use this file except in compliance
%% with the License. You may obtain a copy
%% of the License at:
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by
%% applicable law or agreed to in writing, software
%% distributed under the License is distributed
%% on an "AS IS" BASIS, WITHOUT WARRANTIES
%% OR CONDITIONS OF ANY KIND, either
%% express or implied. See the
%% License for the specific
%% language governing
%% permissions and
%% limitations
%% under the
%% License.
%%%%%%%
%%%%
%%%%%
%% @doc See external documentation: <a href="http://www.wxwidgets.org/manuals/2.8.12/wx_wxgbsizeritem.html">wxGBSizerItem</a>.
%% <p>This class is derived (and can use functions) from:
%% <br />{@link wxSizerItem}
%% </p>
%% @type wxGBSizerItem().
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% OVERVIEW
%% ––––––––
%% The wxGBSizerItem class is used by the
%% wxGridBagSizer for tracking the items in the sizer.
%% It adds grid position and spanning information to the
%% normal wxSizerItem by adding wxGBPosition and wxGBSpan attrbibutes.
%% Most of the time you will not need to use a wxGBSizerItem directly
%% in your code, but there are a couple of cases where it is handy.
%%
%%
%% See Also:
%% —————————
%%
%%
%%
-module(wxGBSizerItem).
-include("wxe.hrl").
-export([]).
%% inherited exports
-export([calcMin/1,deleteWindows/1,detachSizer/1,getBorder/1,getFlag/1,getMinSize/1,
getPosition/1,getProportion/1,getRatio/1,getRect/1,getSize/1,getSizer/1,
getSpacer/1,getUserData/1,getWindow/1,isShown/1,isSizer/1,isSpacer/1,
isWindow/1,parent_class/1,setBorder/2,setDimension/3,setFlag/2,setInitSize/3,
setMinSize/2,setMinSize/3,setProportion/2,setRatio/2,setRatio/3,setSizer/2,
setSpacer/2,setSpacer/3,setWindow/2,show/2]).
-export_type([wxGBSizerItem/0]).
%% @hidden
parent_class(wxSizerItem) -> true;
parent_class(_Class) -> erlang:error({badtype, ?MODULE}).
-type wxGBSizerItem() :: wx:wx_object().
%% From wxSizerItem
%% @hidden
show(This,Show) -> wxSizerItem:show(This,Show).
%% @hidden
setWindow(This,Window) -> wxSizerItem:setWindow(This,Window).
%% @hidden
setSpacer(This,Width,Height) -> wxSizerItem:setSpacer(This,Width,Height).
%% @hidden
setSpacer(This,Size) -> wxSizerItem:setSpacer(This,Size).
%% @hidden
setSizer(This,Sizer) -> wxSizerItem:setSizer(This,Sizer).
%% @hidden
setRatio(This,Width,Height) -> wxSizerItem:setRatio(This,Width,Height).
%% @hidden
setRatio(This,Ratio) -> wxSizerItem:setRatio(This,Ratio).
%% @hidden
setProportion(This,Proportion) -> wxSizerItem:setProportion(This,Proportion).
%% @hidden
setMinSize(This,X,Y) -> wxSizerItem:setMinSize(This,X,Y).
%% @hidden
setMinSize(This,Size) -> wxSizerItem:setMinSize(This,Size).
%% @hidden
setInitSize(This,X,Y) -> wxSizerItem:setInitSize(This,X,Y).
%% @hidden
setFlag(This,Flag) -> wxSizerItem:setFlag(This,Flag).
%% @hidden
setDimension(This,Pos,Size) -> wxSizerItem:setDimension(This,Pos,Size).
%% @hidden
setBorder(This,Border) -> wxSizerItem:setBorder(This,Border).
%% @hidden
isWindow(This) -> wxSizerItem:isWindow(This).
%% @hidden
isSpacer(This) -> wxSizerItem:isSpacer(This).
%% @hidden
isShown(This) -> wxSizerItem:isShown(This).
%% @hidden
isSizer(This) -> wxSizerItem:isSizer(This).
%% @hidden
getWindow(This) -> wxSizerItem:getWindow(This).
%% @hidden
getUserData(This) -> wxSizerItem:getUserData(This).
%% @hidden
getSpacer(This) -> wxSizerItem:getSpacer(This).
%% @hidden
getSizer(This) -> wxSizerItem:getSizer(This).
%% @hidden
getSize(This) -> wxSizerItem:getSize(This).
%% @hidden
getRect(This) -> wxSizerItem:getRect(This).
%% @hidden
getRatio(This) -> wxSizerItem:getRatio(This).
%% @hidden
getProportion(This) -> wxSizerItem:getProportion(This).
%% @hidden
getPosition(This) -> wxSizerItem:getPosition(This).
%% @hidden
getMinSize(This) -> wxSizerItem:getMinSize(This).
%% @hidden
getFlag(This) -> wxSizerItem:getFlag(This).
%% @hidden
getBorder(This) -> wxSizerItem:getBorder(This).
%% @hidden
detachSizer(This) -> wxSizerItem:detachSizer(This).
%% @hidden
deleteWindows(This) -> wxSizerItem:deleteWindows(This).
%% @hidden
calcMin(This) -> wxSizerItem:calcMin(This).
|