wxgbsizeritemthe 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. derived from include files <wx/gbsizer.h> members
wxgbsizeritem::wxgbsizeritem
wxgbsizeritem::wxgbsizeritemwxgbsizeritem(int width, int height, const wxgbposition& pos, const wxgbspan& span, int flag, int border, wxobject* userdata) construct a sizer item for tracking a spacer. wxgbsizeritem(wxwindow* window, const wxgbposition& pos, const wxgbspan& span, int flag, int border, wxobject* userdata) construct a sizer item for tracking a window. wxgbsizeritem(wxsizer* sizer, const wxgbposition& pos, const wxgbspan& span, int flag, int border, wxobject* userdata) construct a sizer item for tracking a subsizer.
wxgbsizeritem::getendposvoid getendpos(int& row, int& col) get the row and column of the endpoint of this item
wxgbsizeritem::getposwxgbposition getpos() const void getpos(int& row, int& col) const get the grid position of the item.
wxgbsizeritem::getspanwxgbspan getspan() const void getspan(int& rowspan, int& colspan) const get the row and column spanning of the item.
wxgbsizeritem::intersectsbool intersects(const wxgbsizeritem& other) returns true if this item and the other item instersect bool intersects(const wxgbposition& pos, const wxgbspan& span) returns true if the given pos/span would intersect with this item.
wxgbsizeritem::setposbool setpos(const wxgbposition& pos) if the item is already a member of a sizer then first ensure that there is no other item that would intersect with this one at the new position, then set the new position. returns true if the change is successful and after the next layout the item will be moved.
wxgbsizeritem::setspanbool setspan(const wxgbspan& span) if the item is already a member of a sizer then first ensure that there is no other item that would intersect with this one with its new spanning size, then set the new spanning. returns true if the change is successful and after the next layout the item will be resized.
|