summaryrefslogtreecommitdiff
path: root/scene/gui/control.cpp
AgeCommit message (Collapse)Author
2017-12-17Fix Clip Content property is not savedvolzhs
2017-12-10fix certain popup close clicks with popup buttonsBernhard Liebl
2017-11-19Rework the canvas_item API for further improves to the canvas item editorGilles Roudiere
2017-11-16Add manual overrides for focus_next and focus_previous on controls similar ↵Saracen
to what can already be done with focus neighbours.
2017-11-10Unify degree members and propertiesletheed
2017-11-10Remove deprecated rotation methodsletheed
2017-10-22Bind unbound enums, rearrange some by valuePoommetee Ketson
2017-09-27Fixes set_anchors_and_margins_preset()Gilles Roudiere
2017-09-22Remove set_area_as_parent_rect and replace it by ↵Gilles Roudiere
set_anchors_and_margins_preset(PRESET_WIDE)
2017-09-22Implements set_margins_preset(...)Gilles Roudiere
2017-09-20Rename pos to position in user facing methods and variablesletheed
Rename user facing methods and variables as well as the corresponding C++ methods according to the folloming changes: * pos -> position * rot -> rotation * loc -> location C++ variables are left as is.
2017-09-14also loop for classes if there is no coustom theme fixes #11250toger5
2017-09-08Fix serveral recent new clang-format errorsHein-Pieter van Braam
2017-09-07Restored auto snapping of controls to pixels, fixes #10847 and probably ↵Juan Linietsky
several more issues. Made it optional in the project settings but defaults to true.
2017-08-29DocData and type hints fixesIgnacio Etcheverry
- Makes vararg methods automatically use PROPERTY_USAGE_NIL_IS_VARIANT on return types - Completely removes the ":type" suffix for method names. Virtual methods must use the MethodInfo constructors that takes Variant::Type or PropertyHint as the first parameter for the return type (with CLASS_INFO as a helper to get the PropertyInfo). Parameters must use PROPERTY_HINT_RESOURCE_TYPE and hint string. - PROPERTY_USAGE_NIL_IS_VARIANT is no longer needed for parameters, because parameters cannot be void. - Adds missing PROPERTY_USAGE_NIL_IS_VARIANT to virtual and built-in methods that return Variant.
2017-08-27Use HTTPS URL for Godot's website in the headersRémi Verschelde
2017-08-24Convert Object::cast_to() to the static versionHein-Pieter van Braam
Currently we rely on some undefined behavior when Object->cast_to() gets called with a Null pointer. This used to work fine with GCC < 6 but newer versions of GCC remove all codepaths in which the this pointer is Null. However, the non-static cast_to() was supposed to be null safe. This patch makes cast_to() Null safe and removes the now redundant Null checks where they existed. It is explained in this article: https://www.viva64.com/en/b/0226/
2017-08-22Removed unnecessary returns and break statementsWilson E. Alvarez
2017-08-21Merge pull request #10351 from neikeq/enums-are-for-the-weakJuan Linietsky
ClassDB: Provide the enum name of integer constants
2017-08-20ClassDB: Provide the enum name of integer constantsIgnacio Etcheverry
2017-08-20Merge pull request #10319 from neikeq/pr-engine-editor-hintJuan Linietsky
Adds Engine::is_editor_hint() method
2017-08-19Removes editor_hint from SceneTreeIgnacio Etcheverry
2017-08-15Changed anchor constants to enum, removed ANCHOR_CENTER, fixes #9889Juan Linietsky
2017-08-13Avoids inverted anchorsGilles Roudiere
Add a push_opposite_anchor argument pushing the opposite anchor if needed
2017-08-13Adds a function to set Anchors with a layout presetGilles Roudiere
2017-08-13Handle undo/redo of anchor positioningGilles Roudiere
2017-08-13Add anchor visualizationGilles Roudiere
2017-08-13Replace GUI anchor type by a float between 0 and 1Gilles Roudiere
2017-08-10Removes type information from method bindsIgnacio Etcheverry
2017-08-10Adds missing type information to virtual method bindsIgnacio Etcheverry
2017-08-07Makes all Godot API's methods Lower CaseIndah Sylvia
2017-07-31Fix property type expose of Control.stretch_ratio.Geequlim
Fix set integer value from inspector to round instead of floor.
2017-07-19-Renamed GlobalConfig to ProjectSettings, makes more sense.Juan Linietsky
-Added system for feature overrides, it's pretty cool :)
2017-07-19Add object type hint for docsPoommetee Ketson
2017-07-13Control: save SIZE_FILL size flag propertyPoommetee Ketson
2017-07-08removed floor so that global pos works with scalealexholly
2017-07-06More fill modes for containers, closes #9504Juan Linietsky
2017-07-06Ability to set rotation and scaling pivot for controls.Juan Linietsky
2017-07-06-Ability for controls to grow the left/top when anchored. This makes ↵Juan Linietsky
anchoring controls to the right/bottom easier when they are resized.
2017-06-12Properly adjust the visible editor rect and make limits respected, closes #8328Juan Linietsky
2017-06-04renamed all Rect2.pos to Rect2.positionalexholly
2017-05-28Fixing typo for rect_position in _change_notify call for ControlKristupas Stumbrys
2017-05-20Removal of InputEvent as built-in Variant type..Juan Linietsky
this might cause bugs I haven't found yet..
2017-04-10Rename [gs]et_pos to [gs]et_position for ControlsSergey Pusnei
Control set_pos -> set_position Control set_global_pos -> set_global_position [gs]et_mouse_pos -> [gs]et_mouse_position [gs]et_global_mouse_pos -> [gs]et_global_mouse_position fixes #8005
2017-04-08Add "Godot Engine contributors" copyright lineRémi Verschelde
2017-04-03Fix more property names in _change_notify calls.Andreas Haas
2017-04-01Fixed Node2D/Control not updating propertiesRobert Hernandez
2017-03-24Fix typos in source code using codespellRémi Verschelde
From https://github.com/lucasdemarchi/codespell
2017-03-18Merge pull request #8023 from CrazyGuy108/masterRémi Verschelde
List Control::has_point as a virtual method
2017-03-14List Control::has_point as a virtual methodCrazyGuy108
According to Issue #8018, a BIND_VMETHOD macro wasn't present in scene/gui/control.cpp, while it was declared to be a virtual method in scene/gui/control.h. classes.xml was updated to also list this method in Control.