toggle menu
pspdfkit
PSPDFKit
switch theme
search in API
pspdfkit
/
com.pspdfkit.utils
/
Size
Size
open
class
Size
:
Comparable
<
T
>
,
Parcelable
Data structure representing a size.
Members
Constructors
Size
Link copied to clipboard
constructor
(
width
:
Float
,
height
:
Float
)
Creates a size representation.
Properties
CREATOR
Link copied to clipboard
val
CREATOR
:
Parcelable.Creator
<
Size
>
height
Link copied to clipboard
val
height
:
Float
width
Link copied to clipboard
val
width
:
Float
Functions
compare
To
Link copied to clipboard
open
fun
compareTo
(
@
NonNull
another
:
Size
)
:
Int
describe
Contents
Link copied to clipboard
open
fun
describeContents
(
)
:
Int
equals
Link copied to clipboard
open
fun
equals
(
o
:
Any
)
:
Boolean
hash
Code
Link copied to clipboard
open
fun
hashCode
(
)
:
Int
is
Portrait
Link copied to clipboard
open
fun
isPortrait
(
)
:
Boolean
Check if size has portrait orientation.
to
Landscape
Link copied to clipboard
@
NonNull
open
fun
toLandscape
(
)
:
Size
Create size in landscape orientation.
to
Portrait
Link copied to clipboard
@
NonNull
open
fun
toPortrait
(
)
:
Size
Create size in portrait orientation.
to
Rect
Link copied to clipboard
@
NonNull
open
fun
toRect
(
)
:
RectF
@
NonNull
open
fun
toRect
(
@
Nullable
reusableeRect
:
RectF
)
:
RectF
Expresses this size as (0, 0, width, height) rect.
to
String
Link copied to clipboard
open
fun
toString
(
)
:
String
write
To
Parcel
Link copied to clipboard
open
fun
writeToParcel
(
dest
:
Parcel
,
flags
:
Int
)