Loading...
Searching...
No Matches
Context.h
Go to the documentation of this file.
1//---------------------------------------------------------------------------------------
2// Copyright (c) 2001-2025 by Apryse Software Inc. All Rights Reserved.
3// Consult legal.txt regarding legal and license information.
4//---------------------------------------------------------------------------------------
5#ifndef PDFTRON_H_CPPPDFOCGContext
6#define PDFTRON_H_CPPPDFOCGContext
7
8#include <SDF/Obj.h>
9#include <C/PDF/OCG/TRN_OCGContext.h>
10
11namespace pdftron {
12 namespace PDF {
13 namespace OCG {
14 class Group;
15
42{
43public:
44
49 Context(const Context& context);
51
58 Context(const class Config& config);
59
64
68 bool IsValid() const { return mp_obj!=0; }
69
76 bool GetState(const class Group& group) const;
77
84 void SetState(const class Group& group, bool state);
85
91 void ResetStates(bool all_on);
92
101 void SetNonOCDrawing(bool draw_non_OC);
102
108 bool GetNonOCDrawing() const;
109
145
153 void SetOCDrawMode(OCDrawMode oc_draw_mode);
154
160
164 void Destroy();
165
166 //for xamarin use only
167 static Context* CreateInternal(ptrdiff_t impl);
168 ptrdiff_t GetHandleInternal();
169
170#ifndef SWIGHIDDEN
171 Context(TRN_OCGContext ctx);
172 TRN_OCGContext mp_obj;
173private:
174 bool m_owner;
175#endif
176};
177
178 }; // namespace OCG
179 }; // namespace PDF
180}; // namespace pdftron
181
182#endif // PDFTRON_H_CPPPDFOCGContext
void SetOCDrawMode(OCDrawMode oc_draw_mode)
Context & operator=(const Context &g)
Context(const Context &context)
Context(TRN_OCGContext ctx)
static Context * CreateInternal(ptrdiff_t impl)
void ResetStates(bool all_on)
void SetState(const class Group &group, bool state)
bool GetState(const class Group &group) const
Context(const class Config &config)
OCDrawMode GetOCMode() const
TRN_OCGContext mp_obj
Definition Context.h:172
void SetNonOCDrawing(bool draw_non_OC)