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
}
17 \wxheading{Include files
}
21 \latexignore{\rtfignore{\wxheading{Members
}}}
23 \membersection{wxGBSizerItem::wxGBSizerItem
}\label{wxgbsizeritemwxgbsizeritem
}
25 \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
}}
27 Construct a sizer item for tracking a spacer.
29 \func{}{wxGBSizerItem
}{\param{wxWindow*
}{window
},
\param{const wxGBPosition\&
}{pos
},
\param{const wxGBSpan\&
}{span
},
\param{int
}{flag
},
\param{int
}{border
},
\param{wxObject*
}{userData
}}
31 Construct a sizer item for tracking a window.
33 \func{}{wxGBSizerItem
}{\param{wxSizer*
}{sizer
},
\param{const wxGBPosition\&
}{pos
},
\param{const wxGBSpan\&
}{span
},
\param{int
}{flag
},
\param{int
}{border
},
\param{wxObject*
}{userData
}}
35 Construct a sizer item for tracking a subsizer.
37 \membersection{wxGBSizerItem::GetEndPos
}\label{wxgbsizeritemgetendpos
}
39 \func{void
}{GetEndPos
}{\param{int\&
}{row
},
\param{int\&
}{col
}}
41 Get the row and column of the endpoint of this item
43 \membersection{wxGBSizerItem::GetPos
}\label{wxgbsizeritemgetpos
}
45 \constfunc{wxGBPosition
}{GetPos
}{\void}
47 \constfunc{void
}{GetPos
}{\param{int\&
}{row
},
\param{int\&
}{col
}}
49 Get the grid position of the item.
51 \membersection{wxGBSizerItem::GetSpan
}\label{wxgbsizeritemgetspan
}
53 \constfunc{wxGBSpan
}{GetSpan
}{\void}
55 \constfunc{void
}{GetSpan
}{\param{int\&
}{rowspan
},
\param{int\&
}{colspan
}}
57 Get the row and column spanning of the item.
59 \membersection{wxGBSizerItem::Intersects
}\label{wxgbsizeritemintersects
}
61 \func{bool
}{Intersects
}{\param{const wxGBSizerItem\&
}{other
}}
63 Returns true if this item and the other item instersect
65 \func{bool
}{Intersects
}{\param{const wxGBPosition\&
}{pos
},
\param{const wxGBSpan\&
}{span
}}
67 Returns true if the given pos/span would intersect with this item.
69 \membersection{wxGBSizerItem::SetPos
}\label{wxgbsizeritemsetpos
}
71 \func{bool
}{SetPos
}{\param{const wxGBPosition\&
}{pos
}}
73 If the item is already a member of a sizer then first ensure that
74 there is no other item that would intersect with this one at the new
75 position, then set the new position. Returns true if the change is
76 successful and after the next Layout the item will be moved.
78 \membersection{wxGBSizerItem::SetSpan
}\label{wxgbsizeritemsetspan
}
80 \func{bool
}{SetSpan
}{\param{const wxGBSpan\&
}{span
}}
82 If the item is already a member of a sizer then first ensure that
83 there is no other item that would intersect with this one with its new
84 spanning size, then set the new spanning. Returns true if the change
85 is successful and after the next Layout the item will be resized.