Loading...
Searching...
No Matches
Screen.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_CPPPDFAnnotsScreen
6#define PDFTRON_H_CPPPDFAnnotsScreen
7
8#include <PDF/Annot.h>
9
10namespace pdftron {
11 namespace PDF {
12 namespace Annots {
18class Screen : public Annot
19{
20 public:
28
35 Screen(const Annot& ann) : Annot(ann.GetSDFObj()) {}
36
45 static Screen Create(SDF::SDFDoc& doc, const Rect& pos);
46 static Screen CreateAnnot(SDF::SDFDoc& doc, const Rect& pos);
47
54
61 void SetTitle(const UString& title);
62
70
79 void SetAction(const Action& action);
80
90
99
107 void SetBorderColor(const ColorPt& col, int numcomp);
108
118
127
135 void SetBackgroundColor(const ColorPt& col, int numcomp);
136
145
154 void SetStaticCaptionText(const UString& contents);
155
164
173 void SetRolloverCaptionText(const UString& contents);
174
183
192 void SetMouseDownCaptionText(const UString& contents);
193
204
216
228
241
252
264
265
289
298
307
309
316
317
329
338
347
368
377
387
388
401 double GetHIconLeftOver() const;
402
416 void SetHIconLeftOver(double hl);
417
433 double GetVIconLeftOver() const;
434
451 void SetVIconLeftOver(double vl);
452
463 bool GetFitFull() const;
464
475 void SetFitFull(bool ff);
476
477 // @cond PRIVATE_DOC
478 #ifndef SWIGHIDDEN
479 Screen(TRN_Annot screen);
480 #endif
481 // @endcond
482
483}; //class Screen
484 }; //namespace Annot
485 }; //namespace PDF
486}; //namespace pdftron
487#include <Impl/Screen.inl>
488
489#endif // PDFTRON_H_CPPPDFAnnotsScreen
Annot(SDF::Obj d=0)
SDF::Obj GetSDFObj() const
void SetRolloverCaptionText(const UString &contents)
void SetStaticCaptionText(const UString &contents)
ColorPt GetBorderColor() const
void SetScaleType(ScaleType st)
void SetIconCaptionRelation(IconCaptionRelation icr)
double GetVIconLeftOver() const
SDF::Obj GetRolloverIcon() const
void SetHIconLeftOver(double hl)
Screen(const Annot &ann)
Definition Screen.h:35
void SetBackgroundColor(const ColorPt &col, int numcomp)
void SetAction(const Action &action)
void SetMouseDownIcon(SDF::Obj icon)
UString GetRolloverCaptionText() const
void SetBorderColor(const ColorPt &col, int numcomp)
void SetTitle(const UString &title)
UString GetStaticCaptionText() const
ScaleType GetScaleType() const
void SetMouseDownCaptionText(const UString &contents)
void SetScaleCondition(ScaleCondition sc)
void SetStaticIcon(SDF::Obj icon)
SDF::Obj GetStaticIcon() const
ColorPt GetBackgroundColor() const
UString GetMouseDownCaptionText() const
@ e_WhenSmaller
Scale only when the icon is smaller than the annotation rectangle.
Definition Screen.h:326
@ e_Always
Always scale.
Definition Screen.h:324
@ e_WhenBigger
Scale only when the icon is bigger than the annotation rectangle.
Definition Screen.h:325
static Screen CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
void SetVIconLeftOver(double vl)
ScaleCondition GetScaleCondition() const
int GetBackgroundColorCompNum() const
SDF::Obj GetMouseDownIcon() const
IconCaptionRelation GetIconCaptionRelation() const
double GetHIconLeftOver() const
static Screen Create(SDF::SDFDoc &doc, const Rect &pos)
void SetRolloverIcon(SDF::Obj icon)