|
Blender
V2.93
|
#include "GHOST_SystemCocoa.h"#include "GHOST_DisplayManagerCocoa.h"#include "GHOST_EventButton.h"#include "GHOST_EventCursor.h"#include "GHOST_EventDragnDrop.h"#include "GHOST_EventKey.h"#include "GHOST_EventString.h"#include "GHOST_EventTrackpad.h"#include "GHOST_EventWheel.h"#include "GHOST_TimerManager.h"#include "GHOST_TimerTask.h"#include "GHOST_WindowCocoa.h"#include "GHOST_WindowManager.h"#include "GHOST_ContextCGL.h"#include "AssertMacros.h"#import <Cocoa/Cocoa.h>#include <Carbon/Carbon.h>#include <sys/sysctl.h>#include <sys/time.h>#include <sys/types.h>#include <mach/mach_time.h>Go to the source code of this file.
Classes | |
| class | CocoaAppDelegate |
Macros | |
| #define | FIRSTFILEBUFLG 512 |
Functions | |
| static GHOST_TButtonMask | convertButton (int button) |
| static GHOST_TKey | convertKey (int rawCode, unichar recvChar, UInt16 keyAction) |
| int | GHOST_HACK_getFirstFile (char buf[FIRSTFILEBUFLG]) |
Variables | |
| static bool | g_hasFirstFile = false |
| static char | g_firstFileBuf [512] |
| __pad0__ | |
| NSNotificationCenter * | center = [NSNotificationCenter defaultCenter] |
| return | self |
| #define FIRSTFILEBUFLG 512 |
Definition at line 342 of file GHOST_SystemCocoa.mm.
|
static |
Definition at line 60 of file GHOST_SystemCocoa.mm.
References GHOST_kButtonMaskButton4, GHOST_kButtonMaskButton5, GHOST_kButtonMaskButton6, GHOST_kButtonMaskButton7, GHOST_kButtonMaskLeft, GHOST_kButtonMaskMiddle, and GHOST_kButtonMaskRight.
Referenced by GHOST_SystemCocoa::handleMouseEvent().
|
static |
Converts Mac raw-key codes (same for Cocoa & Carbon) into GHOST key codes
| rawCode | The raw physical key code |
| recvChar | the character ignoring modifiers (except for shift) |
Definition at line 89 of file GHOST_SystemCocoa.mm.
References GHOST_kKey0, GHOST_kKey1, GHOST_kKey2, GHOST_kKey3, GHOST_kKey4, GHOST_kKey5, GHOST_kKey6, GHOST_kKey7, GHOST_kKey8, GHOST_kKey9, GHOST_kKeyA, GHOST_kKeyAccentGrave, GHOST_kKeyBackslash, GHOST_kKeyBackSpace, GHOST_kKeyComma, GHOST_kKeyDelete, GHOST_kKeyDownArrow, GHOST_kKeyDownPage, GHOST_kKeyEnd, GHOST_kKeyEnter, GHOST_kKeyEqual, GHOST_kKeyEsc, GHOST_kKeyF1, GHOST_kKeyF10, GHOST_kKeyF11, GHOST_kKeyF12, GHOST_kKeyF13, GHOST_kKeyF14, GHOST_kKeyF15, GHOST_kKeyF16, GHOST_kKeyF17, GHOST_kKeyF18, GHOST_kKeyF19, GHOST_kKeyF2, GHOST_kKeyF20, GHOST_kKeyF3, GHOST_kKeyF4, GHOST_kKeyF5, GHOST_kKeyF6, GHOST_kKeyF7, GHOST_kKeyF8, GHOST_kKeyF9, GHOST_kKeyHome, GHOST_kKeyLeftArrow, GHOST_kKeyLeftBracket, GHOST_kKeyMinus, GHOST_kKeyNumpad0, GHOST_kKeyNumpad1, GHOST_kKeyNumpad2, GHOST_kKeyNumpad3, GHOST_kKeyNumpad4, GHOST_kKeyNumpad5, GHOST_kKeyNumpad6, GHOST_kKeyNumpad7, GHOST_kKeyNumpad8, GHOST_kKeyNumpad9, GHOST_kKeyNumpadAsterisk, GHOST_kKeyNumpadEnter, GHOST_kKeyNumpadMinus, GHOST_kKeyNumpadPeriod, GHOST_kKeyNumpadPlus, GHOST_kKeyNumpadSlash, GHOST_kKeyPeriod, GHOST_kKeyPlus, GHOST_kKeyQuote, GHOST_kKeyRightArrow, GHOST_kKeyRightBracket, GHOST_kKeySemicolon, GHOST_kKeySlash, GHOST_kKeySpace, GHOST_kKeyTab, GHOST_kKeyUnknown, GHOST_kKeyUpArrow, and GHOST_kKeyUpPage.
Referenced by GHOST_SystemCocoa::handleKeyEvent().
| int GHOST_HACK_getFirstFile | ( | char | buf[FIRSTFILEBUFLG] | ) |
Definition at line 348 of file GHOST_SystemCocoa.mm.
References FIRSTFILEBUFLG, g_firstFileBuf, and g_hasFirstFile.
Referenced by main().
| __pad0__ |
Definition at line 370 of file GHOST_SystemCocoa.mm.
| NSNotificationCenter* center = [NSNotificationCenter defaultCenter] |
Definition at line 389 of file GHOST_SystemCocoa.mm.
Referenced by _bli_array_iter_spiral_square(), GIM_BOX_TREE::_calc_splitting_axis(), btBvhTree::_calc_splitting_axis(), btQuantizedBvhTree::_calc_splitting_axis(), GIM_BOX_TREE::_sort_and_calc_splitting_index(), btBvhTree::_sort_and_calc_splitting_index(), btQuantizedBvhTree::_sort_and_calc_splitting_index(), BVHBuild::add_reference_curves(), BVHBuild::add_reference_geometry(), BVHBuild::add_reference_object(), BVHBuild::add_reference_triangles(), BVHBuild::add_references(), applyAlign(), applyShear(), applyToSphere(), appy_transform(), GIM_AABB::appy_transform(), appy_transform_trans_cache(), BKE_mesh_calc_volume(), BKE_pbvh_bmesh_update_topology(), BLI_covariance_m3_v3n(), BLI_covariance_m_vn_ex(), bm_decim_build_quadrics(), BM_face_splits_check_legal(), bm_loop_collapse_is_degenerate(), BM_verts_calc_normal_from_cloud_ex(), bmo_collapse_exec(), bmo_rotate_exec(), btFindOrigin(), btTransformAabb(), bvh_reference_sort_threaded(), cage2d_draw_circle_wire(), cage3d_draw_circle_wire(), calc_frame_center(), calc_local_y(), calcSplittingAxis(), calculateCenterBound(), calculateCenterMedian(), calculatePrincipalAxisTransform(), clip_to_ortho_planes(), GIM_AABB::collide_ray(), collide_ray(), GIM_AABB::collide_triangle_exact(), collide_triangle_exact(), btConvexHullInternal::compute(), compute_volume(), Freestyle::ComputeCenterTangent(), IK_QCenterOfMassTask::ComputeJacobian(), Freestyle::ViewMapBuilder::ComputeRayCastingVisibility(), Freestyle::computeVisibility(), covariance_m_vn_ex_task_cb(), btSoftBodyHelpers::CreateEllipsoid(), createFacepa(), createTransGPencil_strokes(), createTransNlaData(), createTransUVs(), cube_project_exec(), cuboid_do(), cursor_plane_draw(), curve_draw_invoke(), cylinder_project_exec(), dBoxBox2(), debugDrawConstraint(), deformStroke(), do_clump(), do_uvedit_vertex(), btSoftBodyHelpers::Draw(), draw_azone_arrow(), draw_primitive_view_impl(), btIDebugDraw::drawAabb(), btIDebugDraw::drawArc(), btIDebugDraw::drawCapsule(), drawLine(), btIDebugDraw::drawSphere(), btIDebugDraw::drawSpherePatch(), DRW_debug_sphere(), DRW_select_buffer_bitmap_from_circle(), DRW_select_buffer_find_nearest_to_point(), DRW_select_buffer_sample_point(), ED_curve_active_center(), ed_editcurve_addvert(), edbm_dupli_extrude_cursor_invoke(), edbm_point_normals_modal(), edbm_polybuild_face_at_cursor_invoke(), edbm_polybuild_split_at_cursor_invoke(), EEVEE_temporal_sampling_matrices_calc(), ElementMirror(), ElementResize(), ElementRotation(), ElementRotation_ex(), extract_fdots_pos_iter_poly_bm(), extract_fdots_pos_iter_poly_mesh(), find_first_points(), TileManager::gen_tiles(), VolumeMeshBuilder::generate_vertices_and_quads(), blender::nodes::geo_node_bounding_box_exec(), get_center_extend(), GIM_AABB::get_center_extend(), get_multi_function(), getAabb(), getAabbNonVirtual(), getAngularMotionDisc(), getBoundingSphere(), btConvexHullInternal::getCoordinates(), gizmo_plane_draw_grid(), gpencil_calc_points_factor(), gpencil_calc_stroke_fill_uv(), gpencil_depth_plane(), gpencil_invert_image(), gpencil_object_cache_add(), gpencil_primitive_circle(), gpencil_uv_transform_init(), harmonic_coordinates_bind(), initMouseInput(), initTimeScale(), interp_slerp_co_no_v3(), interp_vmesh(), long_edge_queue_create(), libmv::LookAt(), Freestyle::WXShape::MakeFace(), mesh_calc_eigen_matrix(), meshdeform_add_intersections(), meshdeform_cell_center(), mirror_bezier_xaxis_ex(), mirror_bezier_yaxis_ex(), mul_v2_m3v3_center(), multires_reshape_apply_base_refit_base_mesh(), node_clipboard_paste_exec(), NODE_DEFINE(), node_draw_space(), node_group_make_insert_selected(), object_transform_axis_target_calc_depth_init(), object_warp_calc_view_matrix(), object_warp_verts_exec(), CCL_NAMESPACE_BEGIN::TileComparator::operator()(), OVERLAY_bounds(), OVERLAY_camera_cache_populate(), OVERLAY_relationship_lines(), p_smooth(), paint_calc_object_space_radius(), paint_draw_cursor_overlay(), paint_draw_tex_overlay(), point_normals_apply(), polar_to_x(), polar_to_y(), primitive_motion_vector(), DebugDrawcallback::processTriangle(), projection_interval(), GIM_AABB::projection_interval(), RenderTileNeighbors::RenderTileNeighbors(), sculpt_detail_flood_fill_exec(), SCULPT_filter_cache_init(), SCULPT_search_sphere_cb(), sequencer_strip_jump_exec(), sh_node_vector_rotate_around_axis(), sh_node_vector_rotate_euler(), short_edge_queue_create(), snode_setup_v2d(), sortAndCalcSplittingIndex(), sphere_do(), sphere_light_sample(), sphere_project_exec(), spline_under_mouse_get(), BVHObjectBinning::split(), svm_node_vector_rotate(), Mesh::tessellate(), to_sphere_radius_update(), transform_convert_frame_side_dir_get(), ui_block_func_POPOVER(), ui_pie_handler(), ui_textedit_set_cursor_pos_foreach_glyph(), uv_cylinder_project(), uv_map_transform_calc_center_median(), uv_rip_object(), uv_snap_selection_exec(), uv_sphere_project(), uvedit_center(), uvedit_unwrap_cube_project(), uvedit_vertex_buttons(), UVsToTransData(), v3_dist_from_plane(), view3d_all_exec(), view3d_preselect_update_preview_triangle_from_edge(), view3d_preselect_update_preview_triangle_from_vert(), view3d_select_exec(), view_borderzoom_exec(), and WIDGETGROUP_xform_cage_refresh().
|
static |
Definition at line 344 of file GHOST_SystemCocoa.mm.
Referenced by GHOST_HACK_getFirstFile().
|
static |
Definition at line 343 of file GHOST_SystemCocoa.mm.
Referenced by GHOST_HACK_getFirstFile().
| return self |
Definition at line 394 of file GHOST_SystemCocoa.mm.