Package org.gnome.gtk
Class Border
java.lang.Object
io.github.jwharm.javagi.base.ProxyInstance
org.gnome.gtk.Border
- All Implemented Interfaces:
Proxy
A struct that specifies a border around a rectangular area.
Each side can have different width.
-
Constructor Summary
ConstructorDescriptionBorder()
Allocates a newGtkBorder
struct and initializes its elements to zero.Border
(MemorySegment address) Create a Border proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Copies aGtkBorder
.void
free()
Frees aGtkBorder
.static MemoryLayout
The memory layout of the native struct.static Type
getType()
Get the GType of the Border classshort
Read the value of the fieldbottom
.short
readLeft()
Read the value of the fieldleft
.short
Read the value of the fieldright
.short
readTop()
Read the value of the fieldtop
.void
writeBottom
(short bottom) Write a value in the fieldbottom
.void
writeLeft
(short left) Write a value in the fieldleft
.void
writeRight
(short right) Write a value in the fieldright
.void
writeTop
(short top) Write a value in the fieldtop
.Methods inherited from class io.github.jwharm.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
Border
Create a Border proxy instance for the provided memory address.- Parameters:
address
- the memory address of the native object
-
Border
public Border()Allocates a newGtkBorder
struct and initializes its elements to zero.
-
-
Method Details
-
getType
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
readLeft
public short readLeft()Read the value of the fieldleft
.- Returns:
- The value of the field
left
-
writeLeft
public void writeLeft(short left) Write a value in the fieldleft
.- Parameters:
left
- The new value for the fieldleft
-
readRight
public short readRight()Read the value of the fieldright
.- Returns:
- The value of the field
right
-
writeRight
public void writeRight(short right) Write a value in the fieldright
.- Parameters:
right
- The new value for the fieldright
-
readTop
public short readTop()Read the value of the fieldtop
.- Returns:
- The value of the field
top
-
writeTop
public void writeTop(short top) Write a value in the fieldtop
.- Parameters:
top
- The new value for the fieldtop
-
readBottom
public short readBottom()Read the value of the fieldbottom
.- Returns:
- The value of the field
bottom
-
writeBottom
public void writeBottom(short bottom) Write a value in the fieldbottom
.- Parameters:
bottom
- The new value for the fieldbottom
-
copy
-
free
public void free()Frees aGtkBorder
.
-