Class PageSize
java.lang.Object
net.ixdarklord.folios.internal.client.PageSize
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic floatdrawn()How many GUI pixels a book pixel takes, aspixels().static floatfactor()How many times the default page the pages are now: 1 at the Auto GUI scale or above.static floatAsfactor()for a handheld book, whose pages stay the same size in the world and print smaller as they grow: no more than keeps its print at HANDHELD_PRINT of the window's pixels a pixel of the page, so it doesn't get too small to read (and a small window keeps the default page).static intheight(float factor) static intpixels()How many of the window's pixels a book pixel takes at a GUI scale smaller than Auto: one more than the GUI's own, so what is on the pages is drawn larger than the rest of the GUI (still a whole number, so the pixel font stays sharp), and the pages grow by the rest of what Auto would draw.static intwidth(float factor) A pagefactortimes the default, in whole pixels.
-
Field Details
-
MOST
public static final float MOSTThe most a page grows, across and down.- See Also:
-
-
Method Details
-
factor
public static float factor()How many times the default page the pages are now: 1 at the Auto GUI scale or above. -
pixels
public static int pixels()How many of the window's pixels a book pixel takes at a GUI scale smaller than Auto: one more than the GUI's own, so what is on the pages is drawn larger than the rest of the GUI (still a whole number, so the pixel font stays sharp), and the pages grow by the rest of what Auto would draw. No more than Auto's, and enough that the pages needn't grow past MOST. -
drawn
public static float drawn()How many GUI pixels a book pixel takes, aspixels(). -
handheldFactor
public static float handheldFactor()Asfactor()for a handheld book, whose pages stay the same size in the world and print smaller as they grow: no more than keeps its print at HANDHELD_PRINT of the window's pixels a pixel of the page, so it doesn't get too small to read (and a small window keeps the default page). -
width
public static int width(float factor) A pagefactortimes the default, in whole pixels. -
height
public static int height(float factor)
-