Class VolumeButton.Builder<B extends VolumeButton.Builder<B>>

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

public static class VolumeButton.Builder<B extends VolumeButton.Builder<B>> extends ScaleButton.Builder<B> implements Accessible.Builder<B>, Orientable.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

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

    • build

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

      @Deprecated public B setUseSymbolic(boolean useSymbolic)
      Deprecated.
      This widget will be removed in GTK 5

      Whether to use symbolic icons as the icons.

      Note that if the symbolic icons are not available in your installed theme, then the normal (potentially colorful) icons will be used.

      Parameters:
      useSymbolic - the value for the use-symbolic property
      Returns:
      the Builder instance is returned, to allow method chaining