Class Tk::TreeCtrl
In: tk/lib/tkextlib/treectrl/tktreectrl.rb
Parent: TkWindow

Methods

Classes and Modules

Module Tk::TreeCtrl::ConfigMethod
Class Tk::TreeCtrl::NotifyEvent

Constants

BindTag_FileList = TkBindTag.new_by_name('TreeCtrlFileList')
PACKAGE_NAME = 'treectrl'.freeze
HasColumnCreateCommand = (TkPackage.vcompare(self.package_version, '1.1') >= 0)

Public Class methods

[Source]

# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 61
    def self.image_tint(img, color, alpha)
      Tk.tk_call_without_enc('imagetint', img, color, alpha)
    end

[Source]

# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 47
    def self.loupe(img, x, y, w, h, zoom)
      # NOTE: platform == 'unix' only

      # img  => TkPhotoImage
      # x, y => screen coords 
      # w, h => magnifier width and height
      # zoom => zooming rate
      Tk.tk_call_without_enc('loupe', img, x, y, w, h, zoom)
    end

[Source]

# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 23
    def self.package_name
      PACKAGE_NAME
    end

[Source]

# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 27
    def self.package_version
      begin
        TkPackage.require('treectrl')
      rescue
        ''
      end
    end

[Source]

# File tk/lib/tkextlib/treectrl/tktreectrl.rb, line 57
    def self.text_layout(font, text, keys={})
      TkComm.list(Tk.tk_call_without_enc('textlayout', font, text, keys))
    end

[Validate]