アットウィキロゴ

ZAttributedString

ZAttributedString


 class ZAttributedString
   class EnumerationOptions
     Reverse, LongestEffectiveRangeNotRequired = (1 << 1), (1 << 20)
   end
   ZFontAttributeName = "ZFontAttributeName".freeze
   ZForegroundColorAttributeName = "ZForegroundColorAttributeName".freeze
   ZBackgroundColorAttributeName = "ZBackgroundColorAttributeName".freeze
   ZUnderlineStyleAttributeName = "ZUnderlineStyleAttributeName".freeze
   class UnderlineStyle
     None, Single = 0x00, 0x01
     Mask = 0x00FF
   end
   class UnderlinePattern
     Solid = 0x0000
     Mask = 0xFF00
   end
   
   
   def initialize(string=nil, attributes={})
     @buffer, @attributes = string, attributes
   end
   attr_reader :length, :string
   def init_with_attributed_string(attr)
     self
   end
   def init_with_string(str)
     @buffer = str; self
   end
   def init
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
 end


 class ZAttributeRun
   def initialize(index=nil, attr={})
     @index, @attributes= index, attr
     self
   end
   def self.attribute_run_with_index(idx, attrs)
     ZAttributeRun.new(idx, attrs)
   end
   def init_with_index(idx, attrs)
     @index, @attributes = idx, attrs
     self
   end
   
   
   
   
   
   
   
   
   
   
 end

タグ:

+ タグ編集
  • タグ:
最終更新:2010年06月18日 22:57
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。