Class XSetWindowAttributes

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer


    public class XSetWindowAttributes
    extends Struct
    implements NativeResource
    Data structure for setting window attributes.

    Layout

     struct XSetWindowAttributes {
         Pixmap background_pixmap;
         unsigned long background_pixel;
         Pixmap border_pixmap;
         unsigned long border_pixel;
         int bit_gravity;
         int win_gravity;
         int backing_store;
         unsigned long backing_planes;
         unsigned long backing_pixel;
         Bool save_under;
         long event_mask;
         long do_not_propagate_mask;
         Bool override_redirect;
         Colormap colormap;
         Cursor cursor;
     }
    • Field Detail

      • SIZEOF

        public static final int SIZEOF
        The struct size in bytes.
    • Constructor Detail

      • XSetWindowAttributes

        public XSetWindowAttributes(java.nio.ByteBuffer container)
        Creates a XSetWindowAttributes instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

        The created instance holds a strong reference to the container object.

    • Method Detail

      • sizeof

        public int sizeof()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class Struct
      • background_pixmap

        public long background_pixmap()
        Returns the value of the background_pixmap field.
      • background_pixel

        public long background_pixel()
        Returns the value of the background_pixel field.
      • border_pixmap

        public long border_pixmap()
        Returns the value of the border_pixmap field.
      • border_pixel

        public long border_pixel()
        Returns the value of the border_pixel field.
      • bit_gravity

        public int bit_gravity()
        Returns the value of the bit_gravity field.
      • win_gravity

        public int win_gravity()
        Returns the value of the win_gravity field.
      • backing_store

        public int backing_store()
        Returns the value of the backing_store field.
      • backing_planes

        public long backing_planes()
        Returns the value of the backing_planes field.
      • backing_pixel

        public long backing_pixel()
        Returns the value of the backing_pixel field.
      • save_under

        public boolean save_under()
        Returns the value of the save_under field.
      • event_mask

        public long event_mask()
        Returns the value of the event_mask field.
      • do_not_propagate_mask

        public long do_not_propagate_mask()
        Returns the value of the do_not_propagate_mask field.
      • override_redirect

        public boolean override_redirect()
        Returns the value of the override_redirect field.
      • colormap

        public long colormap()
        Returns the value of the colormap field.
      • cursor

        public long cursor()
        Returns the value of the cursor field.
      • background_pixmap

        public XSetWindowAttributes background_pixmap(long value)
        Sets the specified value to the background_pixmap field.
      • background_pixel

        public XSetWindowAttributes background_pixel(long value)
        Sets the specified value to the background_pixel field.
      • border_pixmap

        public XSetWindowAttributes border_pixmap(long value)
        Sets the specified value to the border_pixmap field.
      • border_pixel

        public XSetWindowAttributes border_pixel(long value)
        Sets the specified value to the border_pixel field.
      • bit_gravity

        public XSetWindowAttributes bit_gravity(int value)
        Sets the specified value to the bit_gravity field.
      • win_gravity

        public XSetWindowAttributes win_gravity(int value)
        Sets the specified value to the win_gravity field.
      • backing_store

        public XSetWindowAttributes backing_store(int value)
        Sets the specified value to the backing_store field.
      • backing_planes

        public XSetWindowAttributes backing_planes(long value)
        Sets the specified value to the backing_planes field.
      • backing_pixel

        public XSetWindowAttributes backing_pixel(long value)
        Sets the specified value to the backing_pixel field.
      • save_under

        public XSetWindowAttributes save_under(boolean value)
        Sets the specified value to the save_under field.
      • event_mask

        public XSetWindowAttributes event_mask(long value)
        Sets the specified value to the event_mask field.
      • do_not_propagate_mask

        public XSetWindowAttributes do_not_propagate_mask(long value)
        Sets the specified value to the do_not_propagate_mask field.
      • override_redirect

        public XSetWindowAttributes override_redirect(boolean value)
        Sets the specified value to the override_redirect field.
      • colormap

        public XSetWindowAttributes colormap(long value)
        Sets the specified value to the colormap field.
      • cursor

        public XSetWindowAttributes cursor(long value)
        Sets the specified value to the cursor field.
      • set

        public XSetWindowAttributes set(long background_pixmap,
                                        long background_pixel,
                                        long border_pixmap,
                                        long border_pixel,
                                        int bit_gravity,
                                        int win_gravity,
                                        int backing_store,
                                        long backing_planes,
                                        long backing_pixel,
                                        boolean save_under,
                                        long event_mask,
                                        long do_not_propagate_mask,
                                        boolean override_redirect,
                                        long colormap,
                                        long cursor)
        Initializes this struct with the specified values.