Package org.gnome.gtk
Class PageRange
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtk.PageRange
- All Implemented Interfaces:
Proxy
A range of pages to print.
See also PrintSettings.setPageRanges(org.gnome.gtk.PageRange[]).
-
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new PageRange.PageRange(int start, int end) Allocate a new PageRange with the fields set to the provided values.Allocate a new PageRange with the fields set to the provided values.Allocate a new PageRange.PageRange(MemorySegment address) Create a PageRange proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.intreadEnd()Read the value of the fieldend.intRead the value of the fieldstart.voidwriteEnd(int end) Write a value in the fieldend.voidwriteStart(int start) Write a value in the fieldstart.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
PageRange
Create a PageRange proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
PageRange
Allocate a new PageRange.- Parameters:
arena- to control the memory allocation scope
-
PageRange
public PageRange()Allocate a new PageRange. The memory is allocated withArena.ofAuto(). -
PageRange
Allocate a new PageRange with the fields set to the provided values.- Parameters:
start- value for the fieldstartend- value for the fieldendarena- 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 withArena.ofAuto().- Parameters:
start- value for the fieldstartend- value for the fieldend
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readStart
public int readStart()Read the value of the fieldstart.- Returns:
- The value of the field
start
-
writeStart
public void writeStart(int start) Write a value in the fieldstart.- Parameters:
start- The new value for the fieldstart
-
readEnd
public int readEnd()Read the value of the fieldend.- Returns:
- The value of the field
end
-
writeEnd
public void writeEnd(int end) Write a value in the fieldend.- Parameters:
end- The new value for the fieldend
-