本文整理汇总了C#中Request.write2方法的典型用法代码示例。如果您正苦于以下问题:C# Request.write2方法的具体用法?C# Request.write2怎么用?C# Request.write2使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Request
的用法示例。
在下文中一共展示了Request.write2方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: create
// opcode 94 - create glyph cursor
public void create(Font src, Font mask, int source_char,
int mask_char, int fg_r, int fg_g, int fg_b,
int bg_r, int bg_g, int bg_b)
{
Request request = new Request (display, 94, 8);
request.write4 (id);
request.write4 (src.id);
request.write4 (mask.id);
request.write2 (source_char);
request.write2 (mask_char);
request.write2 (fg_r);
request.write2 (fg_g);
request.write2 (fg_b);
request.write2 (bg_r);
request.write2 (bg_g);
request.write2 (bg_b);
display.send_request (request);
}
示例2: recolor
// opcode 96 - recolor cursor
/**
* @see <a href="XRecolorCursor.html">XRecolorCursor</a>
*/
public void recolor(RGB foreground, RGB background)
{
Request request = new Request (display, 96, 5);
request.write2 (id);
request.write2 (foreground.red);
request.write2 (foreground.green);
request.write2 (foreground.blue);
request.write2 (background.red);
request.write2 (background.green);
request.write2 (background.blue);
display.send_request (request);
}
示例3: Cursor
// opcode 93 - create cursor
/**
* @param mask possible: {@link Pixmap#NONE}
* @see <a href="XCreatePixmapCursor.html">XCreatePixmapCursor</a>
*/
public Cursor(Pixmap src, Pixmap mask, int source_char,
int mask_char, int fg_r, int fg_g, int fg_b,
int bg_r, int bg_g, int bg_b, int x, int y)
: base(src.display)
{
Request request = new Request (display, 93, 8);
request.write4 (id);
request.write4 (src.id);
request.write4 (mask.id);
request.write2 (fg_r);
request.write2 (fg_g);
request.write2 (fg_b);
request.write2 (bg_r);
request.write2 (bg_g);
request.write2 (bg_b);
request.write2 (x);
request.write2 (y);
display.send_request (request);
}