.. default-domain:: c .. highlight:: c Object ====== .. type:: krpc_UI_Object_t The base class of canvases, panels, controls, text, images, scroll views and toggle groups. | Derived classes: :type:`krpc_UI_Container_t`, :type:`krpc_UI_Control_t`, :type:`krpc_UI_Image_t`, :type:`krpc_UI_ScrollView_t`, :type:`krpc_UI_Text_t`, :type:`krpc_UI_ToggleGroup_t` .. macro:: KRPC_CLASS_UI_OBJECT The service and class ids of the class, for :func:`krpc_KRPC_Type_ClassTypeById`. .. function:: krpc_error_t krpc_UI_Object_RectTransform(krpc_connection_t connection, krpc_UI_RectTransform_t * returnValue, krpc_UI_Object_t instance) The rect transform for the UI object. .. function:: krpc_error_t krpc_UI_Object_LayoutElement(krpc_connection_t connection, krpc_UI_LayoutElement_t * returnValue, krpc_UI_Object_t instance) How much space the UI object asks a layout for. .. note:: Only has an effect when the object is in a panel that has a layout. A canvas is not inside a layout and does not have one. .. function:: krpc_error_t krpc_UI_Object_Visible(krpc_connection_t connection, bool * returnValue, krpc_UI_Object_t instance) .. function:: krpc_error_t krpc_UI_Object_set_Visible(krpc_connection_t connection, krpc_UI_Object_t instance, bool value) Whether the UI object is visible. .. note:: This is the object's own setting, which is what it was last set to. An object is only drawn when everything it is inside is visible as well, so an interface can be built with its parts visible, inside a panel that is not, and shown all at once by making that panel visible. .. function:: krpc_error_t krpc_UI_Object_Remove(krpc_connection_t connection, krpc_UI_Object_t instance) Remove the UI object.