Foxit PDF SDK  9.1
FSDefaultAppearance Class Reference
Inheritance diagram for FSDefaultAppearance:

Instance Methods

(void) - dealloc
 
(void *) - getCptr
 
(id) - init
 Constructor.
More...
 
(id) - initWithCptr:swigOwnCObject:
 
(id) - initWithDefault_appearance:
 Constructor, with another default appearance object.
More...
 
(id) - initWithFlags:font:text_size:text_color:
 
(void) - set:font:text_size:text_color:
 Set value.
More...
 

Protected Attributes

BOOL swigCMemOwn
 
void * swigCPtr
 

Properties

unsigned int flags
 Flags to indicate which properties of default appearance are meaningful.
More...
 
FSFontfont
 A font for default appearance. It should be a valid font object when it is useful.
More...
 
unsigned int text_color
 Text color for default appearance. Format: 0xRRGGBB.
More...
 
float text_size
 Text size for default appearance.
More...
 

Detailed Description

This class represents default appearance data, which is used for free text annotation and form.

Method Documentation

◆ dealloc

- (void) dealloc

◆ getCptr

- (void*) getCptr

◆ init

- (id) init

Constructor.

◆ initWithCptr:swigOwnCObject:

- (id) initWithCptr: (void *)  cptr
swigOwnCObject: (BOOL)  ownCObject 

◆ initWithDefault_appearance:

- (id) initWithDefault_appearance: (FSDefaultAppearance*)  default_appearance

Constructor, with another default appearance object.

Parameters
[in]default_appearanceAnother default appearance object.

◆ initWithFlags:font:text_size:text_color:

- (id) initWithFlags: (unsigned int)  flags
font: (FSFont *)  font
text_size: (float)  text_size
text_color: (unsigned int)  text_color 

◆ set:font:text_size:text_color:

- (void) set: (unsigned int)  flags
font: (FSFont*)  font
text_size: (float)  text_size
text_color: (unsigned int)  text_color 

Set value.

Parameters
[in]flagsFlags to indicate which properties of default appearance are meaningful. Please refer to values starting from FSDefaultAppearanceFlagFont and this can be one or a combination of these values.
[in]fontA font for default appearance. Please ensure this is a valid font object when parameter flags includes FSDefaultAppearanceFlagFont.
[in]text_sizeFont size for default appearance when parameter flags includes FSDefaultAppearanceFlagFontSize. Usually it should be above 0. For some objects, the size 0 has special meaning. Please refer to the comment of functions which are used to set default appearance data to other object.
[in]text_colorText color for default appearance. Format: 0xRRGGBB.
Returns
None.

Member Data Documentation

◆ swigCMemOwn

- (BOOL) swigCMemOwn
protected

◆ swigCPtr

- (void*) swigCPtr
protected

Property Documentation

◆ flags

- (unsigned int) flags
readwritenonatomicassign

Flags to indicate which properties of default appearance are meaningful.

Please refer to values starting from FSDefaultAppearanceFlagFont and this can be one or a combination of these values. 0 means no property of default appearance is meaningful.

◆ font

- (FSFont *) font
readwritenonatomiccopy

A font for default appearance. It should be a valid font object when it is useful.

Note
Useful only when flags of current object includes FSDefaultAppearanceFlagFont.

◆ text_color

- (unsigned int) text_color
readwritenonatomicassign

Text color for default appearance. Format: 0xRRGGBB.

Note
Useful only when flags of current object includes FSDefaultAppearanceFlagTextColor.

◆ text_size

- (float) text_size
readwritenonatomicassign

Text size for default appearance.

Usually it should be above 0 when it is useful. For some objects, the size 0 has special meaning. Please refer to the comment of functions which are used to set default appearance data to other object.

Note
Useful only when flags of current object includes FSDefaultAppearanceFlagFontSize.