Skip to content

Commit

Permalink
Merge pull request #77 from tim-rex/additional_funcs_20180527
Browse files Browse the repository at this point in the history
Additional funcs 20180527
  • Loading branch information
swistakm committed May 30, 2018
2 parents 2d07e22 + 4a5d452 commit e2d5e2a
Show file tree
Hide file tree
Showing 3 changed files with 285 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![completion](https://img.shields.io/badge/completion-66%25%20%28294%20of%20442%29-blue.svg)](https://github.com/swistakm/pyimgui)
[![completion](https://img.shields.io/badge/completion-69%25%20%28308%20of%20443%29-blue.svg)](https://github.com/swistakm/pyimgui)
[![Coverage Status](https://coveralls.io/repos/github/swistakm/pyimgui/badge.svg?branch=master)](https://coveralls.io/github/swistakm/pyimgui?branch=master)
[![Documentation Status](https://readthedocs.org/projects/pyimgui/badge/?version=latest)](https://pyimgui.readthedocs.io/en/latest/?badge=latest)

Expand Down
35 changes: 21 additions & 14 deletions imgui/cimgui.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,19 @@ cdef extern from "imgui.h":


ctypedef struct ImDrawList:
# we mapp only buffer vectors since everything else is internal
# we map only buffer vectors since everything else is internal
# and right now we dont want to suport it.
ImVector[ImDrawCmd] CmdBuffer #
ImVector[ImDrawIdx] IdxBuffer #
ImVector[ImDrawVert] VtxBuffer #

void AddRectFilled(
const ImVec2&,
const ImVec2&,
ImU32,
# note: optional
float, int) except + #


ctypedef struct ImDrawData: #
bool Valid #
Expand Down Expand Up @@ -326,14 +333,14 @@ cdef extern from "imgui.h" namespace "ImGui":
bool ShowStyleSelector(const char*) except + #
void ShowFontSelector(const char*) except + #
void ShowUserGuide() except + #
const char* GetVersion() except + #
const char* GetVersion() except + #

void StyleColorsDark(ImGuiStyle* dst) except + #
void StyleColorsClassic(ImGuiStyle* dst) except + #
void StyleColorsLight(ImGuiStyle* dst) except + #

void SetItemDefaultFocus() except + #
void SetKeyboardFocusHere(int offset) except + #
void SetItemDefaultFocus() except + #
void SetKeyboardFocusHere(int offset) except + #


# ====
Expand Down Expand Up @@ -459,9 +466,9 @@ cdef extern from "imgui.h" namespace "ImGui":
ImFont* GetFont() except + #
float GetFontSize() except + #
ImVec2 GetFontTexUvWhitePixel() except + #
ImU32 GetColorU32(ImGuiCol, float) except + #
ImU32 GetColorU32(const ImVec4& col) except + #
ImU32 GetColorU32(ImU32 col) except + #
ImU32 GetColorU32(ImGuiCol, float) except + #
ImU32 GetColorU32(const ImVec4& col) except + #
ImU32 GetColorU32(ImU32 col) except + #

# ====
# Parameters stacks (current window)
Expand Down Expand Up @@ -500,14 +507,14 @@ cdef extern from "imgui.h" namespace "ImGui":
void SetCursorPos(const ImVec2& local_pos) except + #
void SetCursorPosX(float x) except + #
void SetCursorPosY(float y) except + #
ImVec2 GetCursorStartPos() except + #
ImVec2 GetCursorScreenPos() except + #
ImVec2 GetCursorStartPos() except + #
ImVec2 GetCursorScreenPos() except + #
void SetCursorScreenPos(const ImVec2& screen_pos) except + #
void AlignTextToFramePadding() except + #
float GetTextLineHeight() except + #
float GetTextLineHeightWithSpacing() except + #
float GetFrameHeight() except + #
float GetFrameHeightWithSpacing() except + #
float GetTextLineHeight() except + #
float GetTextLineHeightWithSpacing() except + #
float GetFrameHeight() except + #
float GetFrameHeightWithSpacing() except + #

# ====
# ID scopes
Expand Down Expand Up @@ -1085,7 +1092,7 @@ cdef extern from "imgui.h" namespace "ImGui":
ImDrawList* GetOverlayDrawList() except + #
ImDrawListSharedData* GetDrawListSharedData() except + #

const char* GetStyleColName(ImGuiCol idx) except + #
const char* GetStyleColorName(ImGuiCol idx) except + #

void SetStateStorage(ImGuiStorage* storage) except + #
ImGuiStorage* GetStateStorage() except + #
Expand Down

0 comments on commit e2d5e2a

Please sign in to comment.