All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Screen.h
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Copyright (c) 2001-2023 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 
10 namespace pdftron {
11  namespace PDF {
12  namespace Annots {
18 class Screen : public Annot
19 {
20  public:
27  Screen(SDF::Obj d = 0);
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 
53  UString GetTitle() const;
54 
61  void SetTitle(const UString& title);
62 
69  Action GetAction() const;
70 
79  void SetAction(const Action& action);
80 
89  int GetBorderColorCompNum() const;
90 
98  ColorPt GetBorderColor() const;
99 
107  void SetBorderColor(const ColorPt& col, int numcomp);
108 
117  int GetBackgroundColorCompNum() const;
118 
126  ColorPt GetBackgroundColor() const;
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 
203  SDF::Obj GetStaticIcon() const;
204 
215  void SetStaticIcon(SDF::Obj icon);
216 
227  SDF::Obj GetRolloverIcon() const;
228 
240  void SetRolloverIcon(SDF::Obj icon);
241 
251  SDF::Obj GetMouseDownIcon() const;
252 
263  void SetMouseDownIcon(SDF::Obj icon);
264 
265 
280  {
288  };
289 
298 
309 
323  {
328  };
329 
338 
347 
364  {
367  };
368 
376  ScaleType GetScaleType() const;
377 
386  void SetScaleType(ScaleType st);
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
void SetHIconLeftOver(double hl)
SDF::Obj GetSDFObj() const
SDF::Obj GetStaticIcon() const
void SetTitle(const UString &title)
void SetMouseDownCaptionText(const UString &contents)
ScaleCondition GetScaleCondition() const
Scale only when the icon is smaller than the annotation rectangle.
Definition: Screen.h:326
void SetStaticCaptionText(const UString &contents)
void SetIconCaptionRelation(IconCaptionRelation icr)
void SetRolloverIcon(SDF::Obj icon)
ScaleType GetScaleType() const
void SetScaleCondition(ScaleCondition sc)
void SetMouseDownIcon(SDF::Obj icon)
UString GetMouseDownCaptionText() const
int GetBackgroundColorCompNum() const
Screen(const Annot &ann)
Definition: Screen.h:35
void SetScaleType(ScaleType st)
SDF::Obj GetMouseDownIcon() const
void SetStaticIcon(SDF::Obj icon)
static Screen CreateAnnot(SDF::SDFDoc &doc, const Rect &pos)
static Screen Create(SDF::SDFDoc &doc, const Rect &pos)
SDF::Obj GetRolloverIcon() const
void SetAction(const Action &action)
void SetBorderColor(const ColorPt &col, int numcomp)
ColorPt GetBackgroundColor() const
void SetRolloverCaptionText(const UString &contents)
double GetVIconLeftOver() const
ColorPt GetBorderColor() const
Scale only when the icon is bigger than the annotation rectangle.
Definition: Screen.h:325
void SetBackgroundColor(const ColorPt &col, int numcomp)
UString GetStaticCaptionText() const
void SetVIconLeftOver(double vl)
int GetBorderColorCompNum() const
IconCaptionRelation GetIconCaptionRelation() const
double GetHIconLeftOver() const
UString GetRolloverCaptionText() const