sketchup-api-stubs 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/SketchUp/Geom/BoundingBox.rb +335 -0
- data/SketchUp/Geom/LatLong.rb +123 -0
- data/SketchUp/Geom/Point3d.rb +643 -0
- data/SketchUp/Geom/PolygonMesh.rb +478 -0
- data/SketchUp/Geom/Transformation.rb +476 -0
- data/SketchUp/Geom/UTM.rb +135 -0
- data/SketchUp/Geom/Vector3d.rb +684 -0
- data/SketchUp/Sketchup/Animation.rb +137 -0
- data/SketchUp/Sketchup/AppObserver.rb +157 -0
- data/SketchUp/Sketchup/ArcCurve.rb +209 -0
- data/SketchUp/Sketchup/AttributeDictionaries.rb +146 -0
- data/SketchUp/Sketchup/AttributeDictionary.rb +280 -0
- data/SketchUp/Sketchup/Axes.rb +149 -0
- data/SketchUp/Sketchup/Behavior.rb +338 -0
- data/SketchUp/Sketchup/Camera.rb +594 -0
- data/SketchUp/Sketchup/ClassificationSchema.rb +63 -0
- data/SketchUp/Sketchup/Classifications.rb +118 -0
- data/SketchUp/Sketchup/Color.rb +291 -0
- data/SketchUp/Sketchup/ComponentDefinition.rb +562 -0
- data/SketchUp/Sketchup/ComponentInstance.rb +597 -0
- data/SketchUp/Sketchup/Console.rb +78 -0
- data/SketchUp/Sketchup/ConstructionLine.rb +257 -0
- data/SketchUp/Sketchup/ConstructionPoint.rb +32 -0
- data/SketchUp/Sketchup/Curve.rb +196 -0
- data/SketchUp/Sketchup/DefinitionList.rb +312 -0
- data/SketchUp/Sketchup/DefinitionObserver.rb +73 -0
- data/SketchUp/Sketchup/DefinitionsObserver.rb +102 -0
- data/SketchUp/Sketchup/Dimension.rb +167 -0
- data/SketchUp/Sketchup/DimensionLinear.rb +232 -0
- data/SketchUp/Sketchup/DimensionObserver.rb +38 -0
- data/SketchUp/Sketchup/DimensionRadial.rb +87 -0
- data/SketchUp/Sketchup/Drawingelement.rb +400 -0
- data/SketchUp/Sketchup/Edge.rb +517 -0
- data/SketchUp/Sketchup/EdgeUse.rb +213 -0
- data/SketchUp/Sketchup/Entities.rb +1011 -0
- data/SketchUp/Sketchup/EntitiesObserver.rb +125 -0
- data/SketchUp/Sketchup/Entity.rb +522 -0
- data/SketchUp/Sketchup/EntityObserver.rb +59 -0
- data/SketchUp/Sketchup/ExtensionsManager.rb +129 -0
- data/SketchUp/Sketchup/Face.rb +737 -0
- data/SketchUp/Sketchup/FrameChangeObserver.rb +104 -0
- data/SketchUp/Sketchup/Group.rb +705 -0
- data/SketchUp/Sketchup/Http.rb +27 -0
- data/SketchUp/Sketchup/Http/Request.rb +285 -0
- data/SketchUp/Sketchup/Http/Response.rb +62 -0
- data/SketchUp/Sketchup/Image.rb +393 -0
- data/SketchUp/Sketchup/Importer.rb +192 -0
- data/SketchUp/Sketchup/InputPoint.rb +393 -0
- data/SketchUp/Sketchup/InstanceObserver.rb +82 -0
- data/SketchUp/Sketchup/InstancePath.rb +297 -0
- data/SketchUp/Sketchup/Layer.rb +240 -0
- data/SketchUp/Sketchup/Layers.rb +235 -0
- data/SketchUp/Sketchup/LayersObserver.rb +136 -0
- data/SketchUp/Sketchup/Licensing.rb +47 -0
- data/SketchUp/Sketchup/Licensing/ExtensionLicense.rb +88 -0
- data/SketchUp/Sketchup/Loop.rb +141 -0
- data/SketchUp/Sketchup/Material.rb +384 -0
- data/SketchUp/Sketchup/Materials.rb +283 -0
- data/SketchUp/Sketchup/MaterialsObserver.rb +141 -0
- data/SketchUp/Sketchup/Menu.rb +97 -0
- data/SketchUp/Sketchup/Model.rb +1459 -0
- data/SketchUp/Sketchup/ModelObserver.rb +356 -0
- data/SketchUp/Sketchup/OptionsManager.rb +135 -0
- data/SketchUp/Sketchup/OptionsProvider.rb +277 -0
- data/SketchUp/Sketchup/OptionsProviderObserver.rb +58 -0
- data/SketchUp/Sketchup/Page.rb +636 -0
- data/SketchUp/Sketchup/Pages.rb +349 -0
- data/SketchUp/Sketchup/PagesObserver.rb +76 -0
- data/SketchUp/Sketchup/PickHelper.rb +457 -0
- data/SketchUp/Sketchup/RegionalSettings.rb +43 -0
- data/SketchUp/Sketchup/RenderingOptions.rb +337 -0
- data/SketchUp/Sketchup/RenderingOptionsObserver.rb +44 -0
- data/SketchUp/Sketchup/SectionPlane.rb +88 -0
- data/SketchUp/Sketchup/Selection.rb +470 -0
- data/SketchUp/Sketchup/SelectionObserver.rb +115 -0
- data/SketchUp/Sketchup/Set.rb +253 -0
- data/SketchUp/Sketchup/ShadowInfo.rb +257 -0
- data/SketchUp/Sketchup/ShadowInfoObserver.rb +57 -0
- data/SketchUp/Sketchup/Style.rb +77 -0
- data/SketchUp/Sketchup/Styles.rb +204 -0
- data/SketchUp/Sketchup/Text.rb +241 -0
- data/SketchUp/Sketchup/Texture.rb +211 -0
- data/SketchUp/Sketchup/TextureWriter.rb +237 -0
- data/SketchUp/Sketchup/Tool.rb +808 -0
- data/SketchUp/Sketchup/Tools.rb +120 -0
- data/SketchUp/Sketchup/ToolsObserver.rb +154 -0
- data/SketchUp/Sketchup/UVHelper.rb +61 -0
- data/SketchUp/Sketchup/Vertex.rb +143 -0
- data/SketchUp/Sketchup/View.rb +965 -0
- data/SketchUp/Sketchup/ViewObserver.rb +40 -0
- data/SketchUp/UI/Command.rb +307 -0
- data/SketchUp/UI/HtmlDialog.rb +346 -0
- data/SketchUp/UI/Notification.rb +229 -0
- data/SketchUp/UI/Toolbar.rb +243 -0
- data/SketchUp/UI/WebDialog.rb +623 -0
- data/SketchUp/_top_level.rb +193 -0
- data/SketchUp/array.rb +593 -0
- data/SketchUp/geom.rb +231 -0
- data/SketchUp/languagehandler.rb +92 -0
- data/SketchUp/length.rb +210 -0
- data/SketchUp/numeric.rb +249 -0
- data/SketchUp/sketchup.rb +1290 -0
- data/SketchUp/sketchupextension.rb +355 -0
- data/SketchUp/string.rb +24 -0
- data/SketchUp/ui.rb +637 -0
- metadata +176 -0
@@ -0,0 +1,57 @@
|
|
1
|
+
# Copyright:: Copyright 2017 Trimble Inc.
|
2
|
+
# License:: The MIT License (MIT)
|
3
|
+
|
4
|
+
# This observer interface is implemented to react to changes to the shadow
|
5
|
+
# settings. To implement this observer, create a Ruby class of this type,
|
6
|
+
# override the desired methods, and add an instance of the observer to the
|
7
|
+
# {Sketchup::ShadowInfo} object.
|
8
|
+
#
|
9
|
+
# @example
|
10
|
+
# # This is an example of an observer that watches the selection for
|
11
|
+
# # changes.
|
12
|
+
# class MyShadowInfoObserver < Sketchup::ShadowInfoObserver
|
13
|
+
# def onShadowInfoChanged(shadow_info, type)
|
14
|
+
# puts "onShadowInfoChanged: #{type}"
|
15
|
+
# end
|
16
|
+
# end
|
17
|
+
#
|
18
|
+
# # Attach the observer.
|
19
|
+
# Sketchup.active_model.shadow_info.add_observer(MyShadowInfoObserver.new)
|
20
|
+
#
|
21
|
+
# @version SketchUp 6.0
|
22
|
+
class Sketchup::ShadowInfoObserver
|
23
|
+
|
24
|
+
# Instance Methods
|
25
|
+
|
26
|
+
# The {#onShadowInfoChanged} method is invoked whenever the user alters a
|
27
|
+
# setting inside the Shadows and Model Info dialogs. The type parameter
|
28
|
+
# contains a number identifying which option was altered. Here are the types to
|
29
|
+
# expect:
|
30
|
+
#
|
31
|
+
# - 0 = Time/Date sliders
|
32
|
+
# - 1 = Display Shadows checkbox
|
33
|
+
# - 2 = Light/Dark sliders
|
34
|
+
# - 3 = Geographic Location (in Model Info > Location)
|
35
|
+
# - 4 = Solar Orientation (in Model Info > Location)
|
36
|
+
# - 7 = Use Sun for Shading checkbox
|
37
|
+
# - 8 = Display from Edges checkbox
|
38
|
+
# - 9 = Display on Ground checkbox
|
39
|
+
# - 10 = Display on Faces checkbox
|
40
|
+
#
|
41
|
+
# @example
|
42
|
+
# def onShadowInfoChanged(shadow_info, type)
|
43
|
+
# puts "onShadowInfoChanged: #{type}"
|
44
|
+
# end
|
45
|
+
#
|
46
|
+
# @param [Sketchup::ShadowInfo] shadow_info
|
47
|
+
#
|
48
|
+
# @param [Integer] type
|
49
|
+
# A number identifying which setting was changed.
|
50
|
+
#
|
51
|
+
# @return [nil]
|
52
|
+
#
|
53
|
+
# @version SketchUp 6.0
|
54
|
+
def onShadowInfoChanged(shadow_info, type)
|
55
|
+
end
|
56
|
+
|
57
|
+
end
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# Copyright:: Copyright 2017 Trimble Inc.
|
2
|
+
# License:: The MIT License (MIT)
|
3
|
+
|
4
|
+
# The Style class contains methods for modifying information about a specific
|
5
|
+
# style. Styles are a collection of display settings that tell SketchUp how to
|
6
|
+
# draw the model.
|
7
|
+
#
|
8
|
+
# @example
|
9
|
+
# # Get a handle to the styles collection.
|
10
|
+
# styles = Sketchup.active_model.styles
|
11
|
+
#
|
12
|
+
# # Display the name of the first style.
|
13
|
+
# first_style = styles[0]
|
14
|
+
# UI.messagebox("Your first style is named " + first_style.name.to_s)
|
15
|
+
#
|
16
|
+
# @version SketchUp 6.0
|
17
|
+
class Sketchup::Style < Sketchup::Entity
|
18
|
+
|
19
|
+
# Instance Methods
|
20
|
+
|
21
|
+
# The description method is used to retrieve the description for a style.
|
22
|
+
#
|
23
|
+
# @example
|
24
|
+
# style = Sketchup.active_model.styles[0]
|
25
|
+
# UI.messagebox("Your first style description is: " +
|
26
|
+
# style.description.to_s)
|
27
|
+
#
|
28
|
+
# @return description - the description for the style.
|
29
|
+
#
|
30
|
+
# @version SketchUp 6.0
|
31
|
+
def description
|
32
|
+
end
|
33
|
+
|
34
|
+
# The description= method is used to set a description for a style.
|
35
|
+
#
|
36
|
+
# @example
|
37
|
+
# style = Sketchup.active_model.styles[0]
|
38
|
+
# style.description = "My new style description."
|
39
|
+
# UI.messagebox('My new style description is: ' + style.description)
|
40
|
+
#
|
41
|
+
# @param description
|
42
|
+
# A textual description of the style.
|
43
|
+
#
|
44
|
+
# @return status - true if successful, false if unsuccessful.
|
45
|
+
#
|
46
|
+
# @version SketchUp 6.0
|
47
|
+
def description=(description)
|
48
|
+
end
|
49
|
+
|
50
|
+
# The name method is used to retrieve the name for a style.
|
51
|
+
#
|
52
|
+
# @example
|
53
|
+
# name = style.name
|
54
|
+
#
|
55
|
+
# @return name - the name for the style.
|
56
|
+
#
|
57
|
+
# @version SketchUp 6.0
|
58
|
+
def name
|
59
|
+
end
|
60
|
+
|
61
|
+
# The name= method is used to set the name for a style.
|
62
|
+
#
|
63
|
+
# @example
|
64
|
+
# style = Sketchup.active_model.styles[0]
|
65
|
+
# style.name = 'My Very Own Style'
|
66
|
+
# UI.messagebox('My new style name is: ' + style.name)
|
67
|
+
#
|
68
|
+
# @param name
|
69
|
+
# - the new name for the style.
|
70
|
+
#
|
71
|
+
# @return name - the name that was set.
|
72
|
+
#
|
73
|
+
# @version SketchUp 6.0
|
74
|
+
def name=(name)
|
75
|
+
end
|
76
|
+
|
77
|
+
end
|
@@ -0,0 +1,204 @@
|
|
1
|
+
# Copyright:: Copyright 2017 Trimble Inc.
|
2
|
+
# License:: The MIT License (MIT)
|
3
|
+
|
4
|
+
# The Styles class contains methods for manipulating a collection of styles in
|
5
|
+
# a model. Typically, you will access this via the active_model:
|
6
|
+
#
|
7
|
+
# @example
|
8
|
+
# styles = Sketchup.active_model.styles
|
9
|
+
# UI.messagebox "There are " + styles.count.to_s + " styles in your model."
|
10
|
+
#
|
11
|
+
# @version SketchUp 6.0
|
12
|
+
class Sketchup::Styles < Sketchup::Entity
|
13
|
+
|
14
|
+
# Includes
|
15
|
+
|
16
|
+
include Enumerable
|
17
|
+
|
18
|
+
# Instance Methods
|
19
|
+
|
20
|
+
# The [] method is used to retrieves a style by either name or index.
|
21
|
+
#
|
22
|
+
# @example
|
23
|
+
# styles = Sketchup.active_model.styles
|
24
|
+
# style1 = styles[0]
|
25
|
+
# style2 = styles["name"]
|
26
|
+
#
|
27
|
+
# @param name_or_index
|
28
|
+
# The string name or index for a specific style.
|
29
|
+
#
|
30
|
+
# @return style - a Style object if successful
|
31
|
+
#
|
32
|
+
# @version SketchUp 6.0
|
33
|
+
def [](name_or_index)
|
34
|
+
end
|
35
|
+
|
36
|
+
# The active_style method is used to retrieve the active style.
|
37
|
+
#
|
38
|
+
# @example
|
39
|
+
# styles = Sketchup.active_model.styles
|
40
|
+
# style = styles.active_style
|
41
|
+
# UI.messagebox('The active style is: ' + active_style.name)
|
42
|
+
#
|
43
|
+
# @return style - the active Style object.
|
44
|
+
#
|
45
|
+
# @version SketchUp 6.0
|
46
|
+
def active_style
|
47
|
+
end
|
48
|
+
|
49
|
+
# The active_style_changed method tells you if the active style has been
|
50
|
+
# edited by the user since it was last saved.
|
51
|
+
#
|
52
|
+
# @example
|
53
|
+
# styles = Sketchup.active_model.styles
|
54
|
+
# user_made_change = styles.active_style_changed
|
55
|
+
# UI.messagebox ('The active style was edited: ' + user_made_change.to_s)
|
56
|
+
#
|
57
|
+
# @return changed - true if the active style has been changed
|
58
|
+
# from when it was last saved.
|
59
|
+
#
|
60
|
+
# @version SketchUp 6.0
|
61
|
+
def active_style_changed
|
62
|
+
end
|
63
|
+
|
64
|
+
# The add_style method is used to create and load a style from the given file.
|
65
|
+
#
|
66
|
+
# @example
|
67
|
+
# styles = Sketchup.active_model.styles
|
68
|
+
# status = styles.add_style "c:\\MyStyle.style", true
|
69
|
+
# UI.messagebox ('A style was added: ' + status.to_s)
|
70
|
+
#
|
71
|
+
# @param filename
|
72
|
+
# The filename for the style.
|
73
|
+
#
|
74
|
+
# @param select
|
75
|
+
# true if you want to set the style to be the active
|
76
|
+
# style, false if not.
|
77
|
+
#
|
78
|
+
# @return status - true if successful, false if unsuccessful.
|
79
|
+
#
|
80
|
+
# @version SketchUp 6.0
|
81
|
+
def add_style(filename, select)
|
82
|
+
end
|
83
|
+
|
84
|
+
#
|
85
|
+
# @example
|
86
|
+
# styles = Sketchup.active_model.styles
|
87
|
+
# number = styles.count
|
88
|
+
#
|
89
|
+
# @note Since SketchUp 2014 the count method is inherited from Ruby's
|
90
|
+
# +Enumable+ mix-in module. Prior to that the {#count} method is an alias
|
91
|
+
# for {#length}.
|
92
|
+
#
|
93
|
+
# @return integer - the number of styles found.
|
94
|
+
#
|
95
|
+
# @version SketchUp 6.0
|
96
|
+
def count
|
97
|
+
end
|
98
|
+
|
99
|
+
# The each method is used to iterate through styles.
|
100
|
+
#
|
101
|
+
# @example
|
102
|
+
# styles = Sketchup.active_model.styles
|
103
|
+
# styles.each {| style |
|
104
|
+
# UI.messagebox('style: ' + style.name)
|
105
|
+
# }
|
106
|
+
#
|
107
|
+
# @return nil
|
108
|
+
#
|
109
|
+
# @version SketchUp 6.0
|
110
|
+
#
|
111
|
+
# @yield [style] Variable that will hold each style as it is found.
|
112
|
+
def each
|
113
|
+
end
|
114
|
+
|
115
|
+
# The {#size} method is used to retrieve the number of styles in the
|
116
|
+
# collection.
|
117
|
+
#
|
118
|
+
# The {#length} method is an alias of {#size}.
|
119
|
+
#
|
120
|
+
# @example
|
121
|
+
# styles = Sketchup.active_model.styles
|
122
|
+
# number = styles.size
|
123
|
+
#
|
124
|
+
# @return integer - the number of styles found.
|
125
|
+
#
|
126
|
+
# @version SketchUp 6.0
|
127
|
+
def length
|
128
|
+
end
|
129
|
+
|
130
|
+
# parent pointer, so we can't use the normal "parent" method from Entity
|
131
|
+
def parent
|
132
|
+
end
|
133
|
+
|
134
|
+
# The purge_unused method is used to remove unused styles from the model.
|
135
|
+
#
|
136
|
+
# @example
|
137
|
+
# styles = Sketchup.active_model.styles
|
138
|
+
# status = styles.purge_unused
|
139
|
+
# UI.messagebox ('Purging Unused styles status: ' + status.to_s)
|
140
|
+
#
|
141
|
+
# @return status - true if successful, false if unsuccessful.
|
142
|
+
#
|
143
|
+
# @version SketchUp 6.0
|
144
|
+
def purge_unused
|
145
|
+
end
|
146
|
+
|
147
|
+
# The selected_style method is used to retrieve the currently selected style.
|
148
|
+
#
|
149
|
+
# @example
|
150
|
+
# styles = Sketchup.active_model.styles
|
151
|
+
# style = styles.selected_style
|
152
|
+
# UI.messagebox ('The selected style is: ' + style.name)
|
153
|
+
#
|
154
|
+
# @return style - the selected Style object.
|
155
|
+
#
|
156
|
+
# @version SketchUp 6.0
|
157
|
+
def selected_style
|
158
|
+
end
|
159
|
+
|
160
|
+
# The selected_style= method is used to set the currently selected style.
|
161
|
+
#
|
162
|
+
# @example
|
163
|
+
# styles = Sketchup.active_model.styles
|
164
|
+
# styles.selected_style = styles[styles.count -1]
|
165
|
+
#
|
166
|
+
# @param style
|
167
|
+
# The style object to select.
|
168
|
+
#
|
169
|
+
# @return false
|
170
|
+
#
|
171
|
+
# @version SketchUp 6.0
|
172
|
+
def selected_style=(style)
|
173
|
+
end
|
174
|
+
|
175
|
+
# The {#size} method is used to retrieve the number of styles in the
|
176
|
+
# collection.
|
177
|
+
#
|
178
|
+
# The {#length} method is an alias of {#size}.
|
179
|
+
#
|
180
|
+
# @example
|
181
|
+
# styles = Sketchup.active_model.styles
|
182
|
+
# number = styles.size
|
183
|
+
#
|
184
|
+
# @return integer - the number of styles found.
|
185
|
+
#
|
186
|
+
# @version SketchUp 6.0
|
187
|
+
def size
|
188
|
+
end
|
189
|
+
|
190
|
+
# The update_selected_style method returns true if the selected style
|
191
|
+
# was changed (e.g. the user selected a different style).
|
192
|
+
#
|
193
|
+
# @example
|
194
|
+
# styles = Sketchup.active_model.styles
|
195
|
+
# success = styles.update_selected_style
|
196
|
+
# UI.messagebox ('The selected style was switched: ' + success.to_s)
|
197
|
+
#
|
198
|
+
# @return status - true if the style was switched
|
199
|
+
#
|
200
|
+
# @version SketchUp 6.0
|
201
|
+
def update_selected_style
|
202
|
+
end
|
203
|
+
|
204
|
+
end
|
@@ -0,0 +1,241 @@
|
|
1
|
+
# Copyright:: Copyright 2017 Trimble Inc.
|
2
|
+
# License:: The MIT License (MIT)
|
3
|
+
|
4
|
+
# The Text class contains method to manipulate a Text entity object.
|
5
|
+
#
|
6
|
+
# @version SketchUp 6.0
|
7
|
+
class Sketchup::Text < Sketchup::Drawingelement
|
8
|
+
|
9
|
+
# Instance Methods
|
10
|
+
|
11
|
+
# The arrow_type method retrieves the current arrow type used for the leader
|
12
|
+
# text.
|
13
|
+
#
|
14
|
+
# Valid arrow types are 0 for none, 2 for dot, 3 for closed arrow, 4 for open
|
15
|
+
# arrow.
|
16
|
+
#
|
17
|
+
# @example
|
18
|
+
# type = text.arrow_type=0
|
19
|
+
#
|
20
|
+
# @return arrow - a numerical representation for the type of
|
21
|
+
# arrow.
|
22
|
+
#
|
23
|
+
# @version SketchUp 6.0
|
24
|
+
def arrow_type
|
25
|
+
end
|
26
|
+
|
27
|
+
# The arrow_type= method sets the arrow type used for leader text.
|
28
|
+
#
|
29
|
+
# Valid arrow types are 0 for none, 2 for dot, 3 for closed arrow, 4 for open
|
30
|
+
# arrow.
|
31
|
+
#
|
32
|
+
# @example
|
33
|
+
# arrow = text.arrow_type=type
|
34
|
+
#
|
35
|
+
# @param type
|
36
|
+
# A numerical representation of the type of arrow to be
|
37
|
+
# set.
|
38
|
+
#
|
39
|
+
# @return arrow - a numerical representation for the type of
|
40
|
+
# arrow.
|
41
|
+
#
|
42
|
+
# @version SketchUp 6.0
|
43
|
+
def arrow_type=(type)
|
44
|
+
end
|
45
|
+
|
46
|
+
# The display_leader= method accepts true or false for whether to display the
|
47
|
+
# leader.
|
48
|
+
#
|
49
|
+
# Leader text that is not displayed is set to Hidden type.
|
50
|
+
#
|
51
|
+
# @example
|
52
|
+
# leader = text.display_leader=true
|
53
|
+
#
|
54
|
+
# @param status
|
55
|
+
# true if you want to display the leader text, false if
|
56
|
+
# you do not want to display the leader text.
|
57
|
+
#
|
58
|
+
# @return status - the status that you set.
|
59
|
+
#
|
60
|
+
# @version SketchUp 6.0
|
61
|
+
def display_leader=(status)
|
62
|
+
end
|
63
|
+
|
64
|
+
# The display_leader? method returns the status of the leader.
|
65
|
+
#
|
66
|
+
# @example
|
67
|
+
# status = text.display_leader
|
68
|
+
#
|
69
|
+
# @return status - true if the leader is being displayed, false
|
70
|
+
# if it is not displayed.
|
71
|
+
#
|
72
|
+
# @return [Boolean]
|
73
|
+
#
|
74
|
+
# @version SketchUp 6.0
|
75
|
+
def display_leader?
|
76
|
+
end
|
77
|
+
|
78
|
+
# The has_leader method is used to determine if the Text object has a leader.
|
79
|
+
#
|
80
|
+
# @example
|
81
|
+
# status = text.has_leader
|
82
|
+
#
|
83
|
+
# @return status - true if the Text object has a leader. False if
|
84
|
+
# the Text object does not have a leader.
|
85
|
+
#
|
86
|
+
# @return [Boolean]
|
87
|
+
#
|
88
|
+
# @version SketchUp 6.0
|
89
|
+
def has_leader?
|
90
|
+
end
|
91
|
+
|
92
|
+
# The leader_type method retrieves the currently set leader type.
|
93
|
+
#
|
94
|
+
# @example
|
95
|
+
# leader = text.leader_type
|
96
|
+
#
|
97
|
+
# @return leader - a numerical value representing the currently
|
98
|
+
# set leader type.
|
99
|
+
#
|
100
|
+
# @version SketchUp 6.0
|
101
|
+
def leader_type
|
102
|
+
end
|
103
|
+
|
104
|
+
# The leader_type = method sets the leader type.
|
105
|
+
#
|
106
|
+
# Valid leader types are 0 for none, 1 for View-based, and 2 for Pushpin
|
107
|
+
#
|
108
|
+
# @example
|
109
|
+
# leader = text.leader_type=1
|
110
|
+
#
|
111
|
+
# @param type
|
112
|
+
# A numerical value representing the leader type to be
|
113
|
+
# set.
|
114
|
+
#
|
115
|
+
# @return leader - a numerical value representing the leader type
|
116
|
+
# you just set.
|
117
|
+
#
|
118
|
+
# @version SketchUp 6.0
|
119
|
+
def leader_type=(type)
|
120
|
+
end
|
121
|
+
|
122
|
+
# The line_weight method returns a line weight in number of pixels.
|
123
|
+
#
|
124
|
+
# Defalt line weight is 1.
|
125
|
+
#
|
126
|
+
# @example
|
127
|
+
# weight = text.line_weight
|
128
|
+
#
|
129
|
+
# @return lineweight - the line weight in pixels
|
130
|
+
#
|
131
|
+
# @version SketchUp 6.0
|
132
|
+
def line_weight
|
133
|
+
end
|
134
|
+
|
135
|
+
# The line_weight= method sets the line weight in pixels.
|
136
|
+
#
|
137
|
+
# Default line weight is 1.
|
138
|
+
#
|
139
|
+
# @example
|
140
|
+
# newweight = text.line_weight = 4
|
141
|
+
#
|
142
|
+
# @param weight
|
143
|
+
# The line weight to be set (in pixels).
|
144
|
+
#
|
145
|
+
# @return The line weight that has been set.
|
146
|
+
#
|
147
|
+
# @version SketchUp 6.0
|
148
|
+
def line_weight=(weight)
|
149
|
+
end
|
150
|
+
|
151
|
+
# The point method is used to get the point associated with the text.
|
152
|
+
#
|
153
|
+
# @example
|
154
|
+
# point3d = text.point
|
155
|
+
#
|
156
|
+
# @return point - a Point3d object.
|
157
|
+
#
|
158
|
+
# @version SketchUp 6.0
|
159
|
+
def point
|
160
|
+
end
|
161
|
+
|
162
|
+
# The point= method is used to set the point associated with the text.
|
163
|
+
#
|
164
|
+
# @example
|
165
|
+
# status = text.point = point3d
|
166
|
+
#
|
167
|
+
# @param point3d
|
168
|
+
# A Point3d object.
|
169
|
+
#
|
170
|
+
# @return status - true if successful, false if unsuccessful.
|
171
|
+
#
|
172
|
+
# @version SketchUp 6.0
|
173
|
+
def point=(point3d)
|
174
|
+
end
|
175
|
+
|
176
|
+
# The set_text method is used to set the text within a Text object without
|
177
|
+
# recording an Undo operation.
|
178
|
+
#
|
179
|
+
# @example
|
180
|
+
# text = text.set_text "This is another text"
|
181
|
+
#
|
182
|
+
# @param textstring
|
183
|
+
# The string to be set within the Text object.
|
184
|
+
#
|
185
|
+
# @return text - the Text object
|
186
|
+
#
|
187
|
+
# @version SketchUp 6.0
|
188
|
+
def set_text(textstring)
|
189
|
+
end
|
190
|
+
|
191
|
+
# The text method is used to retrieve the string version of a Text object.
|
192
|
+
#
|
193
|
+
# @example
|
194
|
+
# textstring = text.text
|
195
|
+
#
|
196
|
+
# @return textstring - the string representation of the Text
|
197
|
+
# object
|
198
|
+
#
|
199
|
+
# @version SketchUp 6.0
|
200
|
+
def text
|
201
|
+
end
|
202
|
+
|
203
|
+
# The text= method is used to set the string version of a Text object.
|
204
|
+
#
|
205
|
+
# @example
|
206
|
+
# textstring = text.text= "text"
|
207
|
+
#
|
208
|
+
# @param textstring
|
209
|
+
#
|
210
|
+
# @return textstring - the newly set text
|
211
|
+
#
|
212
|
+
# @version SketchUp 6.0
|
213
|
+
def text=(textstring)
|
214
|
+
end
|
215
|
+
|
216
|
+
# The vector method is used to get the vector associated with the text.
|
217
|
+
#
|
218
|
+
# @example
|
219
|
+
# vector = text.vector
|
220
|
+
#
|
221
|
+
# @return vector - a Vector3d object.
|
222
|
+
#
|
223
|
+
# @version SketchUp 6.0
|
224
|
+
def vector
|
225
|
+
end
|
226
|
+
|
227
|
+
# The vector= method is used to set the vector associated with the text.
|
228
|
+
#
|
229
|
+
# @example
|
230
|
+
# vector = text.vector
|
231
|
+
#
|
232
|
+
# @param vector
|
233
|
+
# A Vector3d object.
|
234
|
+
#
|
235
|
+
# @return success - true if successful.
|
236
|
+
#
|
237
|
+
# @version SketchUp 6.0
|
238
|
+
def vector=(vector)
|
239
|
+
end
|
240
|
+
|
241
|
+
end
|