00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00031
00032 #pragma once
00033
00034 #include "../Core/System/sharedptr.h"
00035 #include "gui_layout.h"
00036
00037 class CL_GUIComponent;
00038 class CL_GUILayoutProvider_Corners;
00039
00043 enum CL_ComponentAnchorPoint
00044 {
00045 cl_anchor_top_left,
00046 cl_anchor_top_right,
00047 cl_anchor_bottom_left,
00048 cl_anchor_bottom_right,
00049 cl_anchor_relative
00050 };
00051
00055 class CL_API_GUI CL_GUILayoutCorners : public CL_GUILayout
00056 {
00059
00060 public:
00061 CL_GUILayoutCorners();
00062
00063 virtual ~CL_GUILayoutCorners();
00064
00068
00069 public:
00071 CL_GUILayoutProvider_Corners *get_provider() const;
00072
00076
00077 public:
00078 void add_component(
00079 CL_GUIComponent *component,
00080 CL_ComponentAnchorPoint ap_tl, int dist_tl_x, int dist_tl_y,
00081 CL_ComponentAnchorPoint ap_br, int dist_br_x, int dist_br_y);
00082
00086 void remove_component(CL_GUIComponent *component);
00087
00091
00092 private:
00094 };
00095