2 \section{\class{wxGBSizerItem
}}\label{wxgbsizeritem
}
4 The wxGBSizerItem class is used by the
5 \helpref{wxGridBagSizer
}{wxgridbagsizer
} for tracking the items in the
6 sizer. It adds grid position and spanning information to the normal
7 \helpref{wxSizerItem
}{wxsizeritem
} by adding
8 \helpref{wxGBPosition
}{wxgbposition
} and
\helpref{wxGBSpan
}{wxgbspan
}
9 attrbibutes. Most of the time you will not need to use a
10 wxGBSizerItem directly in your code, but there are a couple of cases
13 \wxheading{Derived from
}
15 \helpref{wxSizerItem
}{wxsizeritem
}\\
16 \helpref{wxObject
}{wxobject
}
18 \wxheading{Include files
}
24 \helpref{wxCore
}{librarieslist
}
26 \latexignore{\rtfignore{\wxheading{Members
}}}
28 \membersection{wxGBSizerItem::wxGBSizerItem
}\label{wxgbsizeritemwxgbsizeritem
}
30 \func{}{wxGBSizerItem
}{\param{int
}{width
},
\param{int
}{height
},
\param{const wxGBPosition\&
}{pos
},
\param{const wxGBSpan\&
}{span
},
\param{int
}{flag
},
\param{int
}{border
},
\param{wxObject*
}{userData
}}
32 Construct a sizer item for tracking a spacer.
34 \func{}{wxGBSizerItem
}{\param{wxWindow*
}{window
},
\param{const wxGBPosition\&
}{pos
},
\param{const wxGBSpan\&
}{span
},
\param{int
}{flag
},
\param{int
}{border
},
\param{wxObject*
}{userData
}}
36 Construct a sizer item for tracking a window.
38 \func{}{wxGBSizerItem
}{\param{wxSizer*
}{sizer
},
\param{const wxGBPosition\&
}{pos
},
\param{const wxGBSpan\&
}{span
},
\param{int
}{flag
},
\param{int
}{border
},
\param{wxObject*
}{userData
}}
40 Construct a sizer item for tracking a subsizer.
42 \membersection{wxGBSizerItem::GetEndPos
}\label{wxgbsizeritemgetendpos
}
44 \func{void
}{GetEndPos
}{\param{int\&
}{row
},
\param{int\&
}{col
}}
46 Get the row and column of the endpoint of this item
48 \membersection{wxGBSizerItem::GetPos
}\label{wxgbsizeritemgetpos
}
50 \constfunc{wxGBPosition
}{GetPos
}{\void}
52 \constfunc{void
}{GetPos
}{\param{int\&
}{row
},
\param{int\&
}{col
}}
54 Get the grid position of the item.
56 \membersection{wxGBSizerItem::GetSpan
}\label{wxgbsizeritemgetspan
}
58 \constfunc{wxGBSpan
}{GetSpan
}{\void}
60 \constfunc{void
}{GetSpan
}{\param{int\&
}{rowspan
},
\param{int\&
}{colspan
}}
62 Get the row and column spanning of the item.
64 \membersection{wxGBSizerItem::Intersects
}\label{wxgbsizeritemintersects
}
66 \func{bool
}{Intersects
}{\param{const wxGBSizerItem\&
}{other
}}
68 Returns true if this item and the other item instersect
70 \func{bool
}{Intersects
}{\param{const wxGBPosition\&
}{pos
},
\param{const wxGBSpan\&
}{span
}}
72 Returns true if the given pos/span would intersect with this item.
74 \membersection{wxGBSizerItem::SetPos
}\label{wxgbsizeritemsetpos
}
76 \func{bool
}{SetPos
}{\param{const wxGBPosition\&
}{pos
}}
78 If the item is already a member of a sizer then first ensure that
79 there is no other item that would intersect with this one at the new
80 position, then set the new position. Returns true if the change is
81 successful and after the next Layout the item will be moved.
83 \membersection{wxGBSizerItem::SetSpan
}\label{wxgbsizeritemsetspan
}
85 \func{bool
}{SetSpan
}{\param{const wxGBSpan\&
}{span
}}
87 If the item is already a member of a sizer then first ensure that
88 there is no other item that would intersect with this one with its new
89 spanning size, then set the new spanning. Returns true if the change
90 is successful and after the next Layout the item will be resized.