Class: RubyQt6::QtWidgets::QSystemTrayIcon
- Inherits:
-
RubyQt6::QtCore::QObject
- Object
- RubyQt6::QtCore::QObject
- RubyQt6::QtWidgets::QSystemTrayIcon
- Defined in:
- lib/qt6/qtwidgets/qsystemtrayicon.rb
Overview
Defined Under Namespace
Classes: ActivationReason, MessageIcon
Constant Summary collapse
- INITIALIZE_ARG_ERROR_MESSAGE =
"Could not resolve method call for #{name}#initialize\n" \ " 2 overload(s) were evaluated based on the types of Ruby parameters provided:\n" \ " initialize(QObject)\n" \ " initialize(QIcon, QObject)\n"
Instance Method Summary collapse
- #initialize(*args) ⇒ QSystemTrayIcon constructor
Constructor Details
#initialize(parent = nil) ⇒ QSystemTrayIcon #initialize(icon, parent = nil) ⇒ QSystemTrayIcon
43 44 45 46 47 48 49 50 51 |
# File 'lib/qt6/qtwidgets/qsystemtrayicon.rb', line 43 def initialize(*args) parent = T.args_nth_delete_qobject(args, -1) case args.size when 0 then _initialize(QtGui::QIcon.new, parent) when 1 then _initialize(args[-1], parent) else raise ArgumentError, INITIALIZE_ARG_ERROR_MESSAGE end _take_ownership_from_ruby(self) end |