Class PageRange

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class PageRange extends ProxyInstance

A range of pages to print.

See also PrintSettings.setPageRanges(PageRange[]).

  • Constructor Details

    • PageRange

      public PageRange(MemorySegment address)
      Create a PageRange proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • PageRange

      public PageRange(Arena arena)
      Allocate a new PageRange.
      Parameters:
      arena - to control the memory allocation scope
    • PageRange

      public PageRange()
      Allocate a new PageRange. The memory is allocated with Arena.ofAuto().
    • PageRange

      public PageRange(int start, int end, Arena arena)
      Allocate a new PageRange with the fields set to the provided values.
      Parameters:
      start - value for the field start
      end - value for the field end
      arena - to control the memory allocation scope
    • PageRange

      public PageRange(int start, int end)
      Allocate a new PageRange with the fields set to the provided values. The memory is allocated with Arena.ofAuto().
      Parameters:
      start - value for the field start
      end - value for the field end
  • Method Details

    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • readStart

      public int readStart()
      Read the value of the field start.
      Returns:
      The value of the field start
    • writeStart

      public void writeStart(int start)
      Write a value in the field start.
      Parameters:
      start - The new value for the field start
    • readEnd

      public int readEnd()
      Read the value of the field end.
      Returns:
      The value of the field end
    • writeEnd

      public void writeEnd(int end)
      Write a value in the field end.
      Parameters:
      end - The new value for the field end