Package org.gnome.gtk
Class Border
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtk.Border
- All Implemented Interfaces:
Proxy
Specifies a border around a rectangular area.
Each side can have a different width.
-
Constructor Summary
ConstructorsConstructorDescriptionBorder()Allocates a newGtkBorderstruct 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.voidfree()Frees aGtkBorder.static MemoryLayoutThe memory layout of the native struct.static @Nullable TypegetType()Get the GType of the Border classshortRead the value of the fieldbottom.shortreadLeft()Read the value of the fieldleft.shortRead the value of the fieldright.shortreadTop()Read the value of the fieldtop.voidwriteBottom(short bottom) Write a value in the fieldbottom.voidwriteLeft(short left) Write a value in the fieldleft.voidwriteRight(short right) Write a value in the fieldright.voidwriteTop(short top) Write a value in the fieldtop.Methods inherited from class org.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 newGtkBorderstruct 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.
-