#include <phgui.h>
#include <graph.h>
Go to the source code of this file.
|
LRESULT CALLBACK | PhpGraphWndProc (_In_ HWND hwnd, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam) |
|
BOOLEAN | PhGraphControlInitialization (VOID) |
|
VOID | PhDrawGraph (_In_ HDC hdc, _In_ PPH_GRAPH_DRAW_INFO DrawInfo) |
| Draws a graph.
|
|
FORCEINLINE VOID | PhpGetGraphPoint (_In_ PPH_GRAPH_DRAW_INFO DrawInfo, _In_ ULONG Index, _Out_ PULONG H1, _Out_ PULONG H2) |
|
VOID | PhDrawGraphDirect (_In_ HDC hdc, _In_ PVOID Bits, _In_ PPH_GRAPH_DRAW_INFO DrawInfo) |
| Draws a graph directly to memory.
|
|
VOID | PhSetGraphText (_In_ HDC hdc, _Inout_ PPH_GRAPH_DRAW_INFO DrawInfo, _In_ PPH_STRINGREF Text, _In_ PRECT Margin, _In_ PRECT Padding, _In_ ULONG Align) |
| Sets the text in a graphing information structure.
|
|
VOID | PhpCreateGraphContext (_Out_ PPHP_GRAPH_CONTEXT *Context) |
|
VOID | PhpFreeGraphContext (_Inout_ _Post_invalid_ PPHP_GRAPH_CONTEXT Context) |
|
VOID | PhpUpdateDrawInfo (_In_ HWND hwnd, _In_ PPHP_GRAPH_CONTEXT Context) |
|
VOID | PhpDrawGraphControl (_In_ HWND hwnd, _In_ PPHP_GRAPH_CONTEXT Context) |
|
VOID | PhInitializeGraphBuffers (_Out_ PPH_GRAPH_BUFFERS Buffers) |
| Initializes a graph buffer management structure.
|
|
VOID | PhDeleteGraphBuffers (_Inout_ PPH_GRAPH_BUFFERS Buffers) |
| Frees resources used by a graph buffer management structure.
|
|
VOID | PhGetDrawInfoGraphBuffers (_Inout_ PPH_GRAPH_BUFFERS Buffers, _Inout_ PPH_GRAPH_DRAW_INFO DrawInfo, _In_ ULONG DataCount) |
| Sets up a graphing information structure with information from a graph buffer management structure.
|
|
VOID | PhInitializeGraphState (_Out_ PPH_GRAPH_STATE State) |
|
VOID | PhDeleteGraphState (_Inout_ PPH_GRAPH_STATE State) |
|
VOID | PhGraphStateGetDrawInfo (_Inout_ PPH_GRAPH_STATE State, _In_ PPH_GRAPH_GETDRAWINFO GetDrawInfo, _In_ ULONG DataCount) |
|
#define _PH_GRAPH_PRIVATE |
#define COLORREF_TO_BITS |
( |
|
Color | ) |
(_byteswap_ulong(Color) >> 8) |
Frees resources used by a graph buffer management structure.
- Parameters
-
Buffers | The buffer management structure. |
Definition at line 1369 of file graph.c.
Draws a graph.
- Parameters
-
hdc | The DC to draw to. |
DrawInfo | A structure which contains graphing information. |
Definition at line 99 of file graph.c.
Draws a graph directly to memory.
- Parameters
-
hdc | The DC to draw to. This is only used when drawing text. |
Bits | The bits in a bitmap. |
DrawInfo | A structure which contains graphing information. |
Definition at line 413 of file graph.c.
Sets up a graphing information structure with information from a graph buffer management structure.
- Parameters
-
Buffers | The buffer management structure. |
DrawInfo | The graphing information structure. |
DataCount | The number of data points currently required. The buffers are resized if needed. |
Definition at line 1386 of file graph.c.
BOOLEAN PhGraphControlInitialization |
( |
VOID |
| ) |
|
Initializes a graph buffer management structure.
- Parameters
-
Buffers | The buffer management structure. |
Definition at line 1354 of file graph.c.
FORCEINLINE VOID PhpGetGraphPoint |
( |
_In_ PPH_GRAPH_DRAW_INFO |
DrawInfo, |
|
|
_In_ ULONG |
Index, |
|
|
_Out_ PULONG |
H1, |
|
|
_Out_ PULONG |
H2 |
|
) |
| |
LRESULT CALLBACK PhpGraphWndProc |
( |
_In_ HWND |
hwnd, |
|
|
_In_ UINT |
uMsg, |
|
|
_In_ WPARAM |
wParam, |
|
|
_In_ LPARAM |
lParam |
|
) |
| |
Sets the text in a graphing information structure.
- Parameters
-
hdc | The DC to perform calculations from. |
DrawInfo | A structure which contains graphing information. The structure is modified to contain the new text information. |
Text | The text. |
Margin | The margins of the text box from the edges of the graph. |
Padding | The padding within the text box. |
Align | The alignment of the text box. |
Definition at line 703 of file graph.c.
RECT PhNormalGraphTextMargin = { 5, 5, 5, 5 } |
RECT PhNormalGraphTextPadding = { 3, 3, 3, 3 } |