fxruby 1.6.0 → 1.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/doc/apes02.html +2 -2
- data/doc/apes03.html +1 -1
- data/doc/book.html +1 -1
- data/doc/changes.html +459 -0
- data/doc/cvs.html +2 -2
- data/doc/differences.html +3 -3
- data/doc/implementation.html +1 -1
- data/doc/infosources.html +2 -2
- data/doc/library.html +5 -5
- data/doc/opengl.html +5 -5
- data/doc/pt01.html +1 -1
- data/doc/pt02.html +1 -1
- data/doc/scintilla.html +4 -4
- data/examples/dilbert.rb +10 -47
- data/examples/rulerview.rb +27 -0
- data/examples/textedit/commands.rb +21 -27
- data/examples/textedit/textedit.rb +9 -16
- data/ext/fox16/FXRuby.cpp +11 -6
- data/ext/fox16/core_wrap.cpp +90 -82
- data/ext/fox16/dialogs_wrap.cpp +52 -37
- data/ext/fox16/frames_wrap.cpp +38 -38
- data/ext/fox16/fx3d_wrap.cpp +24 -9
- data/ext/fox16/iconlist_wrap.cpp +4 -4
- data/ext/fox16/icons_wrap.cpp +15 -6
- data/ext/fox16/image_wrap.cpp +15 -6
- data/ext/fox16/impl.cpp +7 -0
- data/ext/fox16/include/FXRbRulerView.h +54 -0
- data/ext/fox16/include/FXRuby.h +7 -5
- data/ext/fox16/include/impl.h +1 -0
- data/ext/fox16/include/inlinestubs.h +7 -0
- data/ext/fox16/label_wrap.cpp +20 -20
- data/ext/fox16/layout_wrap.cpp +30 -30
- data/ext/fox16/list_wrap.cpp +3 -3
- data/ext/fox16/markfuncs.cpp +13 -1
- data/ext/fox16/mdi_wrap.cpp +42 -27
- data/ext/fox16/menu_wrap.cpp +46 -31
- data/ext/fox16/scintilla_wrap.cpp +26 -8
- data/ext/fox16/table_wrap.cpp +33 -13
- data/ext/fox16/text_wrap.cpp +27 -8
- data/ext/fox16/treelist_wrap.cpp +30 -12
- data/ext/fox16/ui_wrap.cpp +857 -92
- data/lib/fox16/aliases.rb +63 -0
- data/lib/fox16/chore.rb +48 -6
- data/lib/fox16/core.rb +0 -16
- data/lib/fox16/timeout.rb +74 -10
- data/lib/fox16/version.rb +1 -1
- data/rdoc-sources/FXApp.rb +0 -72
- data/rdoc-sources/FXFont.rb +3 -0
- data/rdoc-sources/FXRulerView.rb +225 -0
- data/rdoc-sources/FXText.rb +1 -1
- data/rdoc-sources/FXWindow.rb +1 -1
- data/tests/TC_FXComboBox.rb +6 -0
- data/web/home.html +1 -0
- metadata +9 -4
data/lib/fox16/aliases.rb
CHANGED
@@ -3695,6 +3695,69 @@ module Fox
|
|
3695
3695
|
end
|
3696
3696
|
end
|
3697
3697
|
|
3698
|
+
class FXRulerView
|
3699
|
+
alias documentX getDocumentX
|
3700
|
+
alias documentY getDocumentY
|
3701
|
+
alias documentColor getDocumentColor
|
3702
|
+
alias documentColor= setDocumentColor
|
3703
|
+
alias documentWidth getDocumentWidth
|
3704
|
+
alias documentWidth= setDocumentWidth
|
3705
|
+
alias documentHeight getDocumentHeight
|
3706
|
+
alias documentHeight= setDocumentHeight
|
3707
|
+
alias hEdgeSpacing getHEdgeSpacing
|
3708
|
+
alias hEdgeSpacing= setHEdgeSpacing
|
3709
|
+
alias vEdgeSpacing getVEdgeSpacing
|
3710
|
+
alias vEdgeSpacing= setVEdgeSpacing
|
3711
|
+
alias hMarginLower getHMarginLower
|
3712
|
+
alias hMarginLower= setHMarginLower
|
3713
|
+
alias hMarginUpper getHMarginUpper
|
3714
|
+
alias hMarginUpper= setHMarginUpper
|
3715
|
+
alias vMarginLower getVMarginLower
|
3716
|
+
alias vMarginLower= setVMarginLower
|
3717
|
+
alias vMarginUpper getVMarginUpper
|
3718
|
+
alias vMarginUpper= setVMarginUpper
|
3719
|
+
alias hAlignment getHAlignment
|
3720
|
+
alias hAlignment= setHAlignment
|
3721
|
+
alias vAlignment getVAlignment
|
3722
|
+
alias vAlignment= setVAlignment
|
3723
|
+
alias hRulerFont getHRulerFont
|
3724
|
+
alias hRulerFont= setHRulerFont
|
3725
|
+
alias vRulerFont getVRulerFont
|
3726
|
+
alias vRulerFont= setVRulerFont
|
3727
|
+
alias hNumberTicks getHNumberTicks
|
3728
|
+
alias hNumberTicks= setHNumberTicks
|
3729
|
+
alias vNumberTicks getVNumberTicks
|
3730
|
+
alias vNumberTicks= setVNumberTicks
|
3731
|
+
alias hMajorTicks getHMajorTicks
|
3732
|
+
alias hMajorTicks= setHMajorTicks
|
3733
|
+
alias vMajorTicks getVMajorTicks
|
3734
|
+
alias vMajorTicks= setVMajorTicks
|
3735
|
+
alias hMediumTicks getHMediumTicks
|
3736
|
+
alias hMediumTicks= setHMediumTicks
|
3737
|
+
alias vMediumTicks getVMediumTicks
|
3738
|
+
alias vMediumTicks= setVMediumTicks
|
3739
|
+
alias hTinyTicks getHTinyTicks
|
3740
|
+
alias hTinyTicks= setHTinyTicks
|
3741
|
+
alias vTinyTicks getVTinyTicks
|
3742
|
+
alias vTinyTicks= setVTinyTicks
|
3743
|
+
alias hPixelsPerTick getHPixelsPerTick
|
3744
|
+
alias hPixelsPerTick= setHPixelsPerTick
|
3745
|
+
alias vPixelsPerTick getVPixelsPerTick
|
3746
|
+
alias vPixelsPerTick= setVPixelsPerTick
|
3747
|
+
alias arrowPosX getArrowPosX
|
3748
|
+
alias arrowPosX= setArrowPosX
|
3749
|
+
alias arrowPosY getArrowPosY
|
3750
|
+
alias arrowPosY= setArrowPosY
|
3751
|
+
alias hRulerStyle getHRulerStyle
|
3752
|
+
alias hRulerStyle= setHRulerStyle
|
3753
|
+
alias vRulerStyle getVRulerStyle
|
3754
|
+
alias vRulerStyle= setVRulerStyle
|
3755
|
+
alias helpText getHelpText
|
3756
|
+
alias helpText= setHelpText
|
3757
|
+
alias tipText getTipText
|
3758
|
+
alias tipText= setTipText
|
3759
|
+
end
|
3760
|
+
|
3698
3761
|
class FXScrollArea
|
3699
3762
|
def viewportWidth(*args) # :nodoc:
|
3700
3763
|
getViewportWidth(*args)
|
data/lib/fox16/chore.rb
CHANGED
@@ -3,7 +3,9 @@ require 'fox16'
|
|
3
3
|
module Fox
|
4
4
|
class FXApp
|
5
5
|
|
6
|
-
alias addChoreOrig
|
6
|
+
alias addChoreOrig addChore # :nodoc:
|
7
|
+
alias removeChoreOrig removeChore # :nodoc:
|
8
|
+
alias hasChoreOrig? hasChore? # :nodoc:
|
7
9
|
|
8
10
|
#
|
9
11
|
# Add a idle processing message to be sent to a target object when
|
@@ -11,11 +13,13 @@ module Fox
|
|
11
13
|
# There are several forms for #addChore; the original form (from FOX)
|
12
14
|
# takes two arguments, a target object and a message identifier:
|
13
15
|
#
|
14
|
-
#
|
16
|
+
# app.addChore(tgt, sel)
|
17
|
+
#
|
18
|
+
# If a chore with the same target and message already exists, it will be rescheduled.
|
15
19
|
#
|
16
20
|
# A second form takes a Method instance as its single argument:
|
17
21
|
#
|
18
|
-
#
|
22
|
+
# app.addChore(mthd)
|
19
23
|
#
|
20
24
|
# For this form, the method should have the standard argument list
|
21
25
|
# for a FOX message handler. That is, the method should take three
|
@@ -24,9 +28,9 @@ module Fox
|
|
24
28
|
#
|
25
29
|
# The last form takes a block:
|
26
30
|
#
|
27
|
-
#
|
28
|
-
#
|
29
|
-
#
|
31
|
+
# app.addChore() { |sender, sel, data|
|
32
|
+
# ... handle the chore ...
|
33
|
+
# }
|
30
34
|
#
|
31
35
|
# All of these return a reference to an opaque FXChore instance that
|
32
36
|
# can be passed to #removeChore if it is necessary to remove the chore
|
@@ -46,6 +50,44 @@ module Fox
|
|
46
50
|
tgt.pconnect(SEL_CHORE, nil, block)
|
47
51
|
end
|
48
52
|
addChoreOrig(tgt, sel)
|
53
|
+
return { :target => tgt, :selector => sel }
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Remove idle processing message identified by _tgt_ and _sel_.
|
58
|
+
# See the documentation for #hasChore? for an example of how to use
|
59
|
+
# the #removeChore method.
|
60
|
+
#
|
61
|
+
def removeChore(*args)
|
62
|
+
if args.length == 2
|
63
|
+
removeChoreOrig(args[0], args[1])
|
64
|
+
else
|
65
|
+
hsh = args[0]
|
66
|
+
removeChoreOrig(hsh[:target], hsh[:selector])
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
#
|
71
|
+
# Return +true+ if given chore has been set, otherwise return +false+.
|
72
|
+
#
|
73
|
+
# For example, you might set up a chore at some point in the execution:
|
74
|
+
#
|
75
|
+
# chore = app.addChore { ... }
|
76
|
+
#
|
77
|
+
# but decide that you want to "cancel" that chore later (before it's had a chance to run):
|
78
|
+
#
|
79
|
+
# if app.hasChore?(chore)
|
80
|
+
# app.removeChore(chore)
|
81
|
+
# end
|
82
|
+
#
|
83
|
+
def hasChore?(*args)
|
84
|
+
if args.length == 2
|
85
|
+
hasChoreOrig?(args[0], args[1])
|
86
|
+
else
|
87
|
+
hsh = args[0]
|
88
|
+
hasChoreOrig?(hsh[:target], hsh[:selector])
|
89
|
+
end
|
49
90
|
end
|
91
|
+
|
50
92
|
end
|
51
93
|
end
|
data/lib/fox16/core.rb
CHANGED
@@ -567,22 +567,6 @@ module Fox
|
|
567
567
|
end
|
568
568
|
end
|
569
569
|
|
570
|
-
def FXDockBar
|
571
|
-
#
|
572
|
-
# Return +true+ if _side_ is an allowed side.
|
573
|
-
#
|
574
|
-
def allowedSide?(side)
|
575
|
-
(allowedSides & side) != 0
|
576
|
-
end
|
577
|
-
|
578
|
-
#
|
579
|
-
# Add _side_ as an allowed side.
|
580
|
-
#
|
581
|
-
def allowSide(side)
|
582
|
-
self.allowedSides = allowedSides & side
|
583
|
-
end
|
584
|
-
end
|
585
|
-
|
586
570
|
class FXHVec
|
587
571
|
def normalize!
|
588
572
|
normalized = self.normalize
|
data/lib/fox16/timeout.rb
CHANGED
@@ -3,25 +3,31 @@ require 'fox16'
|
|
3
3
|
module Fox
|
4
4
|
class FXApp
|
5
5
|
|
6
|
-
alias addTimeoutOrig
|
6
|
+
alias addTimeoutOrig addTimeout # :nodoc:
|
7
|
+
alias removeTimeoutOrig removeTimeout # :nodoc:
|
8
|
+
alias hasTimeoutOrig hasTimeout? # :nodoc:
|
9
|
+
alias remainingTimeoutOrig remainingTimeout # :nodoc:
|
7
10
|
|
8
11
|
#
|
9
|
-
#
|
10
|
-
# the timer fires only once after the interval expires.
|
12
|
+
# Add a timeout message to be sent to target object in _ms_ milliseconds;
|
13
|
+
# the timer fires only once after the interval expires. The last argument
|
14
|
+
# is optional user data which will be passed along as the _ptr_ argument of
|
15
|
+
# the message handler. If a timer with the same target and message already exists,
|
16
|
+
# it will be rescheduled.
|
11
17
|
#
|
12
18
|
# There are several forms for #addTimeout; the original form (from FOX)
|
13
19
|
# takes three arguments:
|
14
20
|
#
|
15
|
-
#
|
21
|
+
# timeout = app.addTimeout(delay, tgt, sel)
|
16
22
|
#
|
17
|
-
# Here,
|
23
|
+
# Here, _delay_ is the time interval (in milliseconds) to wait
|
18
24
|
# before firing this timeout. The second and third arguments are the
|
19
25
|
# target object and message identifier for the message to be sent when
|
20
26
|
# this timeout fires.
|
21
27
|
#
|
22
28
|
# A second form of #addTimeout takes a Method instance as its single argument:
|
23
29
|
#
|
24
|
-
#
|
30
|
+
# timeout = app.addTimeout(delay, mthd)
|
25
31
|
#
|
26
32
|
# For this form, the method should have the standard argument list
|
27
33
|
# for a FOX message handler. That is, the method should take three
|
@@ -30,11 +36,11 @@ module Fox
|
|
30
36
|
#
|
31
37
|
# The last form of #addTimeout takes a block:
|
32
38
|
#
|
33
|
-
#
|
34
|
-
#
|
35
|
-
#
|
39
|
+
# timeout = app.addTimeout(delay) { |sender, sel, data|
|
40
|
+
# ... handle the timeout ...
|
41
|
+
# }
|
36
42
|
#
|
37
|
-
# All of these return a reference to an opaque
|
43
|
+
# All of these return a reference to an opaque object (actually, a hash) that
|
38
44
|
# can be passed to #removeTimeout if it is necessary to remove the timeout
|
39
45
|
# before it fires.
|
40
46
|
#
|
@@ -53,6 +59,64 @@ module Fox
|
|
53
59
|
tgt.pconnect(SEL_TIMEOUT, nil, block)
|
54
60
|
end
|
55
61
|
addTimeoutOrig(tgt, sel, ms)
|
62
|
+
return { :target => tgt, :selector => sel }
|
63
|
+
end
|
64
|
+
|
65
|
+
#
|
66
|
+
# Remove timeout previously registered using #addTimeout; returns +nil+.
|
67
|
+
# For an example of how to use #removeTimeout, see the documentation for
|
68
|
+
# the #hasTimeout? method.
|
69
|
+
#
|
70
|
+
def removeTimeout(*args)
|
71
|
+
if args.length == 2
|
72
|
+
removeTimeoutOrig(args[0], args[1])
|
73
|
+
else
|
74
|
+
hsh = args[0]
|
75
|
+
removeTimeoutOrig(hsh[:target], hsh[:selector])
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
#
|
80
|
+
# Return +true+ if given timeout has been set, otherwise return +false+.
|
81
|
+
#
|
82
|
+
# For example, suppose you set up a timeout event to run ten seconds from
|
83
|
+
# now:
|
84
|
+
#
|
85
|
+
# timeout = app.addTimeout(10*1000, ...)
|
86
|
+
#
|
87
|
+
# but in the meantime, you decide that you want to cancel it if it hasn't
|
88
|
+
# run yet:
|
89
|
+
#
|
90
|
+
# if app.hasTimeout?(timeout)
|
91
|
+
# app.removeTimeout(timeout)
|
92
|
+
# end
|
93
|
+
#
|
94
|
+
def hasTimeout?(*args)
|
95
|
+
if args.length == 2
|
96
|
+
hasTimeoutOrig?(args[0], args[1])
|
97
|
+
else
|
98
|
+
hsh = args[0]
|
99
|
+
hasTimeoutOrig?(hsh[:target], hsh[:selector])
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
#
|
104
|
+
# Return the time remaining (in milliseconds) until the given timer fires.
|
105
|
+
# If the timer is past due, zero is returned. If there is no such
|
106
|
+
# timer, infinity (UINT_MAX) is returned.
|
107
|
+
#
|
108
|
+
# For example:
|
109
|
+
#
|
110
|
+
# timeout = app.addTimeout(ms, ...)
|
111
|
+
# time_left = app.remainingTimeout(timeout)
|
112
|
+
#
|
113
|
+
def remainingTimeout(*args)
|
114
|
+
if args.length == 2
|
115
|
+
remainingTimeoutOrig(args[0], args[1])
|
116
|
+
else
|
117
|
+
hsh = args[0]
|
118
|
+
remainingTimeoutOrig(hsh[:target], hsh[:selector])
|
119
|
+
end
|
56
120
|
end
|
57
121
|
end
|
58
122
|
end
|
data/lib/fox16/version.rb
CHANGED
data/rdoc-sources/FXApp.rb
CHANGED
@@ -300,83 +300,11 @@ module Fox
|
|
300
300
|
# Return +true+ if input methods are supported.
|
301
301
|
def hasInputMethod?; end
|
302
302
|
|
303
|
-
#
|
304
|
-
# Add timeout message to be sent to target object in _ms_ milliseconds;
|
305
|
-
# the timer fires only once after the interval expires. The last argument
|
306
|
-
# is optional user data which will be passed along as the _ptr_ argument of
|
307
|
-
# the message handler. If a timer with the same target and message already exists,
|
308
|
-
# it will be rescheduled.
|
309
|
-
#
|
310
|
-
# ==== Parameters:
|
311
|
-
#
|
312
|
-
# +ms+:: timeout interval, in milliseconds [Integer]
|
313
|
-
# +tgt+:: target object for the timeout [FXObject]
|
314
|
-
# +sel+:: message identifier for the timeout [Integer]
|
315
|
-
# +ptr+:: user data [Object]
|
316
|
-
#
|
317
|
-
def addTimeout(ms, tgt, sel, ptr=nil) ; end
|
318
|
-
|
319
|
-
#
|
320
|
-
# Remove timeout identified by _tgt_ and _sel_; returns +nil+.
|
321
|
-
#
|
322
|
-
# ==== Parameters:
|
323
|
-
#
|
324
|
-
# +tgt+:: target object for the timeout [FXObject]
|
325
|
-
# +sel+:: message identifier for the timeout [Integer]
|
326
|
-
#
|
327
|
-
def removeTimeout(tgt, sel); end
|
328
|
-
|
329
|
-
#
|
330
|
-
# Return +true+ if given timeout has been set, otherwise return +false+.
|
331
|
-
#
|
332
|
-
# ==== Parameters:
|
333
|
-
#
|
334
|
-
# +tgt+:: target object for the timeout [FXObject]
|
335
|
-
# +sel+:: message identifier for the timeout [Integer]
|
336
|
-
#
|
337
|
-
def hasTimeout?(tgt, sel); end
|
338
|
-
|
339
|
-
#
|
340
|
-
# Return the time remaining (in milliseconds) until the given timer fires.
|
341
|
-
# If the timer is past due, zero is returned. If there is no such
|
342
|
-
# timer, infinity (UINT_MAX) is returned.
|
343
|
-
#
|
344
|
-
# ==== Parameters:
|
345
|
-
#
|
346
|
-
# +tgt+:: target object for the timeout [FXObject]
|
347
|
-
# +sel+:: message identifier for the timeout [Integer]
|
348
|
-
#
|
349
|
-
def remainingTimeout(tgt, sel); end
|
350
|
-
|
351
303
|
#
|
352
304
|
# Process any timeouts due at this time.
|
353
305
|
#
|
354
306
|
def handleTimeouts(); end
|
355
307
|
|
356
|
-
#
|
357
|
-
# Add a idle processing message to be sent to target object when
|
358
|
-
# the system becomes idle, i.e. there are no events to be processed.
|
359
|
-
# The void* ptr is user data which will be passed into the void* ptr
|
360
|
-
# of the message handler. If a chore with the same target and message
|
361
|
-
# already exists, it will be rescheduled.
|
362
|
-
#
|
363
|
-
def addChore(tgt, sel, ptr=nil) ; end
|
364
|
-
|
365
|
-
#
|
366
|
-
# Remove idle processing message identified by _tgt_ and _sel_.
|
367
|
-
#
|
368
|
-
def removeChore(tgt, sel); end
|
369
|
-
|
370
|
-
#
|
371
|
-
# Return +true+ if given chore has been set, otherwise return +false+.
|
372
|
-
#
|
373
|
-
# ==== Parameters:
|
374
|
-
#
|
375
|
-
# +tgt+:: target object for the chore [FXObject]
|
376
|
-
# +sel+:: message identifier for the chore [Integer]
|
377
|
-
#
|
378
|
-
def hasChore?(tgt, sel); end
|
379
|
-
|
380
308
|
#
|
381
309
|
# Add signal processing message to be sent to target object when
|
382
310
|
# the signal _sig_ is raised; flags are to be set as per POSIX definitions.
|
data/rdoc-sources/FXFont.rb
CHANGED
@@ -0,0 +1,225 @@
|
|
1
|
+
module Fox
|
2
|
+
#
|
3
|
+
# The Ruler View provides viewing of a document with rulers.
|
4
|
+
# It is intended to be subclassed in order to draw actual contents
|
5
|
+
# and provide editing behavior for the document.
|
6
|
+
# The ruler view itself simply manages the geometry of the document
|
7
|
+
# being edited, and coordinates the movement of the ruler displays
|
8
|
+
# as the document is being scrolled.
|
9
|
+
#
|
10
|
+
class FXRulerView < FXScrollArea
|
11
|
+
|
12
|
+
# Return a reference to the horizontal ruler [FXRuler]
|
13
|
+
attr_reader :horizontalRuler
|
14
|
+
|
15
|
+
# Return a reference to the vertical ruler [FXRuler]
|
16
|
+
attr_reader :verticalRuler
|
17
|
+
|
18
|
+
# Get document position X [Integer]
|
19
|
+
attr_reader :documentX
|
20
|
+
|
21
|
+
# Get document position Y [Integer]
|
22
|
+
attr_reader :documentY
|
23
|
+
|
24
|
+
# Current document color [FXColor]
|
25
|
+
attr_accessor :documentColor
|
26
|
+
|
27
|
+
# X arrow position, relative to document position [Integer]
|
28
|
+
attr_accessor :arrowPosX
|
29
|
+
|
30
|
+
# Y arrow position in document, relative to document position [Integer]
|
31
|
+
attr_accessor :arrowPosY
|
32
|
+
|
33
|
+
# Horizontal ruler style[Integer]
|
34
|
+
attr_accessor :hRulerStyle
|
35
|
+
|
36
|
+
# Vertical ruler style [Integer]
|
37
|
+
attr_accessor :vRulerStyle
|
38
|
+
|
39
|
+
# Status line help text [String]
|
40
|
+
attr_accessor :helpText
|
41
|
+
|
42
|
+
# Tool tip message [String]
|
43
|
+
attr_accessor :tipText
|
44
|
+
|
45
|
+
# Document width [Integer]
|
46
|
+
attr_accessor :documentWidth
|
47
|
+
|
48
|
+
# Document height [Integer]
|
49
|
+
attr_accessor :documentHeight
|
50
|
+
|
51
|
+
# Horizontal edge spacing around document [Integer]
|
52
|
+
attr_accessor :hEdgeSpacing
|
53
|
+
|
54
|
+
# Vertical edge spacing around document [Integer]
|
55
|
+
attr_accessor :vEdgeSpacing
|
56
|
+
|
57
|
+
# Horizontal lower margin [Integer]
|
58
|
+
attr_accessor :hMarginLower
|
59
|
+
|
60
|
+
# Horizontal upper margin [Integer]
|
61
|
+
attr_accessor :hMarginUpper
|
62
|
+
|
63
|
+
# Vertical lower margin [Integer]
|
64
|
+
attr_accessor :vMarginLower
|
65
|
+
|
66
|
+
# Vertical upper margin [Integer]
|
67
|
+
attr_accessor :vMarginUpper
|
68
|
+
|
69
|
+
# Horizontal alignment; the default is +RULER_ALIGN_NORMAL+ [Integer]
|
70
|
+
attr_accessor :hAlignment
|
71
|
+
|
72
|
+
# Vertical alignment; the default is +RULER_ALIGN_NORMAL+ [Integer]
|
73
|
+
attr_accessor :vAlignment
|
74
|
+
|
75
|
+
# Horizontal ruler font [FXFont]
|
76
|
+
attr_accessor :hRulerFont
|
77
|
+
|
78
|
+
# Vertical ruler font [FXFont]
|
79
|
+
attr_accessor :vRulerFont
|
80
|
+
|
81
|
+
# Horizontal document number placement [Integer]
|
82
|
+
attr_accessor :hNumberTicks
|
83
|
+
|
84
|
+
# Vertical document number placement [Integer]
|
85
|
+
attr_accessor :vNumberTicks
|
86
|
+
|
87
|
+
# Horizontal major ticks [Integer]
|
88
|
+
attr_accessor :hMajorTicks
|
89
|
+
|
90
|
+
# Vertical major ticks [Integer]
|
91
|
+
attr_accessor :vMajorTicks
|
92
|
+
|
93
|
+
# Horizontal medium ticks [Integer]
|
94
|
+
attr_accessor :hMediumTicks
|
95
|
+
|
96
|
+
# Vertical medium ticks [Integer]
|
97
|
+
attr_accessor :vMediumTicks
|
98
|
+
|
99
|
+
# Horizontal tiny ticks [Integer]
|
100
|
+
attr_accessor :hTinyTicks
|
101
|
+
|
102
|
+
# Vertical tiny ticks [Integer]
|
103
|
+
attr_accessor :vTinyTicks
|
104
|
+
|
105
|
+
# Horizontal pixels per tick spacing [Float]
|
106
|
+
attr_accessor :hPixelsPerTick
|
107
|
+
|
108
|
+
# Vertical pixels per tick spacing [Float]
|
109
|
+
attr_accessor :vPixelsPerTick
|
110
|
+
|
111
|
+
#
|
112
|
+
# Return an initialized FXRulerView instance.
|
113
|
+
#
|
114
|
+
def initialize(p, tgt=nil, sel=0, opts=0, x=0, y=0, w=0, h=0) # :yields: theRulerView
|
115
|
+
end
|
116
|
+
|
117
|
+
# Set document width (in pixels).
|
118
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal
|
119
|
+
# ruler's target after the document size is changed.
|
120
|
+
def setDocumentWidth(w, notify=false); end
|
121
|
+
|
122
|
+
# Set document height (in pixels).
|
123
|
+
def setDocumentHeight(h, notify=false); end
|
124
|
+
|
125
|
+
# Set horizontal edge spacing around document (in pixels).
|
126
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal
|
127
|
+
# ruler's target after the edge spacing is changed.
|
128
|
+
def setHEdgeSpacing(es, notify=false); end
|
129
|
+
|
130
|
+
# Set vertical edge spacing around document (in pixels).
|
131
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical
|
132
|
+
# ruler's target after the edge spacing is changed.
|
133
|
+
def setVEdgeSpacing(es, notify=false); end
|
134
|
+
|
135
|
+
# Set horizontal lower margin (in pixels).
|
136
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal
|
137
|
+
# ruler's target after the margin is changed.
|
138
|
+
def setHMarginLower(marg, notify=false); end
|
139
|
+
|
140
|
+
# Set horizontal upper margin (in pixels).
|
141
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal
|
142
|
+
# ruler's target after the margin is changed.
|
143
|
+
def setHMarginUpper(marg, notify=false); end
|
144
|
+
|
145
|
+
# Set vertical lower margin (in pixels).
|
146
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical
|
147
|
+
# ruler's target after the margin is changed.
|
148
|
+
def setVMarginLower(marg, notify=false); end
|
149
|
+
|
150
|
+
# Set vertical upper margin (in pixels).
|
151
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical
|
152
|
+
# ruler's target after the margin is changed.
|
153
|
+
def setVMarginUpper(marg, notify=false); end
|
154
|
+
|
155
|
+
# Set horizontal alignment; the default is +RULER_ALIGN_NORMAL+.
|
156
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal
|
157
|
+
# ruler's target after the alignment is changed.
|
158
|
+
def setHAlignment(align, notify=false); end
|
159
|
+
|
160
|
+
# Set vertical alignment; the default is +RULER_ALIGN_NORMAL+.
|
161
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical
|
162
|
+
# ruler's target after the alignment is changed.
|
163
|
+
def setVAlignment(align, notify=false); end
|
164
|
+
|
165
|
+
# Set horizontal ruler font.
|
166
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal
|
167
|
+
# ruler's target after the font is changed.
|
168
|
+
def setHRulerFont(font, notify=false); end
|
169
|
+
|
170
|
+
# Set vertical ruler font.
|
171
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical
|
172
|
+
# ruler's target after the font is changed.
|
173
|
+
def setVRulerFont(font, notify=false); end
|
174
|
+
|
175
|
+
# Set number of horizontal "number" ticks.
|
176
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal
|
177
|
+
# ruler's target after the number of ticks is changed.
|
178
|
+
def setHNumberTicks(ticks, notify=false); end
|
179
|
+
|
180
|
+
# Set number of vertical "number" ticks.
|
181
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical
|
182
|
+
# ruler's target after the number of ticks is changed.
|
183
|
+
def setVNumberTicks(ticks, notify=false); end
|
184
|
+
|
185
|
+
# Set number of horizontal major ticks.
|
186
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal
|
187
|
+
# ruler's target after the number of ticks is changed.
|
188
|
+
def setHMajorTicks(ticks, notify=false); end
|
189
|
+
|
190
|
+
# Set number of vertical major ticks.
|
191
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical
|
192
|
+
# ruler's target after the number of ticks is changed.
|
193
|
+
def setVMajorTicks(ticks, notify=false); end
|
194
|
+
|
195
|
+
# Set number of horizontal medium ticks.
|
196
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal
|
197
|
+
# ruler's target after the number of ticks is changed.
|
198
|
+
def setHMediumTicks(ticks, notify=false); end
|
199
|
+
|
200
|
+
# Set number of vertical medium ticks.
|
201
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical
|
202
|
+
# ruler's target after the number of ticks is changed.
|
203
|
+
def setVMediumTicks(ticks, notify=false); end
|
204
|
+
|
205
|
+
# Set number of horizontal tiny ticks.
|
206
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal
|
207
|
+
# ruler's target after the number of ticks is changed.
|
208
|
+
def setHTinyTicks(ticks, notify=false); end
|
209
|
+
|
210
|
+
# Set number of vertical tiny ticks.
|
211
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical
|
212
|
+
# ruler's target after the number of ticks is changed.
|
213
|
+
def setVTinyTicks(ticks, notify=false); end
|
214
|
+
|
215
|
+
# Set horizontal pixels per tick spacing
|
216
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the horizontal
|
217
|
+
# ruler's target after the spacing is changed.
|
218
|
+
def setHPixelsPerTick(space, notify=false); end
|
219
|
+
|
220
|
+
# Set vertical pixels per tick spacing
|
221
|
+
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the vertical
|
222
|
+
# ruler's target after the spacing is changed.
|
223
|
+
def setVPixelsPerTick(space, notify=false); end
|
224
|
+
end
|
225
|
+
end
|