示例#1
0
        public static NkStyleItem nk_style_item_image(NkImage img)
        {
            NkStyleItem i = new NkStyleItem();

            i.Type       = (NkStyleItemType.IMAGE);
            i.Data.Image = (NkImage)(img);
            return((NkStyleItem)(i));
        }
示例#2
0
        public static NkStyleItem nk_style_item_color(NkColor col)
        {
            NkStyleItem i = new NkStyleItem();

            i.Type       = (int)(NkStyleItemType.COLOR);
            i.Data.Color = (NkColor)(col);
            return((NkStyleItem)(i));
        }
 public bool StylePushStyleItem(NkStyleItem address, NkStyleItem value)
 {
     return(Nk.nk_style_push_style_item(_ctx, address, value) != 0);
 }