Blender
V3.3
|
#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_TButton | 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 323 of file GHOST_SystemCocoa.mm.
|
static |
Definition at line 40 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 69 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_kKeyB, GHOST_kKeyBackslash, GHOST_kKeyBackSpace, GHOST_kKeyC, GHOST_kKeyComma, GHOST_kKeyD, GHOST_kKeyDelete, GHOST_kKeyDownArrow, GHOST_kKeyDownPage, GHOST_kKeyE, GHOST_kKeyEnd, GHOST_kKeyEnter, GHOST_kKeyEqual, GHOST_kKeyEsc, GHOST_kKeyF, 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_kKeyG, GHOST_kKeyH, GHOST_kKeyHome, GHOST_kKeyI, GHOST_kKeyJ, GHOST_kKeyK, GHOST_kKeyL, GHOST_kKeyLeftArrow, GHOST_kKeyLeftBracket, GHOST_kKeyM, GHOST_kKeyMinus, GHOST_kKeyN, 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_kKeyO, GHOST_kKeyP, GHOST_kKeyPeriod, GHOST_kKeyPlus, GHOST_kKeyQ, GHOST_kKeyQuote, GHOST_kKeyR, GHOST_kKeyRightArrow, GHOST_kKeyRightBracket, GHOST_kKeyS, GHOST_kKeySemicolon, GHOST_kKeySlash, GHOST_kKeySpace, GHOST_kKeyT, GHOST_kKeyTab, GHOST_kKeyU, GHOST_kKeyUnknown, GHOST_kKeyUpArrow, GHOST_kKeyUpPage, GHOST_kKeyV, GHOST_kKeyW, GHOST_kKeyX, GHOST_kKeyY, and GHOST_kKeyZ.
Referenced by GHOST_SystemCocoa::handleKeyEvent().
int GHOST_HACK_getFirstFile | ( | char | buf[FIRSTFILEBUFLG] | ) |
Definition at line 329 of file GHOST_SystemCocoa.mm.
References FIRSTFILEBUFLG, g_firstFileBuf, and g_hasFirstFile.
Referenced by main().
__pad0__ |
Definition at line 351 of file GHOST_SystemCocoa.mm.
NSNotificationCenter* center = [NSNotificationCenter defaultCenter] |
Definition at line 370 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_points(), BVHBuild::add_reference_triangles(), BVHBuild::add_references(), applyAlign(), appy_transform(), GIM_AABB::appy_transform(), appy_transform_trans_cache(), bake_offset_towards_center(), 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(), blender::nodes::node_geo_curve_primitive_arc_cc::create_arc_curve_from_points(), blender::nodes::node_geo_curve_primitive_circle_cc::create_point_circle_curve(), blender::nodes::node_geo_scale_elements_cc::create_single_axis_transform(), btSoftBodyHelpers::CreateEllipsoid(), createFacepa(), createTransGPencil_strokes(), createTransNlaData(), createTransUVs(), cube_project_exec(), cuboid_do(), 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(), ed_object_select_pick(), 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(), blender::draw::extract_fdots_pos_iter_poly_bm(), blender::draw::extract_fdots_pos_iter_poly_mesh(), extrude_points_from_selected_vertices(), find_first_points(), VolumeMeshBuilder::generate_vertices_and_quads(), get_center_extend(), GIM_AABB::get_center_extend(), blender::nodes::node_shader_vector_rotate_cc::get_multi_function(), getAabb(), getAabbNonVirtual(), getAngularMotionDisc(), getBoundingSphere(), btConvexHullInternal::getCoordinates(), gpencil_calc_points_factor(), gpencil_calc_stroke_fill_uv(), gpencil_depth_plane(), gpencil_object_cache_add(), gpencil_primitive_circle(), gpencil_uv_transform_init(), harmonic_coordinates_bind(), imm_draw_cube_corners_3d(), imm_draw_cube_fill_3d(), imm_draw_cube_wire_3d(), initMouseInput(), initTimeScale(), interp_slerp_co_no_v3(), interp_vmesh(), light_sample(), light_sample_from_intersection(), 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(), blender::ed::space_node::node_clipboard_paste_exec(), NODE_DEFINE(), blender::ed::space_node::node_draw_space(), blender::nodes::node_geo_bounding_box_cc::node_geo_exec(), blender::ed::space_node::node_group_make_insert_selected(), object_transform_axis_target_calc_depth_init(), object_warp_calc_view_matrix(), object_warp_verts_exec(), OVERLAY_bounds(), OVERLAY_camera_cache_populate(), OVERLAY_relationship_lines(), 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(), blender::math::rotate_around_axis(), rotate_around_center_v2(), blender::compositor::ScaleOperation::scale_coord(), blender::compositor::ScaleOperation::scale_coord_inverted(), sculpt_detail_flood_fill_exec(), SCULPT_filter_cache_init(), SCULPT_search_sphere_cb(), seq_select_seq_from_preview(), sequencer_select_exec(), sequencer_strip_jump_exec(), blender::nodes::node_shader_vector_rotate_cc::sh_node_vector_rotate_around_axis(), blender::nodes::node_shader_vector_rotate_cc::sh_node_vector_rotate_euler(), short_edge_queue_create(), blender::ed::space_node::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(), transdata_elem_shear(), transdata_elem_to_sphere(), transform_convert_frame_side_dir_get(), blender::nodes::node_geo_scale_elements_cc::transform_with_uniform_scale(), 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(), v3d_cursor_plane_draw(), v3d_cursor_plane_draw_grid(), 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 325 of file GHOST_SystemCocoa.mm.
Referenced by GHOST_HACK_getFirstFile().
|
static |
Definition at line 324 of file GHOST_SystemCocoa.mm.
Referenced by GHOST_HACK_getFirstFile().
return self |
Definition at line 375 of file GHOST_SystemCocoa.mm.