[macruby-changes] [1826] MacRuby/trunk/lib/hotcocoa/mappings/button.rb
source_changes at macosforge.org
source_changes at macosforge.org
Mon Jun 8 23:47:23 PDT 2009
Revision: 1826
http://trac.macosforge.org/projects/ruby/changeset/1826
Author: rich at infoether.com
Date: 2009-06-08 23:47:23 -0700 (Mon, 08 Jun 2009)
Log Message:
-----------
add image position constant mapping per #274
Modified Paths:
--------------
MacRuby/trunk/lib/hotcocoa/mappings/button.rb
Modified: MacRuby/trunk/lib/hotcocoa/mappings/button.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/button.rb 2009-06-09 06:44:28 UTC (rev 1825)
+++ MacRuby/trunk/lib/hotcocoa/mappings/button.rb 2009-06-09 06:47:23 UTC (rev 1826)
@@ -38,6 +38,16 @@
:off => NSOffState,
:mixed => NSMixedState
}
+
+ constant :image_position, {
+ :text_only => NSNoImage,
+ :image_only => NSImageOnly,
+ :overlaps => NSImageOverlaps,
+ :left => NSImageLeft,
+ :right => NSImageRight,
+ :below => NSImageBelow,
+ :above => NSImageAbove
+ }
def init_with_options(button, options)
button.initWithFrame options.delete(:frame)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macruby-changes/attachments/20090608/890fdd2e/attachment-0001.html>
More information about the macruby-changes
mailing list