40 vector<GridPanelColumn> _columns;
41 vector<GridPanelRow> _rows;
43 long _fillRowsMinHeight;
52 long _firstVisibleRow;
54 BOOL _hasBorderLeft, _hasBorderTop, _hasBorderRight, _hasBorderBottom;
89 void setHasBorder(BOOL hasBorderLeft, BOOL hasBorderTop, BOOL hasBorderRight, BOOL hasBorderBottom);
100 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:161
int _calculatedWidth
Definition GridPanel.h:15
GridPanelColumn(int width)
Definition GridPanel.h:8
int _width
Definition GridPanel.h:14
void setHasBorder(BOOL hasBorderLeft, BOOL hasBorderTop, BOOL hasBorderRight, BOOL hasBorderBottom)
BOOL getScrollingInfo(__int64 &scrollMin, __int64 &scrollMax, __int64 &pageSize)
Provides scrolling information for scrollbar support.
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 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.
wstring getClassName()
Returns the class name of the component.
void windowCreated()
Called after the native window is created.
void setScrollbarTopOffset(__int64 firstVisibleRow)
Updates the scrollbar position based on the top visible row.
void clear()
Clears all rows, columns, and child components from the panel.
BOOL onMouseWheel(WinHandle hWnd, int x, int y, int delta)
Handles mouse wheel scrolling events.
int _calculatedHeight
Definition GridPanel.h:28
GridPanelRow(int height)
Definition GridPanel.h:21
int _height
Definition GridPanel.h:27
PanelBase()
Constructs a PanelBase instance.