QTradingView 1.0.0
A high-performance charting library built with C++ and Qt.
Loading...
Searching...
No Matches
QTradingView::GridRenderer Class Reference

Renders grid lines on the chart background. More...

#include <GridRenderer.h>

Public Member Functions

 GridRenderer ()
 Constructs a GridRenderer with default settings.
 
void setGridColor (const QColor &color)
 Sets the color of the grid lines.
 
void setVerticalGridEnabled (bool enabled)
 Enables or disables vertical grid lines.
 
void setHorizontalGridEnabled (bool enabled)
 Enables or disables horizontal grid lines.
 
void render (QPainter *painter, const Pane *pane, const ViewPort &viewport, const Series *dataProvider, const AxisRenderer *axisRenderer)
 Renders the grid on the chart pane.
 

Detailed Description

Renders grid lines on the chart background.

Member Function Documentation

◆ render()

void QTradingView::GridRenderer::render ( QPainter *  painter,
const Pane pane,
const ViewPort viewport,
const Series dataProvider,
const AxisRenderer axisRenderer 
)

Renders the grid on the chart pane.

Parameters
painterThe QPainter instance used for drawing.
paneThe pane being rendered.
viewportThe current viewport settings.
dataProviderThe data series providing grid data.
axisRendererThe axis renderer for tick positions.

◆ setGridColor()

void QTradingView::GridRenderer::setGridColor ( const QColor &  color)

Sets the color of the grid lines.

Parameters
colorThe grid color.

◆ setHorizontalGridEnabled()

void QTradingView::GridRenderer::setHorizontalGridEnabled ( bool  enabled)

Enables or disables horizontal grid lines.

Parameters
enabledTrue to enable, false to disable.

◆ setVerticalGridEnabled()

void QTradingView::GridRenderer::setVerticalGridEnabled ( bool  enabled)

Enables or disables vertical grid lines.

Parameters
enabledTrue to enable, false to disable.

The documentation for this class was generated from the following files: