mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
doc: Don't bind argument names with p_ prefix
This prefix is used in the C++ codebase, not in the scripting API.
This commit is contained in:
parent
444f57210e
commit
69152af45d
@ -12,13 +12,13 @@
|
||||
<method name="add_color_region">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="p_start_key" type="String">
|
||||
<argument index="0" name="start_key" type="String">
|
||||
</argument>
|
||||
<argument index="1" name="p_end_key" type="String">
|
||||
<argument index="1" name="end_key" type="String">
|
||||
</argument>
|
||||
<argument index="2" name="p_color" type="Color">
|
||||
<argument index="2" name="color" type="Color">
|
||||
</argument>
|
||||
<argument index="3" name="p_line_only" type="bool" default="false">
|
||||
<argument index="3" name="line_only" type="bool" default="false">
|
||||
</argument>
|
||||
<description>
|
||||
Adds a color region such as comments or strings.
|
||||
@ -93,7 +93,7 @@
|
||||
<method name="has_color_region" qualifiers="const">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<argument index="0" name="p_start_key" type="String">
|
||||
<argument index="0" name="start_key" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Return [code]true[/code] if the start key exists, else [code]false[/code].
|
||||
@ -120,7 +120,7 @@
|
||||
<method name="remove_color_region">
|
||||
<return type="void">
|
||||
</return>
|
||||
<argument index="0" name="p_start_key" type="String">
|
||||
<argument index="0" name="start_key" type="String">
|
||||
</argument>
|
||||
<description>
|
||||
Removes the color region that uses that start key.
|
||||
|
@ -21,7 +21,7 @@
|
||||
<method name="_get_line_syntax_highlighting" qualifiers="virtual">
|
||||
<return type="Dictionary">
|
||||
</return>
|
||||
<argument index="0" name="p_line" type="int">
|
||||
<argument index="0" name="line" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Virtual method which can be overridden to return syntax highlighting data.
|
||||
@ -46,7 +46,7 @@
|
||||
<method name="get_line_syntax_highlighting">
|
||||
<return type="Dictionary">
|
||||
</return>
|
||||
<argument index="0" name="p_line" type="int">
|
||||
<argument index="0" name="line" type="int">
|
||||
</argument>
|
||||
<description>
|
||||
Returns syntax highlighting data for a single line. If the line is not cached, calls [method _get_line_syntax_highlighting] to calculate the data.
|
||||
|
@ -371,7 +371,7 @@ void GeometryInstance3D::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_gi_mode", "mode"), &GeometryInstance3D::set_gi_mode);
|
||||
ClassDB::bind_method(D_METHOD("get_gi_mode"), &GeometryInstance3D::get_gi_mode);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_lod_bias", "p_bias"), &GeometryInstance3D::set_lod_bias);
|
||||
ClassDB::bind_method(D_METHOD("set_lod_bias", "bias"), &GeometryInstance3D::set_lod_bias);
|
||||
ClassDB::bind_method(D_METHOD("get_lod_bias"), &GeometryInstance3D::get_lod_bias);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_custom_aabb", "aabb"), &GeometryInstance3D::set_custom_aabb);
|
||||
|
@ -1593,7 +1593,7 @@ void GraphEdit::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("remove_valid_connection_type", "from_type", "to_type"), &GraphEdit::remove_valid_connection_type);
|
||||
ClassDB::bind_method(D_METHOD("is_valid_connection_type", "from_type", "to_type"), &GraphEdit::is_valid_connection_type);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_zoom", "p_zoom"), &GraphEdit::set_zoom);
|
||||
ClassDB::bind_method(D_METHOD("set_zoom", "zoom"), &GraphEdit::set_zoom);
|
||||
ClassDB::bind_method(D_METHOD("get_zoom"), &GraphEdit::get_zoom);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_snap", "pixels"), &GraphEdit::set_snap);
|
||||
@ -1608,9 +1608,9 @@ void GraphEdit::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_connection_lines_antialiased", "pixels"), &GraphEdit::set_connection_lines_antialiased);
|
||||
ClassDB::bind_method(D_METHOD("is_connection_lines_antialiased"), &GraphEdit::is_connection_lines_antialiased);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_minimap_size", "p_size"), &GraphEdit::set_minimap_size);
|
||||
ClassDB::bind_method(D_METHOD("set_minimap_size", "size"), &GraphEdit::set_minimap_size);
|
||||
ClassDB::bind_method(D_METHOD("get_minimap_size"), &GraphEdit::get_minimap_size);
|
||||
ClassDB::bind_method(D_METHOD("set_minimap_opacity", "p_opacity"), &GraphEdit::set_minimap_opacity);
|
||||
ClassDB::bind_method(D_METHOD("set_minimap_opacity", "opacity"), &GraphEdit::set_minimap_opacity);
|
||||
ClassDB::bind_method(D_METHOD("get_minimap_opacity"), &GraphEdit::get_minimap_opacity);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_minimap_enabled", "enable"), &GraphEdit::set_minimap_enabled);
|
||||
|
@ -29,7 +29,9 @@
|
||||
/*************************************************************************/
|
||||
|
||||
#include "texture_button.h"
|
||||
|
||||
#include "core/typedefs.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
Size2 TextureButton::get_minimum_size() const {
|
||||
@ -247,8 +249,8 @@ void TextureButton::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("set_disabled_texture", "texture"), &TextureButton::set_disabled_texture);
|
||||
ClassDB::bind_method(D_METHOD("set_focused_texture", "texture"), &TextureButton::set_focused_texture);
|
||||
ClassDB::bind_method(D_METHOD("set_click_mask", "mask"), &TextureButton::set_click_mask);
|
||||
ClassDB::bind_method(D_METHOD("set_expand", "p_expand"), &TextureButton::set_expand);
|
||||
ClassDB::bind_method(D_METHOD("set_stretch_mode", "p_mode"), &TextureButton::set_stretch_mode);
|
||||
ClassDB::bind_method(D_METHOD("set_expand", "expand"), &TextureButton::set_expand);
|
||||
ClassDB::bind_method(D_METHOD("set_stretch_mode", "mode"), &TextureButton::set_stretch_mode);
|
||||
ClassDB::bind_method(D_METHOD("set_flip_h", "enable"), &TextureButton::set_flip_h);
|
||||
ClassDB::bind_method(D_METHOD("is_flipped_h"), &TextureButton::is_flipped_h);
|
||||
ClassDB::bind_method(D_METHOD("set_flip_v", "enable"), &TextureButton::set_flip_v);
|
||||
|
@ -110,12 +110,12 @@ TextEdit *SyntaxHighlighter::get_text_edit() {
|
||||
}
|
||||
|
||||
void SyntaxHighlighter::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("get_line_syntax_highlighting", "p_line"), &SyntaxHighlighter::get_line_syntax_highlighting);
|
||||
ClassDB::bind_method(D_METHOD("get_line_syntax_highlighting", "line"), &SyntaxHighlighter::get_line_syntax_highlighting);
|
||||
ClassDB::bind_method(D_METHOD("update_cache"), &SyntaxHighlighter::update_cache);
|
||||
ClassDB::bind_method(D_METHOD("clear_highlighting_cache"), &SyntaxHighlighter::clear_highlighting_cache);
|
||||
ClassDB::bind_method(D_METHOD("get_text_edit"), &SyntaxHighlighter::get_text_edit);
|
||||
|
||||
BIND_VMETHOD(MethodInfo(Variant::DICTIONARY, "_get_line_syntax_highlighting", PropertyInfo(Variant::INT, "p_line")));
|
||||
BIND_VMETHOD(MethodInfo(Variant::DICTIONARY, "_get_line_syntax_highlighting", PropertyInfo(Variant::INT, "line")));
|
||||
BIND_VMETHOD(MethodInfo("_clear_highlighting_cache"));
|
||||
BIND_VMETHOD(MethodInfo("_update_cache"));
|
||||
}
|
||||
@ -573,11 +573,11 @@ void CodeHighlighter::_bind_methods() {
|
||||
ClassDB::bind_method(D_METHOD("clear_member_keyword_colors"), &CodeHighlighter::clear_member_keyword_colors);
|
||||
ClassDB::bind_method(D_METHOD("get_member_keyword_colors"), &CodeHighlighter::get_member_keyword_colors);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("add_color_region", "p_start_key", "p_end_key", "p_color", "p_line_only"), &CodeHighlighter::add_color_region, DEFVAL(false));
|
||||
ClassDB::bind_method(D_METHOD("remove_color_region", "p_start_key"), &CodeHighlighter::remove_color_region);
|
||||
ClassDB::bind_method(D_METHOD("has_color_region", "p_start_key"), &CodeHighlighter::has_color_region);
|
||||
ClassDB::bind_method(D_METHOD("add_color_region", "start_key", "end_key", "color", "line_only"), &CodeHighlighter::add_color_region, DEFVAL(false));
|
||||
ClassDB::bind_method(D_METHOD("remove_color_region", "start_key"), &CodeHighlighter::remove_color_region);
|
||||
ClassDB::bind_method(D_METHOD("has_color_region", "start_key"), &CodeHighlighter::has_color_region);
|
||||
|
||||
ClassDB::bind_method(D_METHOD("set_color_regions", "p_color_regions"), &CodeHighlighter::set_color_regions);
|
||||
ClassDB::bind_method(D_METHOD("set_color_regions", "color_regions"), &CodeHighlighter::set_color_regions);
|
||||
ClassDB::bind_method(D_METHOD("clear_color_regions"), &CodeHighlighter::clear_color_regions);
|
||||
ClassDB::bind_method(D_METHOD("get_color_regions"), &CodeHighlighter::get_color_regions);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user