00001
00002
00003
00004
00005
00006
00007
00008
00009 #include "precomp.h"
00010 #include "API/GUI/frame.h"
00011 #include "API/GUI/component_options.h"
00012 #include "API/GUI/stylemanager.h"
00013 #include "frame_generic.h"
00014
00016
00017
00018 CL_Frame::CL_Frame(
00019 const CL_ComponentOptions &options,
00020 CL_Component *parent,
00021 CL_StyleManager *style)
00022 :
00023 CL_Component(options, parent, style),
00024 impl(NULL)
00025 {
00026 impl = new CL_Frame_Generic(this, options, get_style_manager());
00027 get_style_manager()->connect_styles("frame", options, this);
00028 }
00029
00030 CL_Frame::CL_Frame(
00031 const CL_Rect &pos,
00032 CL_Component *parent,
00033 CL_StyleManager *style)
00034 :
00035 CL_Component(
00036 CL_Frame_Generic::create_options(pos),
00037 parent,
00038 style),
00039 impl(NULL)
00040 {
00041 CL_ComponentOptions options = CL_Frame_Generic::create_options(pos);
00042 impl = new CL_Frame_Generic(this, options, get_style_manager());
00043 get_style_manager()->connect_styles("frame", options, this);
00044 }
00045
00046 CL_Frame::~CL_Frame()
00047 {
00048 delete impl;
00049 }