コード例 #1
0
 public bool TreePushHashed(NkTreeType type, string title, int initial_state, string hash, int line)
 {
     fixed(char *title_ptr = title)
     {
         fixed(char *hash_ptr = hash)
         {
             return(Nk.nk_tree_push_hashed(_ctx, type, title_ptr, initial_state, hash_ptr, hash.Length, line) != 0);
         }
     }
 }
コード例 #2
0
 public bool TreeBase(NkTreeType type, NkImage img, string title, int initial_state, string hash, int line)
 {
     fixed(char *title_ptr = title)
     {
         fixed(char *hash_ptr = hash)
         {
             return(Nk.nk_tree_base(_ctx, type, img, title_ptr, initial_state, hash_ptr, hash.Length, line) != 0);
         }
     }
 }
コード例 #3
0
 public bool TreeImagePushHashed(NkTreeType type, NkImage img, string title, int initial_state, string hash, int seed)
 {
     fixed(char *title_ptr = title)
     {
         fixed(char *hash_ptr = hash)
         {
             return(Nk.nk_tree_image_push_hashed(_ctx, type, img, title_ptr, initial_state, hash_ptr, hash.Length, seed) !=
                    0);
         }
     }
 }