.. index:: pair: struct; EE::UI::Borders .. _doxid-struct_e_e_1_1_u_i_1_1_borders: struct EE::UI::Borders ====================== .. toctree:: :hidden: Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct Borders { // fields :ref:`Border` :target:`left`; :ref:`Border` :target:`top`; :ref:`Border` :target:`right`; :ref:`Border` :target:`bottom`; :ref:`BorderRadiuses` :target:`radius`; // methods static std::string :target:`fromBorderType`(const :ref:`BorderType`& borderType); static :ref:`BorderType` :target:`toBorderType`(const std::string& borderType); static :ref:`Sizef` :target:`radiusFromString`(const :ref:`UINode`* node, const std::string& val); static void :ref:`createBorders`(:ref:`VertexBuffer`* vbo, const Borders& borders, const :ref:`Vector2f`& pos, const :ref:`Sizef`& size); static void :ref:`createBackground`(:ref:`VertexBuffer`* vbo, const :ref:`BorderRadiuses`& radius, const :ref:`Vector2f`& pos, const :ref:`Sizef`& size, const :ref:`Color`& color); }; .. _details-struct_e_e_1_1_u_i_1_1_borders: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Methods ------- .. index:: pair: function; createBorders .. _doxid-struct_e_e_1_1_u_i_1_1_borders_1ac9a29837bb7fbcd9edfa1b8081b13d8f: .. ref-code-block:: cpp :class: doxyrest-title-code-block static void createBorders(:ref:`VertexBuffer`* vbo, const Borders& borders, const :ref:`Vector2f`& pos, const :ref:`Sizef`& size) Creates the border geometry into the VertexBuffer provided. The VertexBuffer must be a a EE::Graphics::PrimitiveType::PRIMITIVE_TRIANGLE_STRIP with VERTEX_FLAGS_PRIMITIVE flags. .. index:: pair: function; createBackground .. _doxid-struct_e_e_1_1_u_i_1_1_borders_1a424965e6420ab64ff9a7a63eac441cd9: .. ref-code-block:: cpp :class: doxyrest-title-code-block static void createBackground(:ref:`VertexBuffer`* vbo, const :ref:`BorderRadiuses`& radius, const :ref:`Vector2f`& pos, const :ref:`Sizef`& size, const :ref:`Color`& color) Creates a rounded rectangle to use as background of a :ref:`UI ` node. The VertexBuffer must be a a EE::Graphics::PrimitiveType::PRIMITIVE_TRIANGLE_FAN with VERTEX_FLAGS_PRIMITIVE flags.