Class: Gdk::Display

Inherits:
Object
  • Object
show all
Defined in:
lib/gtk4/gdk-display.rb

Overview

Not Gtk!

Instance Method Summary collapse

Instance Method Details

#add_style_provider(provider, priority = nil) ⇒ Object



19
20
21
# File 'lib/gtk4/gdk-display.rb', line 19

def add_style_provider(provider, priority=nil)
  Gtk::StyleContext.add_provider_for_display(self, provider, priority)
end

#icon_themeObject



27
28
29
# File 'lib/gtk4/gdk-display.rb', line 27

def icon_theme
  Gtk::IconTheme.get_for_display(self)
end

#remove_style_provider(provider) ⇒ Object



23
24
25
# File 'lib/gtk4/gdk-display.rb', line 23

def remove_style_provider(provider)
  Gtk::StyleContext.remove_provider_for_display(self, provider)
end