Package org.gnome.gtk
Class PageRange
java.lang.Object
io.github.jwharm.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
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.int
readEnd()
Read the value of the fieldend
.int
Read the value of the fieldstart
.void
writeEnd
(int end) Write a value in the fieldend
.void
writeStart
(int start) Write a value in the fieldstart
.Methods inherited from class io.github.jwharm.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 fieldstart
end
- value for the fieldend
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 withArena.ofAuto()
.- Parameters:
start
- value for the fieldstart
end
- 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
-