Class GraphicsOffload.Builder<B extends GraphicsOffload.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
Accessible.Builder<B>, BuilderInterface
Enclosing class:
GraphicsOffload

public static class GraphicsOffload.Builder<B extends GraphicsOffload.Builder<B>> extends Widget.Builder<B> implements Accessible.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
Since:
4.14
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public GraphicsOffload build()
      Finish building the GraphicsOffload object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to GraphicsOffload.
      Overrides:
      build in class Widget.Builder<B extends GraphicsOffload.Builder<B>>
      Returns:
      a new instance of GraphicsOffload with the properties that were set in the Builder object.
    • setBlackBackground

      public B setBlackBackground(boolean blackBackground)
      Whether to draw a black background.
      Parameters:
      blackBackground - the value for the black-background property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.16
    • setChild

      public B setChild(Widget child)
      The child widget.
      Parameters:
      child - the value for the child property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14
    • setEnabled

      public B setEnabled(GraphicsOffloadEnabled enabled)
      Whether graphics offload is enabled.
      Parameters:
      enabled - the value for the enabled property
      Returns:
      the Builder instance is returned, to allow method chaining
      Since:
      4.14