Class Border

All Implemented Interfaces:
Proxy

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

Specifies a border around a rectangular area.

Each side can have a different width.

  • Constructor Details

    • Border

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

      public Border()
      Allocates a new GtkBorder struct and initializes its elements to zero.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the Border class.
      Returns:
      the GType
    • getMemoryLayout

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

      public short readLeft()
      Read the value of the field left.
      Returns:
      The value of the field left
    • writeLeft

      public void writeLeft(short left)
      Write a value in the field left.
      Parameters:
      left - The new value for the field left
    • readRight

      public short readRight()
      Read the value of the field right.
      Returns:
      The value of the field right
    • writeRight

      public void writeRight(short right)
      Write a value in the field right.
      Parameters:
      right - The new value for the field right
    • readTop

      public short readTop()
      Read the value of the field top.
      Returns:
      The value of the field top
    • writeTop

      public void writeTop(short top)
      Write a value in the field top.
      Parameters:
      top - The new value for the field top
    • readBottom

      public short readBottom()
      Read the value of the field bottom.
      Returns:
      The value of the field bottom
    • writeBottom

      public void writeBottom(short bottom)
      Write a value in the field bottom.
      Parameters:
      bottom - The new value for the field bottom
    • copy

      public Border copy()
      Copies a GtkBorder.
      Returns:
      a copy of border.
    • free

      public void free()
      Frees a GtkBorder.