📄 paint.hh
字号:
#ifndef CLICK_PAINT_HH#define CLICK_PAINT_HH#include <click/element.hh>CLICK_DECLS/*=cPaint(X)=s annotationssets packet paint annotations=dSets each packet's paint annotation to X, an integer 0..255. Note that apacket may only be painted with one color.=h color read/writeget/set the color to paint=nThe paint annotation is stored in user annotation 0.=a PaintTee */class Paint : public Element { unsigned char _color; public: Paint(); ~Paint(); const char *class_name() const { return "Paint"; } const char *processing() const { return AGNOSTIC; } int configure(Vector<String> &, ErrorHandler *); bool can_live_reconfigure() const { return true; } int color() const { return _color; } void set_color(unsigned char in_color) { _color = in_color; } Packet *simple_action(Packet *); void add_handlers(); static String color_read_handler(Element *, void *); };CLICK_ENDDECLS#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -