linux_backlight Derived Type

type, private :: linux_backlight


Inherited by

type~~linux_backlight~~InheritedByGraph type~linux_backlight linux_backlight type~cluster cluster type~cluster->type~linux_backlight backlight

Contents

Source Code


Components

Type Visibility Attributes Name Initial
character(len=:), public, allocatable :: debug
character(len=:), public, allocatable :: path_backlight
integer, public :: actual_brightness
integer, public :: brightness
integer, public :: max_brightness

Type-Bound Procedures

procedure, public, :: set_debug => set_backlight_debug_switch

  • private pure elemental subroutine set_backlight_debug_switch(this, debug)

    Author
    Seyed Ali Ghasemi

    Arguments

    Type IntentOptional Attributes Name
    class(linux_backlight), intent(inout) :: this
    character(len=*), intent(in) :: debug

procedure, public, :: select => select_backlight

  • private impure elemental subroutine select_backlight(this)

    Author
    Seyed Ali Ghasemi

    Arguments

    Type IntentOptional Attributes Name
    class(linux_backlight), intent(inout) :: this

procedure, public, :: get_actual_brightness => get_backlight_actual_brightness

  • private impure elemental subroutine get_backlight_actual_brightness(this, actual_brightness)

    Author
    Seyed Ali Ghasemi

    Arguments

    Type IntentOptional Attributes Name
    class(linux_backlight), intent(inout) :: this
    integer, intent(out), optional :: actual_brightness

procedure, public, :: get_max_brightness => get_backlight_max_brightness

  • private impure elemental subroutine get_backlight_max_brightness(this, max_brightness)

    Author
    Seyed Ali Ghasemi

    Arguments

    Type IntentOptional Attributes Name
    class(linux_backlight), intent(inout) :: this
    integer, intent(out), optional :: max_brightness

procedure, public, :: set_brightness => set_backlight_brightness

  • private impure elemental subroutine set_backlight_brightness(this, brightness)

    Author
    Seyed Ali Ghasemi

    Arguments

    Type IntentOptional Attributes Name
    class(linux_backlight), intent(inout) :: this
    integer, intent(in) :: brightness

procedure, public, :: deselect => deallocate_linux_backlight

Source Code

   type :: linux_backlight
      character(len=:), allocatable :: debug
      character(len=:), allocatable :: path_backlight
      integer                       :: actual_brightness
      integer                       :: brightness
      integer                       :: max_brightness
   contains
      procedure :: set_debug              => set_backlight_debug_switch
      procedure :: select                 => select_backlight
      procedure :: get_actual_brightness  => get_backlight_actual_brightness
      procedure :: get_max_brightness     => get_backlight_max_brightness
      procedure :: set_brightness         => set_backlight_brightness

      procedure :: deselect               => deallocate_linux_backlight
   end type linux_backlight