graphic_class.cc
来自「QNX实时操作系统里的GUI是c格式的」· CC 代码 · 共 44 行
CC
44 行
// This is C++// vim:ts=8:softtabstop=8:cindent:autoindent:syntax=cpp#include <photonmm/Graphic_Class.h>// namespace Pt { Graphic_Class::Graphic_Class (PtWidget_t* widget) { obj = widget; } void Graphic_Class::set_inside_color (PgColor_t c) { PtSetResource (cobj (), Pt_ARG_INSIDE_COLOR, c, 0); } PgColor_t Graphic_Class::get_inside_color () const { PgColor_t* c; PtGetResource (cobj (), Pt_ARG_INSIDE_COLOR, &c, 0); return *c; } PropertyProxy<PgColor_t> Graphic_Class::property_inside_color () // Pt_ARG_INSIDE_COLOR { return PropertyProxy<PgColor_t> ( new Property<PgColor_t, Graphic_Class, &Graphic_Class::get_inside_color, &Graphic_Class::set_inside_color> (this ) ); }// } // namespace Pt
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?