43 vector<GridPanelColumn> _columns;
44 vector<GridPanelRow> _rows;
46 long _fillRowsMinHeight;
55 long _firstVisibleRow;
57 long _borderWidthLeft, _borderWidthTop, _borderWidthRight, _borderWidthBottom;
97 void setBorder(
long borderWidthLeft,
long borderWidthTop,
long borderWidthRight,
long borderWidthBottom);
108 void setLayout(
const vector<int>& columns,
const vector<int>& rows);
HWND WinHandle
Definition Common.h:16
Component()
Constructs a new Component instance.
Definition Graphics.h:171
int _calculatedWidth
Definition GridPanel.h:16
GridPanelColumn(int width)
Definition GridPanel.h:9
int _width
Definition GridPanel.h:15
void onMouseReleased(WinHandle hWnd, int x, int y, BOOL shiftPressed, BOOL ctrlPressed)
Called when the mouse button is released within the component.
void scrollBarActivity(__int64 firstVisibleItem)
void addComponent(Component *component, int column, int row, int columnCount=1, int rowCount=1)
Adds a child component at a specific grid location.
void setFillRowsMinHeight(int minHeight)
Sets the minimum allowed height for fill rows.
void onMousePressed(WinHandle hWnd, int x, int y, int clickCount, BOOL shiftPressed, BOOL ctrlPressed)
Called when the mouse is pressed within the component.
void setLayout(const vector< int > &columns, const vector< int > &rows)
Sets the layout structure by defining columns and rows sizes.
void onWindowResized()
Called when the window is resized; recalculates layout.
void onPaint(Graphics *g)
Paints the panel and its child components.
void setMargin(int margin)
Sets the left, top, right, and bottom margins.
void onMouseMoved(WinHandle hWnd, int x, int y, BOOL shiftPressed, BOOL ctrlPressed)
Called when the mouse is moved within the component.
wstring getClassName()
Returns the class name of the component.
void windowCreated()
Called after the native window is created.
void clear()
Clears all rows, columns, and child components from the panel.
virtual void constructPanel()
After this panel is created, constructPanel will be called on the descendent of this class.
Definition GridPanel.h:79
BOOL onMouseWheel(WinHandle hWnd, int x, int y, int delta)
Called when the mouse wheel is used over the component.
void setBorder(long borderWidthLeft, long borderWidthTop, long borderWidthRight, long borderWidthBottom)
int _calculatedHeight
Definition GridPanel.h:29
GridPanelRow(int height)
Definition GridPanel.h:22
int _height
Definition GridPanel.h:28
PanelBase()
Constructs a PanelBase instance.