From 3ac696c41226c54bbc6409a20f1e4168b3ba6e5c Mon Sep 17 00:00:00 2001 From: Watson Date: Sun, 4 Dec 2016 08:07:56 +0900 Subject: [PATCH] remove trailing spaces --- src/action.cpp | 86 +++++++++++++++++++++++++------------------------- src/audio.cpp | 10 +++--- src/layer.cpp | 6 ++-- src/menu.cpp | 18 +++++------ src/node.cpp | 2 +- src/sprite.cpp | 4 +-- src/types.cpp | 8 ++--- src/ui.cpp | 2 +- 8 files changed, 68 insertions(+), 68 deletions(-) diff --git a/src/action.cpp b/src/action.cpp index a02d79cbb1..72b32a755a 100644 --- a/src/action.cpp +++ b/src/action.cpp @@ -62,7 +62,7 @@ action_done(VALUE rcv, SEL sel) /// @class MoveBy < Action /// @group Constructors /// @method #initialize(delta_location, interval) -/// Creates an action that will move the position of the receiver to a new location +/// Creates an action that will move the position of the receiver to a new location /// determined by the sum of the current location and the given +delta_location+ object. /// @param delta_location [Point] a point that will be added to the receiver's /// current location. @@ -71,7 +71,7 @@ action_done(VALUE rcv, SEL sel) static VALUE move_by_new(VALUE rcv, SEL sel, VALUE delta_location, VALUE interval) { - auto action = cocos2d::MoveBy::create(NUM2DBL(interval), rb_any_to_ccvec2(delta_location)); + auto action = cocos2d::MoveBy::create(NUM2DBL(interval), rb_any_to_ccvec2(delta_location)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -85,14 +85,14 @@ move_by_new(VALUE rcv, SEL sel, VALUE delta_location, VALUE interval) static VALUE move_to_new(VALUE rcv, SEL sel, VALUE location, VALUE interval) { - auto action = cocos2d::MoveTo::create(NUM2DBL(interval), rb_any_to_ccvec2(location)); + auto action = cocos2d::MoveTo::create(NUM2DBL(interval), rb_any_to_ccvec2(location)); return rb_class_wrap_new((void *)action, rb_cAction); } /// @class JumpBy < Action /// @group Constructors /// @method #initialize(delta_location, height, jumps, interval) -/// Creates an action that will jump the receiver to a new location +/// Creates an action that will jump the receiver to a new location /// determined by the sum of the current location and the given +delta_location+ object. /// @param delta_location [Point] a point that will be added to the receiver's /// current location during jumping. @@ -103,7 +103,7 @@ move_to_new(VALUE rcv, SEL sel, VALUE location, VALUE interval) static VALUE jump_by_new(VALUE rcv, SEL sel, VALUE delta_location, VALUE height, VALUE jumps, VALUE interval) { - auto action = cocos2d::JumpBy::create(NUM2DBL(interval), rb_any_to_ccvec2(delta_location), NUM2DBL(height), NUM2INT(jumps)); + auto action = cocos2d::JumpBy::create(NUM2DBL(interval), rb_any_to_ccvec2(delta_location), NUM2DBL(height), NUM2INT(jumps)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -119,14 +119,14 @@ jump_by_new(VALUE rcv, SEL sel, VALUE delta_location, VALUE height, VALUE jumps, static VALUE jump_to_new(VALUE rcv, SEL sel, VALUE location, VALUE height, VALUE jumps, VALUE interval) { - auto action = cocos2d::JumpTo::create(NUM2DBL(interval), rb_any_to_ccvec2(location), NUM2DBL(height), NUM2INT(jumps)); + auto action = cocos2d::JumpTo::create(NUM2DBL(interval), rb_any_to_ccvec2(location), NUM2DBL(height), NUM2INT(jumps)); return rb_class_wrap_new((void *)action, rb_cAction); } /// @class RotateBy < Action /// @group Constructors /// @method #initialize(delta_angle, interval) -/// Creates an action that will rotates the position of the receiver +/// Creates an action that will rotates the position of the receiver /// to a new angle determined by the /// sum of the current rotation and the given +delta_angle+ object. /// @param delta_angle [Float] the angle to add to the current rotation @@ -135,7 +135,7 @@ jump_to_new(VALUE rcv, SEL sel, VALUE location, VALUE height, VALUE jumps, VALUE static VALUE rotate_by_new(VALUE rcv, SEL sel, VALUE delta_angle, VALUE interval) { - auto action = cocos2d::RotateBy::create(NUM2DBL(interval), NUM2DBL(delta_angle)); + auto action = cocos2d::RotateBy::create(NUM2DBL(interval), NUM2DBL(delta_angle)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -150,7 +150,7 @@ rotate_by_new(VALUE rcv, SEL sel, VALUE delta_angle, VALUE interval) static VALUE rotate_to_new(VALUE rcv, SEL sel, VALUE angle, VALUE interval) { - auto action = cocos2d::RotateTo::create(NUM2DBL(interval), NUM2DBL(angle)); + auto action = cocos2d::RotateTo::create(NUM2DBL(interval), NUM2DBL(angle)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -164,7 +164,7 @@ rotate_to_new(VALUE rcv, SEL sel, VALUE angle, VALUE interval) static VALUE scale_by_new(VALUE rcv, SEL sel, VALUE scale, VALUE interval) { - auto action = cocos2d::ScaleBy::create(NUM2DBL(interval), NUM2DBL(scale)); + auto action = cocos2d::ScaleBy::create(NUM2DBL(interval), NUM2DBL(scale)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -178,14 +178,14 @@ scale_by_new(VALUE rcv, SEL sel, VALUE scale, VALUE interval) static VALUE scale_to_new(VALUE rcv, SEL sel, VALUE scale, VALUE interval) { - auto action = cocos2d::ScaleTo::create(NUM2DBL(interval), NUM2DBL(scale)); + auto action = cocos2d::ScaleTo::create(NUM2DBL(interval), NUM2DBL(scale)); return rb_class_wrap_new((void *)action, rb_cAction); } /// @class SkewBy < Action /// @group Constructors /// @method #initialize(delta_x_angle, delta_y_angle, interval) -/// Creates an action that skews a Node object to given angles by modifying it's +/// Creates an action that skews a Node object to given angles by modifying it's /// skewX and skewY attributes by delta_x_angle and delta_y_angle. /// @param delta_x_angle [Float] the skew X delta angle /// @param delta_y_angle [Float] the skew Y delta angle @@ -194,14 +194,14 @@ scale_to_new(VALUE rcv, SEL sel, VALUE scale, VALUE interval) static VALUE skew_by_new(VALUE rcv, SEL sel, VALUE delta_x_angle, VALUE delta_y_angle, VALUE interval) { - auto action = cocos2d::SkewBy::create(NUM2DBL(interval), NUM2DBL(delta_x_angle), NUM2DBL(delta_y_angle)); + auto action = cocos2d::SkewBy::create(NUM2DBL(interval), NUM2DBL(delta_x_angle), NUM2DBL(delta_y_angle)); return rb_class_wrap_new((void *)action, rb_cAction); } /// @class SkewTo < Action /// @group Constructors /// @method #initialize(x_angle, y_angle, interval) -/// Creates an action that skews a Node object to given angles by modifying it's +/// Creates an action that skews a Node object to given angles by modifying it's /// skewX and skewY attributes /// @param x_angle [Float] the Skew X Angle /// @param y_angle [Float] the Skew Y Angle @@ -210,7 +210,7 @@ skew_by_new(VALUE rcv, SEL sel, VALUE delta_x_angle, VALUE delta_y_angle, VALUE static VALUE skew_to_new(VALUE rcv, SEL sel, VALUE x_angle, VALUE y_angle, VALUE interval) { - auto action = cocos2d::SkewTo::create(NUM2DBL(interval), NUM2DBL(x_angle), NUM2DBL(y_angle)); + auto action = cocos2d::SkewTo::create(NUM2DBL(interval), NUM2DBL(x_angle), NUM2DBL(y_angle)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -218,16 +218,16 @@ skew_to_new(VALUE rcv, SEL sel, VALUE x_angle, VALUE y_angle, VALUE interval) /// @group Constructors /// @method #initialize(delta_red, delta_green, delta_blue, interval) /// Creates an action that tints a Node from current tint to a custom one. -/// @param delta_red [Float] -/// @param delta_green [Float] -/// @param delta_blue [Float] +/// @param delta_red [Float] +/// @param delta_green [Float] +/// @param delta_blue [Float] /// @param interval [Float] the animation interval. /// @return [TintBy] the action. static VALUE tint_by_new(VALUE rcv, SEL sel, VALUE delta_red, VALUE delta_green, VALUE delta_blue, VALUE interval) { - auto action = cocos2d::TintBy::create(NUM2DBL(interval), - NUM2BYTE(delta_red), NUM2BYTE(delta_green), NUM2BYTE(delta_blue)); + auto action = cocos2d::TintBy::create(NUM2DBL(interval), + NUM2BYTE(delta_red), NUM2BYTE(delta_green), NUM2BYTE(delta_blue)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -235,15 +235,15 @@ tint_by_new(VALUE rcv, SEL sel, VALUE delta_red, VALUE delta_green, VALUE delta_ /// @group Constructors /// @method #initialize(red, green, blue, interval) /// Creates an action that tints the receiver from its current tint to a custom one. -/// @param red [Float] -/// @param green [Float] -/// @param blue [Float] +/// @param red [Float] +/// @param green [Float] +/// @param blue [Float] /// @param interval [Float] the animation interval. /// @return [TintTo] the action. static VALUE tint_to_new(VALUE rcv, SEL sel, VALUE red, VALUE green, VALUE blue, VALUE interval) { - auto action = cocos2d::TintTo::create(NUM2DBL(interval), NUM2BYTE(red), NUM2BYTE(green), NUM2BYTE(blue)); + auto action = cocos2d::TintTo::create(NUM2DBL(interval), NUM2BYTE(red), NUM2BYTE(green), NUM2BYTE(blue)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -258,7 +258,7 @@ tint_to_new(VALUE rcv, SEL sel, VALUE red, VALUE green, VALUE blue, VALUE interv static VALUE fade_to_new(VALUE rcv, SEL sel, VALUE opacity, VALUE interval) { - auto action = cocos2d::FadeTo::create(NUM2DBL(interval), NUM2BYTE(opacity)); + auto action = cocos2d::FadeTo::create(NUM2DBL(interval), NUM2BYTE(opacity)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -271,7 +271,7 @@ fade_to_new(VALUE rcv, SEL sel, VALUE opacity, VALUE interval) static VALUE fade_in_new(VALUE rcv, SEL sel, VALUE interval) { - auto action = cocos2d::FadeIn::create(NUM2DBL(interval)); + auto action = cocos2d::FadeIn::create(NUM2DBL(interval)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -284,7 +284,7 @@ fade_in_new(VALUE rcv, SEL sel, VALUE interval) static VALUE fade_out_new(VALUE rcv, SEL sel, VALUE interval) { - auto action = cocos2d::FadeOut::create(NUM2DBL(interval)); + auto action = cocos2d::FadeOut::create(NUM2DBL(interval)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -298,14 +298,14 @@ fade_out_new(VALUE rcv, SEL sel, VALUE interval) static VALUE blink_new(VALUE rcv, SEL sel, VALUE blinks, VALUE interval) { - auto action = cocos2d::Blink::create(NUM2DBL(interval), NUM2INT(blinks)); + auto action = cocos2d::Blink::create(NUM2DBL(interval), NUM2INT(blinks)); return rb_class_wrap_new((void *)action, rb_cAction); } /// @class Sequence < Action /// @group Constructors /// @method #initialize(actions) -/// Creates an action that runs actions sequentially, +/// Creates an action that runs actions sequentially, /// one after another on the receiver. /// @param actions [Action[]] the array of actions to run in sequence /// @return [Sequence] the action. @@ -313,12 +313,12 @@ static VALUE sequence_new(VALUE rcv, SEL sel, VALUE actions) { cocos2d::Vector actionsVector; - + for (int i = 0, count = RARRAY_LEN(actions); i < count; i++) { actionsVector.pushBack(FINITE_TIME_ACTION(RARRAY_AT(actions, i))); } - - auto action = cocos2d::Sequence::create(actionsVector); + + auto action = cocos2d::Sequence::create(actionsVector); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -332,12 +332,12 @@ static VALUE spawn_new(VALUE rcv, SEL sel, VALUE actions) { cocos2d::Vector actionsVector; - + for (int i = 0, count = RARRAY_LEN(actions); i < count; i++) { actionsVector.pushBack(FINITE_TIME_ACTION(RARRAY_AT(actions, i))); } - - auto action = cocos2d::Spawn::create(actionsVector); + + auto action = cocos2d::Spawn::create(actionsVector); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -350,7 +350,7 @@ spawn_new(VALUE rcv, SEL sel, VALUE actions) static VALUE follow_new(VALUE rcv, SEL sel, VALUE followed_node) { - auto action = cocos2d::Follow::create(NODE(followed_node)); + auto action = cocos2d::Follow::create(NODE(followed_node)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -363,7 +363,7 @@ follow_new(VALUE rcv, SEL sel, VALUE followed_node) static VALUE delay_time_new(VALUE rcv, SEL sel, VALUE interval) { - auto action = cocos2d::DelayTime::create(NUM2DBL(interval)); + auto action = cocos2d::DelayTime::create(NUM2DBL(interval)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -379,7 +379,7 @@ delay_time_new(VALUE rcv, SEL sel, VALUE interval) static VALUE speed_new(VALUE rcv, SEL sel, VALUE target_action, VALUE speed) { - auto action = cocos2d::Speed::create(ACTION_INTERVAL(target_action), NUM2DBL(speed)); + auto action = cocos2d::Speed::create(ACTION_INTERVAL(target_action), NUM2DBL(speed)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -388,12 +388,12 @@ speed_new(VALUE rcv, SEL sel, VALUE target_action, VALUE speed) /// @method #initialize(target_action, times) /// Creates an action that repeats the provided action a certain number of times. /// @param target_action [Action] the action to repeat. -/// @param times [Integer] the number of times to repeat. +/// @param times [Integer] the number of times to repeat. /// @return [Repeat] the action. static VALUE repeat_new(VALUE rcv, SEL sel, VALUE target_action, VALUE times) { - auto action = cocos2d::Repeat::create(ACTION_INTERVAL(target_action), NUM2INT(times)); + auto action = cocos2d::Repeat::create(ACTION_INTERVAL(target_action), NUM2INT(times)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -406,7 +406,7 @@ repeat_new(VALUE rcv, SEL sel, VALUE target_action, VALUE times) static VALUE repeat_forever_new(VALUE rcv, SEL sel, VALUE target_action) { - auto action = cocos2d::RepeatForever::create(ACTION_INTERVAL(target_action)); + auto action = cocos2d::RepeatForever::create(ACTION_INTERVAL(target_action)); return rb_class_wrap_new((void *)action, rb_cAction); } @@ -465,7 +465,7 @@ animate_new(VALUE rcv, SEL sel, int argc, VALUE *argv) auto animation = cocos2d::Animation::createWithSpriteFrames(frames, NUM2DBL(delay), loops_i); cocos2d::ActionInterval *action = cocos2d::Animate::create(animation); - + if (forever) { action = cocos2d::RepeatForever::create(action); } @@ -481,7 +481,7 @@ Init_Action(void) rb_define_method(rb_cAction, "reverse", action_reverse, 0); rb_define_method(rb_cAction, "clone", action_clone, 0); rb_define_method(rb_cAction, "done?", action_done, 0); - + rb_cMoveBy = rb_define_class_under(rb_mMC, "MoveBy", rb_cAction); rb_define_singleton_method(rb_cMoveBy, "new", move_by_new, 2); diff --git a/src/audio.cpp b/src/audio.cpp index 5a640c8c75..e38cebb534 100644 --- a/src/audio.cpp +++ b/src/audio.cpp @@ -23,7 +23,7 @@ struct mc_Audio { /// @param path [String] the path of the sound file that should be played. /// @param loop [Boolean] whether the sound file playback should loop. /// @param volume [Float] the audio volume that should be used to play this -/// this sound file, as a +0.0+ to +1.0+ Float range. +/// this sound file, as a +0.0+ to +1.0+ Float range. /// @return [Audio] an Audio instance. static VALUE @@ -37,7 +37,7 @@ audio_play(VALUE rcv, SEL sel, int argc, VALUE *argv) if (str.find('.') == std::string::npos) { #if CC_TARGET_OS_IPHONE || CC_TARGET_OS_APPLETV str.append(".caf"); -#else +#else str.append(".wav"); #endif } @@ -63,7 +63,7 @@ audio_loop(VALUE rcv, SEL sel) static VALUE audio_loop_set(VALUE rcv, SEL sel, VALUE flag) { - AUDIO_ENGINE::setLoop(AUDIO_ID(rcv), RTEST(flag)); + AUDIO_ENGINE::setLoop(AUDIO_ID(rcv), RTEST(flag)); return flag; } @@ -79,7 +79,7 @@ audio_volume(VALUE rcv, SEL sel) static VALUE audio_volume_set(VALUE rcv, SEL sel, VALUE val) { - AUDIO_ENGINE::setVolume(AUDIO_ID(rcv), NUM2DBL(val)); + AUDIO_ENGINE::setVolume(AUDIO_ID(rcv), NUM2DBL(val)); return val; } @@ -95,7 +95,7 @@ audio_current_position(VALUE rcv, SEL sel) static VALUE audio_current_position_set(VALUE rcv, SEL sel, VALUE val) { - AUDIO_ENGINE::setCurrentTime(AUDIO_ID(rcv), NUM2DBL(val)); + AUDIO_ENGINE::setCurrentTime(AUDIO_ID(rcv), NUM2DBL(val)); return val; } diff --git a/src/layer.cpp b/src/layer.cpp index 88acc63337..b30da71b4f 100644 --- a/src/layer.cpp +++ b/src/layer.cpp @@ -153,7 +153,7 @@ scene_update(VALUE rcv, SEL sel, VALUE delta) /// @param repeat [Integer] the number of times the block should be repeated. /// @param interval [Float] the interval between repetitions, in seconds. /// @yield [Float] the given block will be yield with the delta value, -/// in seconds. +/// in seconds. /// @return [String] a token representing the task that can be passed to /// {#unschedule} when needed. @@ -221,7 +221,7 @@ scene_on_touch_event(VALUE rcv, SEL sel, mc_Scene_EventType type) auto scene = SCENE(rcv); if (scene->touch_listener == NULL) { scene->touch_listener = cocos2d::EventListenerTouchOneByOne::create(); - } + } else { scene->getEventDispatcher()->removeEventListener(scene->touch_listener); } @@ -374,7 +374,7 @@ scene_debug_physics(VALUE rcv, SEL sel) static VALUE scene_debug_physics_set(VALUE rcv, SEL sel, VALUE arg) -{ +{ SCENE(rcv)->scene->getPhysicsWorld()->setDebugDrawMask(RTEST(arg) ? cocos2d::PhysicsWorld::DEBUGDRAW_ALL : cocos2d::PhysicsWorld::DEBUGDRAW_NONE); diff --git a/src/menu.cpp b/src/menu.cpp index 40aece6274..8577fb3e2b 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -4,8 +4,8 @@ VALUE rb_cMenu = Qnil; /// @class Menu < Object -/// A Menu is a way to navigate through game options. -/// Menus often contain options like Play, Quit, Settings and About. +/// A Menu is a way to navigate through game options. +/// Menus often contain options like Play, Quit, Settings and About. /// This is usually in the form of buttons that are pressed. static VALUE menu_alloc(VALUE rcv, SEL sel) @@ -16,7 +16,7 @@ menu_alloc(VALUE rcv, SEL sel) /// @group Miscellaneous /// @method #align_items_vertically(padding=null) -/// aligns menu items vertically with padding +/// aligns menu items vertically with padding /// (call after adding items via image_item) /// @param padding [Float] the amount of padding between the items. /// @return [Menu] the receiver. @@ -31,12 +31,12 @@ menu_align_items_vertically(VALUE rcv, SEL sel, int argc, VALUE *argv) } else { MENU(rcv)->alignItemsVertically(); } - + return rcv; } /// @method #align_items_horizontally(padding=null) -/// aligns menu items horizontally with padding +/// aligns menu items horizontally with padding /// (call after adding items via image_item) /// @param padding [Float] the amount of padding between the items. /// @return [Menu] the receiver. @@ -51,7 +51,7 @@ menu_align_items_horizontally(VALUE rcv, SEL sel, int argc, VALUE *argv) } else { MENU(rcv)->alignItemsHorizontally(); } - + return rcv; } @@ -101,7 +101,7 @@ Init_Menu(void) rb_define_singleton_method(rb_cMenu, "alloc", menu_alloc, 0); rb_define_method(rb_cMenu, "enabled?", menu_enabled, 0); rb_define_method(rb_cMenu, "enabled=", menu_enabled_set, 1); - rb_define_method(rb_cMenu, "image_item", menu_image_item, 2); - rb_define_method(rb_cMenu, "align_items_horizontally", menu_align_items_horizontally, -1); - rb_define_method(rb_cMenu, "align_items_vertically", menu_align_items_vertically, -1); + rb_define_method(rb_cMenu, "image_item", menu_image_item, 2); + rb_define_method(rb_cMenu, "align_items_horizontally", menu_align_items_horizontally, -1); + rb_define_method(rb_cMenu, "align_items_vertically", menu_align_items_vertically, -1); } diff --git a/src/node.cpp b/src/node.cpp index e81cffc741..ca5b761cf0 100644 --- a/src/node.cpp +++ b/src/node.cpp @@ -210,7 +210,7 @@ node_run_action(VALUE rcv, SEL sel, VALUE action) else { NODE(rcv)->runAction(ACTION(action)); } - + return rcv; } diff --git a/src/sprite.cpp b/src/sprite.cpp index 6bee6c0b2f..beb2379d48 100644 --- a/src/sprite.cpp +++ b/src/sprite.cpp @@ -115,7 +115,7 @@ sprite_rotate_by(VALUE rcv, SEL sel, VALUE delta_angle, VALUE interval) } /// @method #rotate_to(angle, interval) -/// Rotates the angle of the receiver to a new angle certain angle +/// Rotates the angle of the receiver to a new angle certain angle /// by modifying it's rotation attribute. /// @param angle [Float] the receiver should be rotated to. /// @param interval [Float] the animation interval. @@ -241,7 +241,7 @@ need_physics(VALUE rcv) { auto physics = SPRITE(rcv)->getPhysicsBody(); if (physics == NULL) { - rb_raise(rb_eRuntimeError, "receiver does not have a physics body"); + rb_raise(rb_eRuntimeError, "receiver does not have a physics body"); } return physics; } diff --git a/src/types.cpp b/src/types.cpp index b0666357fa..bbf4d3c29d 100644 --- a/src/types.cpp +++ b/src/types.cpp @@ -4,7 +4,7 @@ /// @class Point < Object /// A point represents a location in a two-dimensional coordinate system using /// +x+ and +y+ variables. -/// +/// /// When calling a method that expects a +Point+ object, a 2-element +Array+ /// can be passed instead, as a convenience shortcut. For example, /// node.location = [10, 20] @@ -13,7 +13,7 @@ /// point.x = 10 /// point.y = 20 /// node.location = point - + VALUE rb_cPoint = Qnil; extern "C" @@ -101,7 +101,7 @@ point_inspect(VALUE rcv, SEL sel) /// @class Size < Object /// A size represents the dimensions of width and height of an object. -/// +/// /// When calling a method that expects a +Size+ object, a 2-element +Array+ /// can be passed instead, as a convenience shortcut. For example, /// node.size = [200, 400] @@ -220,7 +220,7 @@ size_inspect(VALUE rcv, SEL sel) /// @class Color < Object /// A color represents the color, and sometimes opacity (alpha) of an object. -/// +/// /// When calling a method that expects a +Color+ object, a 3-element +Array+ /// (red-green-blue) or 4-element +Array+ (red-green-blue-alpha) can be passed /// instead, as a convenience shortcut. For example, diff --git a/src/ui.cpp b/src/ui.cpp index 507db9d434..5daa709ccb 100644 --- a/src/ui.cpp +++ b/src/ui.cpp @@ -79,7 +79,7 @@ widget_highlighted_set(VALUE rcv, SEL sel, VALUE val) /// @method #on_touch /// Configures a block to be called when a touch event is received on the -/// widget. +/// widget. /// @yield [Symbol] the given block will be called when the event /// is received with a +Symbol+ that describes the type of event, which can /// be +:begin+, +:move+, +:end+ or +:cancel+.